http://tiny.cc/fun-with-bookmarklets
##Fun
##Useful
function alertTerminal(){ | |
console.log("\007"); | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Upload your files</title> | |
</head> | |
<body> | |
<form enctype="multipart/form-data" action="upload.php" method="POST"> | |
<p>Upload your file</p> | |
<input type="file" name="uploaded_file"></input><br /> | |
<input type="submit" value="Upload"></input> |
package main | |
import ( | |
"log" | |
"path" | |
"sync" | |
"time" | |
"github.com/samuel/go-zookeeper/zk" | |
) |
http://tiny.cc/fun-with-bookmarklets
##Fun
##Useful
function J = costFunctionJ(X, y, theta) | |
% X is the "design matrix" containg our training examples | |
% y is the class labels | |
m = size(X,1); % numbedr of training examples | |
predictions = X*theta; % predictions of hypothesis on all m examples | |
sqrErrors = (predictions - y) .^2; % squared errors | |
J= 1/(2*m) * sum(sqrErrors); |
function bin2string(array){ | |
var result = ""; | |
for(var i = 0; i < array.length; ++i){ | |
result+= (String.fromCharCode(array[i])); | |
} | |
return result; | |
} |
onmessage = function() { | |
postMessage(performance.now()) | |
} |
//Finds all instances of #{} style interpolation like #{variable} | |
string.match(/#{[^}\r\n]*}/g); |
<textarea id="edi-input" placeholder="Paste edi in here..."> | |
</textarea> | |
<br /> | |
<input id="search" placeholder="search segments and elements"> | |
<table id="edi-table" border="1"> | |
</table> |
Let 'a' be equal to the character or string you wish to search for. | |
http://search.npmjs.org/_list/search/search?startkey=%22a%22&endkey=%22aZZZZZZZZZZZZZZZZZZZ%22&limit=25 | |
For example, if you wish to search for packages regarding websockets: | |
http://search.npmjs.org/_list/search/search?startkey=%22websocket%22&endkey=%22websocketZZZZZZZZZZZZZZZZZZZ%22&limit=25 |