egotong / nows Goto Github PK
View Code? Open in Web Editor NEW毒鸡汤
毒鸡汤
已经搭建好了,过段时间分享出来
https://www.shadow-forum.com/tools/soup/index.php
(1018, '俄罗斯方块教会我们:如果你合群,就会消失。', '24'),
(1019, '俄罗斯方块教会了我们,如果你合群,就会消失。', '25'),
数据重复
https://github.com/mzlogin/dujitang
仓主这一波被逼开源真是让人心疼哈哈……
I added some sentences based on your sentence data, and then developed a similar application using Python Flask. Welcome to exchange comments.
The following is my repo address:
https://github.com/yeliulee/PoisonWords
data.php:
$conn=mysqli_connect("localhost","admin","xxxx"); //连接数据库地址、用户名、密码
mysqli_query($conn,"set names 'utf8'"); //数据库编码
mysqli_select_db($conn,"symhytwg_nows"); //数据库名称
index.php
//从这里开始 其他都不变 用下面的代码直接替换即可 记得导入数据
<?php
$sql="select * from soul order by rand() limit 1";
$rs=mysqli_query($conn,$sql);
?>
<?php
while($rows=mysqli_fetch_assoc($rs)){
?>
<span id="sentence" style="font-size: 2rem;"><?php echo $rows["title"]?></span>
<?php
}
?>
做成json php随机选取 类似一言api可以吗
2333
求大佬做
给无数好友安利了这个网站,互star一个吧!https://github.com/ChenJinchuang/lin-cms-tp5
合并进来,想看看到底有多少分支。。。
一张表,一千+条。还要费资源链接mysql。
还要写“意大利面”式的php code。。。
# 毒鸡汤
function jitang {
$dir =(get-item $profile).Directoryname
$line = Get-Random -Maximum (Get-Content -Path "$dir\data.txt" | Measure-Object).count
$msg = (Get-Content -Path "$dir\data.txt" -TotalCount $line)[-1]
Write-Output ('{0} {1}'-f (Get-Date -Format "yyyy-MM-dd HH:mm:ss"),$msg)
}
data.txt
就是那个数据文件了,没行一条鸡汤就可以了。
抱歉
太惨了,摸摸头,哈哈
被逼开源,真是辛苦啦,收集这么多花了不少心思吧
when i click the 'www.nows.fun' btn,it jump to a yellow page automatically, i am in studio, owww, sh*t, my classmates look at me like me, their eyes looks like '铜铃'
仓主 sql可以更新下吗
.............
golang版本来凑热闹来了,哈哈哈
http://lv.abc.red/
项目地址:
(https://www.dumogu.top/)
进来凑个热闹,哈哈
来蹭个热度 哇哈哈
Go版本毒鸡汤,值得喝一碗!!
➜ ./darwin_amd64 -h
Usage of ./darwin_amd64:
-addr string
服务地址 (default "0.0.0.0")
-port string
服务端口 (default "80")
-target string
毒鸡汤文件路径 (default "statement.txt")
前往:Github
很有趣啊,数据源很棒,SQL文件拿走了。
老哥优秀
v2留影
你这个readme就挺搞笑的
data.php
泄露了数据库用户名密码,使得可登录数据库。
请及时修改数据库密码。
看到按钮上一行字下意识地点了一下,结果好像就只是一行字……
大佬 网站到期了
这种东西为啥要放数据库,为啥不用pdo/mysqli,为啥前后端不分离,居然还有这么多star
这是什么,开源了完整一点,md 写写是干嘛的。
啊哈哈,基于大佬的,用ASP.NET CORE重新做了一遍,感谢大佬。https://github.com/withsalt/dncs
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.