Giter Site home page Giter Site logo

nows's People

Contributors

egotong avatar vikchan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nows's Issues

毒鸡汤 - PHP免数据库版

【先不说别的,我看着这readme我都想笑】

image

特性

  • 避免了PHP数据库的臃肿,避免一些免费空间拒绝数据库而部署失败
  • 采用简单的 document.write 输出
  • 降低服务器端的压力

Github

临时Demo

实际使用效果与原版无异,在PHP主机较好的情况下加载速度甚至快过原版。

【其实我就是过来凑热度的】

#14 类似,不过我的是PHP版本,同样支持动静态前后分离,支持调出API.

什么呢?

这是什么,开源了完整一点,md 写写是干嘛的。

powershell版本

#  毒鸡汤
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就是那个数据文件了,没行一条鸡汤就可以了。

居然这么多star

这种东西为啥要放数据库,为啥不用pdo/mysqli,为啥前后端不分离,居然还有这么多star

数据重复

(1018, '俄罗斯方块教会我们:如果你合群,就会消失。', '24'),
(1019, '俄罗斯方块教会了我们,如果你合群,就会消失。', '25'),

数据重复

毒鸡汤 - Go版本

来蹭个热度 哇哈哈
Go版本毒鸡汤,值得喝一碗!!

特性

  • 超快响应、性能怪兽
  • 部署简单
  • 无数据库依赖(默认:毒鸡汤文件放在 web/statement.txt 中,根据换行识别一条语句)
  • 自动重载:程序会监听 “毒鸡汤文件(statement.txt)” 变更,然后重新加载,无需重启程序

Usage

➜  ./darwin_amd64 -h

Usage of ./darwin_amd64:
  -addr string
    	服务地址 (default "0.0.0.0")
  -port string
    	服务端口 (default "80")
  -target string
    	毒鸡汤文件路径 (default "statement.txt")

前往:Github

Yellow Site?

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 '铜铃'

php7.x 代码已适配 可用

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
    }
?>

哇哦

很有趣啊,数据源很棒,SQL文件拿走了。

老哥优秀

v2留影

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.