This file contains 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> | |
<style> | |
body { | |
margin: 0px; | |
padding: 0px; | |
} | |
</style> | |
</head> |
This file contains 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
<snippet> | |
<content><![CDATA['use strict'; | |
describe("Controller : ${1}", function() { | |
beforeEach(module('${2}')); | |
var ctrl, scope; | |
beforeEach(inject(function(\$controller, \$rootScope){ | |
scope = \$rootScope.\$new(); |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
'use strict'; | |
describe("${1}", function() { | |
beforeEach(module('${2}')); | |
var scope, compile, el; | |
beforeEach(inject(function(\$rootScope, \$compile){ |
This file contains 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
<snippet> | |
<content><![CDATA[beforeEach(inject(function(${1}){ | |
${2} | |
});]]></content> | |
<tabTrigger>bfi</tabTrigger> | |
<scope>source.js</scope> | |
<description>beforeEach(inject)</description> | |
</snippet> |
This file contains 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
<snippet> | |
<content><![CDATA[beforeEach(module('${1}'));]]></content> | |
<tabTrigger>bfm</tabTrigger> | |
<scope>source.js</scope> | |
<description>beforeEach(module)</description> | |
</snippet> |
This file contains 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
/** | |
* Usage: | |
* describe("someModule", function(){ | |
* beforeEach(function(){ | |
* stubProp(someGlobal, {myVar:'test'}); | |
* }); | |
* }); | |
* | |
* - stubProp(obj, {myVar:'value'}); | |
* - stubProp(obj, 'myVar', 'myValue'); |
This file contains 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 arr = [1,2,3]; | |
var out = []; | |
for(var i=0; i<arr.length; i++){ | |
var item = arr[i]; | |
out.push(function(){ alert(item); }); | |
} | |
out.forEach(function(f){ f(); }); |
This file contains 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
// ==UserScript== | |
// @id Twitter pinbaord unread | |
// @name Twitter pinboard unread | |
// @namespace http://jacky.seezone.net/twitterpinboardunread | |
// @description press p to save link in current tweets to pinobard unread | |
// @include https://twitter.com/* | |
// @include http://twitter.com/* | |
// ==/UserScript== | |
function getTitle(link){ |
This file contains 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
Show hidden characters
{ | |
"placeholder_chars" : "fjruvmtyghbndkeic,slwox.a;qpz/" | |
} |
This file contains 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
// ==UserScript== | |
// @name Google plus no box shadow | |
// @author Jacky See | |
// @include http*://plus.google.com/* | |
// @version 1.0 | |
// ==/UserScript== | |
GM_addStyle('.MZxWCd{box-shadow:none!important;border:1px solid #AAA;}'); | |