https://github.com/eon01/DockerCheatSheet
curl -fsSL https://get.docker.com | sh;
This is a SCRIPT-8 cassette.
| <?php | |
| if( preg_match("/:save\s(.+?)$/i" , $cmd , $out ) ) | |
| { | |
| file_put_contents( "saestor://todo/ttd-easy-". md5($out[1]) .".json" , v('todos') ); | |
| $ret['js'] = "alert('Saved to ". $out[1] ." 🤠 ')"; | |
| } | |
| elseif( preg_match("/:load\s(.+?)$/i" , $cmd , $out ) ) | |
| { | |
| if($new_todos = file_get_contents( "saestor://todo/ttd-easy-". md5($out[1]) .".json" )) |
| <?php | |
| if( preg_match("/:bing\s(.+?)$/i" , $cmd , $out ) ) | |
| { | |
| $ret['js'] = 'window.require("electron").shell.openExternal("https://cn.bing.com/dict/search?q=' . urlencode($out[1]) . '");'; | |
| } |
| const electron = require('electron'); | |
| const {app} = electron; | |
| const {BrowserWindow} = electron; | |
| let win; | |
| function createWindow() { | |
| win = new BrowserWindow({width: 600, height: 1080}); | |
| win.loadURL(`file://${__dirname}/index.html`); |
| pragma solidity ^0.4.16; | |
| interface tokenRecipient { function receiveApproval (address _from, uint256 _value, address _token, bytes _extraData) external; } | |
| contract FangTangCoin { | |
| string public name; | |
| string public symbol; | |
| uint8 public decimals = 18; | |
| uint256 public totalSupply; | |
| address private creator; |
| <?php | |
| function indexController | |
| { | |
| // model | |
| $data = $db->getUserInfo(); | |
| // view | |
| $html = $render->toHtml( $data , 'index.tpl.html' ); |
| Array | |
| ( | |
| [define] => 1B | |
| [file] => 1B | |
| [list] => 1B | |
| [copy] => 1B | |
| [end] => 1B | |
| [array] => 827M | |
| [time] => 810M | |
| [max] => 751M |
| git clone https://github.com/easychen/fangPHP && cd fangPHP | |
| # install docker-compose | |
| sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose | |
| docker-compose up |
| 单篇招聘启事排重后的新词频 | |
| [javascript] => 152 | |
| [css] => 134 | |
| [web] => 101 | |
| [html5] => 74 | |
| [html] => 72 | |
| [react] => 56 | |
| [jquery] => 52 | |
| [vue] => 50 |