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(){ |
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 lang="en"> | |
<head> | |
<title>Test</title> | |
<link rel="stylesheet/less" type="text/css" href="app.less"> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/less.js/1.3.0/less-1.3.0.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<header id="appHeader">Header here</header> |
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> | |
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | |
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame |
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 Dog = function(name){ | |
var name = name, | |
numberOfBarks = function(volume){ | |
for(var i = 10; volume >= i; i--){ | |
if(volume % 3 === 0){ | |
return volume / 3; | |
} | |
} |
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
// You create your bookmarklet by instantiating | |
// a new Bookmarklet function, then pass in the options like so. | |
// This example checks to see if the var is already defined, and makes | |
// sure not to overwrite it. This could happen if the user clicks on | |
// the bookmarklet more than once. | |
(function(global) { | |
global.Doublestock = new Bookmarklet({ | |
css: [ | |
'css/styles.css' |
OlderNewer