https://github.com/eon01/DockerCheatSheet
curl -fsSL https://get.docker.com | sh;
<?php | |
function mypost( $url , $data ) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); | |
curl_setopt($ch, CURLOPT_POST, true); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 30); |
单篇招聘启事排重后的新词频 | |
[javascript] => 152 | |
[css] => 134 | |
[web] => 101 | |
[html5] => 74 | |
[html] => 72 | |
[react] => 56 | |
[jquery] => 52 | |
[vue] => 50 |
// from https://github.com/suxiaogang/WeiboPicBed | |
// under its license | |
function uploadToWeibo( url , callback ) | |
{ | |
var xhr = new XMLHttpRequest(); | |
xhr.onload = function() { | |
var reader = new FileReader(); | |
reader.onloadend = function( e ) | |
{ |
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]) . '");'; | |
} |
<?php | |
header('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Headers: origin, x-requested-with, content-type'); | |
header('Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS'); |
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; |
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`); |