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
/* | |
Menlo Espresso by Brian Yang 2012 | |
based on | |
Espresso Libre by Mike Reinhardt 2011 | |
based on Espresso Libre - by zolli - | |
http://www.eclipsecolorthemes.org/?view=theme&id=45 |
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
<F3:repeat group="{{@DB->result}}" value="{{@item}}"> | |
<span>{{@item.site}}</span> | |
</F3:repeat> |
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
/* | |
Tomorrow Nigth Color Scheme and Theme (Chrome WebInspector) | |
2012 Lior Hakim (www.liorhakim.com) | |
https://github.com/ChrisKempson/Tomorrow-Theme | |
OSx: | |
~/Library/Application Support/Google/Chrome/Default/User StyleSheets/ | |
Ubuntu: |
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 objRef = function(val){ | |
console.log(val) // will return passed var | |
var val = 'baz' // redefining the value of this var within this block | |
this.destroy = function(){ // defining an object of objRef that can be called using objRef.destroy() | |
assert(objRef) // this will not work because the compiler has no knowledge of objRef in this scope | |
} | |
} | |
var foo = 'bar' // define a test var | |
objRef(foo) // pass our var to the object |
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
K5 = (function(){ | |
var k5 = [] | |
k5.hotspot = { | |
init: function(markerX,markerY,icon,fadeRate,content,width,src,tail,bg,fade,pos){ | |
k5.hotspot.markerCoord(markerX, markerY, pos) | |
k5.hotspot.adjFade(fadeRate) | |
k5.hotspot.sendContent(content) | |
k5.hotspot.tipWidth(width) | |
k5.hotspot.markerSrc(src) |
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 Class = function(parent){ | |
var klass = function(){ | |
this.init.apply(tthis,arguments) | |
} | |
klass.prototype.init = function(){} | |
klass.fn = klass.prototype | |
klass.proxy = function(func){ | |
var self = this | |
return (function(){ |
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
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
* http://benalman.com/ | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function($) { | |
var o = $({}); | |
$.subscribe = function() { | |
o.on.apply(o, arguments); |
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 mongodb = require('mongodb'); | |
var server = new mongodb.Server("127.0.0.1", 27017, {}); | |
new mongodb.Db('test', server, {}).open(function (error, client) { | |
if (error) throw error; | |
var collection = new mongodb.Collection(client, 'test_collection'); | |
collection.find({}, {limit:10}).toArray(function(err, docs) { | |
console.dir(docs); | |
}); | |
}); |
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
!!! 5 | |
//if lt IE 7 | |
<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> | |
//if IE 7 | |
<html class="no-js lt-ie9 lt-ie8" lang="en"> | |
//if IE 8 | |
<html class="no-js lt-ie9" lang="en"> | |
//[if gt IE 8]><! | |
html(class='no-js', lang='en') | |
//<![endif] |
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(a){function f(a){var b=a.find(".actionbar");return b.length?b:a.prepend('<div class="actionbar"><div class="actions"><div class="primary"></div></div></div>')}function e(a,b){var c=b.find(".actions"),d=c.find(".download");d.length||c.prepend('<a href="'+a.streamUrl+'" class="download pl-button" download="'+a.title+'" title="'+a.title+'">Download track</a>')}function d(a,b){var d=null;b.hasClass("nano")?d=f(b.closest(".track-title").find(".track")).css({marginLeft:"18px"}):b.hasClass("small")&&(d=f(b.find(".container"))),d&&c(a,d)}function c(a,b){var c=b.find(".download, .mock-download");if(!c.length){var d=$('<a class="pl-button mock-download"><span>Download</span></a>').css({backgroundImage:"url(http://soundcloud.com/images/icons_mini.png?unicorn26)",backgroundRepeat:"no-repeat",backgroundPosition:"-77px -236px",paddingLeft:"18px"}).attr("download",a.title+".mp3");b.find(".primary").append(d),d.attr("href",a.streamUrl)}}function b(a){var b=$.helpers,f=b.getPlayerTrack(b.getPlayerNode(a)),g=a.find(" |