This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[FRONT] | |
NDAA - Indefinite Detention with no trial. | |
[/FRONT] | |
[BACK] | |
NDAA of 2012 | |
Indefinite Detention with no trial. On Dec 2011, Congress and President Obama passed NDAA 2012. NDAA goes against most of the bill of rights, habeas corpus, and posse comitatus. | |
Taxpayer Cost: $622 billion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tcoToLinkTitleURL(ev) { | |
var target = ev.target; | |
if(/^(http(?:s?):)?\/\/t.co\//.test(target.href) && /^(http(?:s?):)?\/\//.test(target.title)) { | |
target.href = target.title; | |
} | |
} | |
if(location.hostname == "twitter.com") { | |
document.addEventListener("mousedown", tcoToLinkTitleURL, true); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: void(function(){document.addEventListener("mousedown", tcoToLinkTitleURL, true); function tcoToLinkTitleURL(ev) { var target = ev.target; if(/^http(?:s?):\/\/t.co\//.test(target.href)) target.href=target.title; } }()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("mouseover", function(e) { | |
var t=e.target, u; | |
if(!t.href) t = t.parentNode; | |
if(t.href) { | |
if(t.host=="t.co"){ | |
u=t.getAttribute("data-expanded-url"); | |
if(!u && t.search) { | |
u=(u=t.search.match(/\burl=(.+)?&/))&&unescape(u[1]); | |
} else if(!u && t.title.indexOf("http") == 0) { | |
u = t.title; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var couple = { m : "Garrett", f : "Tomomi" }; | |
var marriage = function() { console.log(this.f + " is married to " + this.m); }; | |
var status = marriage.bind(couple); | |
status(); | |
"Tomomi is married to Garrett"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Car(make) { | |
this.make = make; | |
} | |
Car.prototype.drive = function() { | |
console.log('driving ' + this.make); | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function matchesSelector(el, selectorText, ctx) { | |
var all = (ctx||el.ownerDocument).querySelectorAll(selectorText); | |
return indexOf(all, el) != -1; | |
} | |
function findAncestor(el, selectorText, container) { | |
if(el == null || el === container) | |
return null; | |
var parent = el.parentNode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var gSpeedControl = (function(v,i,n,t){ n.insertBefore(i, n.firstChild);i.type="range";i.min=.3;setTimeout(function(){i.max=i.value=1;i.oninput();},1); i.step=.05;t=i.nextSibling;i.oninput=function(){t.data=(100*(v.playbackRate=i.value)|0)+"%"};return i})(document.querySelector("video"), document.createElement("input"), document.getElementById("watch-header")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
function(v,n) { | |
var doc = this.contentDocument || document; | |
if(!v) v = doc.querySelector("video"); | |
if(!v) return; | |
var fbButtonsDiv = doc.getElementById("fbPhotoPageButtons"); | |
var artistworksDiv = doc.getElementById("playlist0"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="JP Morgan Chase Intervew Question"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JP Morgan Chase Intervew Question</title> | |
</head> | |
<body> |