git ask for password while gitconfig is correctly set
$ ssh-add -L
The agent has no identities.
add your private ssh key
ifconfig | grep -E '([0-9]{1,3}\.){3}[0-9]{1,3}' |
function levenshtein(a, b) { | |
if(a.length === 0) return b.length; | |
if(b.length === 0) return a.length; | |
var matrix = []; | |
// increment along the first column of each row | |
var i; | |
for(i = 0; i <= b.length; i++){ | |
matrix[i] = [i]; |
grunt.initConfig({ | |
open: { | |
server: { | |
path: "http://localhost:<%= connect.options.port %>", | |
app: "Google Chrome Canary" | |
} | |
} | |
}) |
A quick comparison/ benchmark between Hogan, Dust, doT and underscore
Developed by Twitter (same team as Bootstrap), use exactly the same syntax as Mustache, but more performant and more stuff available server side.
My name is {{ name }}
# Pretty-printing JSON and XML on Mac OSX | |
python -m json.tool < unformatted.json | less |
From VAST 3.0 Spec (PDF)
Code | Description |
---|---|
100 | XML parsing error. |
101 | VAST schema validation error. |
102 | VAST version of response not supported. |
200 | Trafficking error. Video player received an Ad type that it was not expecting and/or cannot display. |
data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAAG21kYXQAAAGzABAHAAABthAAGBRgj237AAAC6m1vb3YAAABsbXZoZAAAAAB8JbCAfCWwgAAAA+gAAAAqAAEAAAEAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAIVdHJhawAAAFx0a2hkAAAAD3wlsIB8JbCAAAAAAQAAAAAAAAAqAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAIAAAACAAAAAABsW1kaWEAAAAgbWRoZAAAAAB8JbCAfCWwgAAAXcAAAAPpVcQAAAAAAC1oZGxyAAAAAAAAAAB2aWRlAAAAAAAAAAAAAAAADFZpZGVvSGFuZGxlcgAAAVxtaW5mAAAAFHZtaGQAAAABAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAAEcc3RibAAAALhzdHNkAAAAAAAAAAEAAACobXA0dgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAIAAgASAAAAEgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABj//wAAAFJlc2RzAAAAAANEAAEABDwgEQAAAAADDUAAAAAABS0AAAGwAQAAAbWJEwAAAQAAAAEgAMSNiu4FAEQBFGMAAAGyTGF2YzUyLjIwLjEGAQIAAAAYc3R0cwAAAAAAAAABAAAAAQAAA+kAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAEAAAABAAAAFHN0c3oAAAAAAAAAEwAAAAEAAAAUc3RjbwAAAAAAAAABAAAALAAAAGF1ZHRhAAAAWW1ldGEAAAAAAAAAImhkbHIAAAAAAAAAAG1kaX |
var _embedder = (function(doc) { | |
var referrer = doc.referrer, | |
anchor = doc.createElement('a'), | |
res = [referrer]; | |
/* | |
Two different ways to extract domain from url: | |
- for only one part, we can use a fast regexp: referrer.match(/:\/\/(.[^/]+)/)[1]) | |
- for 2+ parts, create manually a '<a>' tag, set his href to the referrer url, and | |
then we can access to several url infos: protocol, hostname, port... |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
WebView wview = (WebView) findViewById(R.id.webviewD); | |
wview.setWebChromeClient(new WebChromeClient(){ | |
@Override | |
public void onShowCustomView(View view, CustomViewCallback callback) { | |
super.onShowCustomView(view, callback); | |
if (view instanceof FrameLayout){ |