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
<script> | |
(function($) { | |
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65"; | |
$(document).keydown(function(e) { | |
kkeys.push(e.keyCode); | |
if (kkeys.toString().indexOf(konami) >= 0) { | |
$(document).unbind('keydown', arguments.callee); | |
$.getScript('http://www.cornify.com/js/cornify.js', function() { | |
cornify_add(); | |
$(document).keydown(cornify_add); |
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
(function() { | |
var els = $('#main-content').children().filter(function() { | |
var el = $(this); | |
return (el.is('h3') || el.is('h3 + ul')) ? true : false; | |
}) | |
var queue = [] | |
els.each(function() { | |
var el = $(this); | |
if (el.is('h3')) { | |
queue.push(el.text()); |
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
.ui-dialog-reset.ui-dialog { | |
padding: 0; | |
} | |
.ui-dialog-reset.ui-dialog .ui-dialog-titlebar, | |
.ui-dialog-reset.ui-dialog .ui-dialog-content, | |
.ui-dialog-reset.ui-dialog .ui-dialog-buttonpane, | |
.ui-dialog-reset.ui-dialog .ui-dialog-buttonpane button, | |
.ui-dialog-reset.ui-dialog .ui-button-text { | |
padding: 0; | |
margin: 0; |
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 __extend = new Extender(); | |
var Robot = function(robot) { | |
}; | |
__extend( Robot.prototype, { | |
onIdle: function(e) { | |
var robot = e.robot; |
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
app = angular.module 'demo', [] | |
app.controller 'TestCtrl', ($scope, Logger)-> | |
Logger.log 'generic log...' # generic log... | |
log = Logger.makeLogger 'TestCtrl' | |
log.log 'prefixed log' # TestCtrl: prefixed log | |
$scope.doStuff = ()-> |
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
def sass_literals(file_path) | |
engine = Sass::Engine.for_file(file_path, {}) | |
environment = Sass::Environment.new | |
keyvals = [] | |
engine.to_tree.children.each do |node| | |
next unless node.kind_of? Sass::Tree::VariableNode | |
if node.expr.kind_of? Sass::Script::Tree::Literal | |
value = node.expr.perform(environment) |
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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="bdr-app"> | |
<template> | |
</template> | |
<script> |
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
// Type definitions for Node.js v0.11.13 | |
// Project: http://nodejs.org/ | |
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/borisyankov/DefinitelyTyped> | |
// Definitions: https://github.com/borisyankov/DefinitelyTyped | |
/************************************************ | |
* * | |
* Node.js v0.11.13 API * | |
* * | |
************************************************/ |
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
/** | |
* redirect javascript bookmarklet | |
*/ | |
// javascript:location.href='http://example.com/?uri='+encodeURIComponent(location.href) | |
/** | |
* bookmarklet loaded on site | |
*/ | |
(function(){ |