I hereby claim:
- I am yaodong on github.
- I am yaodong (https://keybase.io/yaodong) on keybase.
- I have a public key ASAWJz1sEECftwSUiciKblE7agUb5InsuvcFnFCe5X0hXAo
To claim this, I am signing this object:
-- The C compiler identification is AppleClang 8.0.0.8000042 | |
-- The CXX compiler identification is AppleClang 8.0.0.8000042 | |
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc | |
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ | |
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works |
########################### | |
# Configuration | |
########################### | |
# use 256 term for pretty colors | |
set -g default-terminal "screen-256color" | |
# increase scroll-back history | |
set -g history-limit 5000 |
def rotate(row, angle, dim1, dim2): | |
radian = angle * pi / 180. | |
cos_alpha, sin_alpha = cos(radian), sin(radian) | |
x, y = row[dim1], row[dim2] | |
row[dim1] = cos_alpha * x - sin_alpha * y | |
row[dim2] = sin_alpha * x + cos_alpha * y | |
return row | |
def cartesian_to_spherical(x, y, z): |
from time import sleep | |
import subprocess, json | |
import string | |
username_prefix = "prefix1234" | |
cmd = """curl 'https://accounts.google.com/InputValidator?resource=SignUp&service=mail' -H 'Referer: https://accounts.google.com/SignUp?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F<mpl=default' -H 'Origin: https://accounts.google.com' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36' -H 'Content-type: application/json' --data-binary '{"input01":{"Input":"GmailAddress","GmailAddress":"__name__","FirstName":"","LastName":""},"Locale":"en"}' --compressed""" | |
for i in range(10, 100): |
{ | |
"nodes": [ | |
{"id": "Myriel", "group": 1}, | |
{"id": "Napoleon", "group": 1}, | |
{"id": "Mlle.Baptistine", "group": 1}, | |
{"id": "Mme.Magloire", "group": 1}, | |
{"id": "CountessdeLo", "group": 1}, | |
{"id": "Geborand", "group": 1}, | |
{"id": "Champtercier", "group": 1}, | |
{"id": "Cravatte", "group": 1}, |
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash | |
pyenv install 3.5.2 | |
pyenv global 3.5.2 |
I hereby claim:
To claim this, I am signing this object:
A type is a collection of possible values. An integer can have values 0, 1, 2, 3, etc.; a boolean can have values true and false. We can imagine any type we like: for example, a HighFive type that allows the values "hi" or 5, but nothing else. It's not a string and it's not an integer; it's its own, separate type.
Statically typed languages constrain variables' types: the programming language might know, for example, that x is an Integer.
In that case, the programmer isn't allowed to say x = true
; that would be an invalid program.
The compiler will refuse to compile it, so we can't even run it.
const $ = require('jquery'); | |
class EventManager { | |
constructor(handlers) { | |
this._handlers = {}; | |
if (handlers) { | |
$.each(handlers, (name, cb) => { | |
this.listen(name, cb); | |
}); |
const $ = require("jquery"); | |
class TurboLink { | |
constructor(el, opts) { | |
this.$link = $(el); | |
this.opts = opts; | |
this.sendRequest(); | |
} |