Couldn't find the text of this for a while...
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
;; https://gist.github.com/antonkovalyov/8663025 | |
{:+ { | |
;; The app tag is kind of like global scope. You assign behaviors that affect | |
;; all of Light Table here | |
:app [(:lt.objs.style/set-skin "light")] | |
;; The editor tag is applied to all editors | |
:editor [:lt.objs.editor/no-wrap | |
(:lt.objs.style/set-theme "solarized-light") |
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
Original lyrics: http://rapgenius.com/Kendrick-lamar-maad-city-lyrics | |
If Node peeps and Crock all got along | |
They'd probably gun me down by the end of this song | |
-- | |
Seem like the whole codebase go against me | |
Every time I run my tests I hear | |
BUG BUG BUG BUG |
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 hasWorkingNestedRedirectedCalls = (function () { | |
function f(a) { return function() { return a.apply(this, arguments); }} | |
var g1 = f(function(a) { return a; }); | |
var g2 = new g1(g1); | |
return typeof g2 == "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
var Lounge = Backbone.View.extend({ | |
initialize: function (options) { | |
// ... | |
Bus.listen('window.inViewport', () => { | |
this.states.inViewport = true; | |
this.trigger('inViewport'); | |
}); | |
Bus.listen('window.scrollOffViewport', () => { |
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 disqus_config = function () { | |
var config = this; // Access to the config object | |
/* | |
All currently supported events: | |
* preData — fires just before we request for initial data | |
* preInit - fires after we get initial data but before we load any dependencies | |
* onInit - fires when all dependencies are resolved but before dtpl template is rendered | |
* afterRender - fires when template is rendered but before we show it | |
* onReady - everything is done |
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
<html> | |
<head> | |
<title>Comments count code example</title> | |
<!-- | |
Note: Disqus uses custom data- attributes to specify thread identifiers. | |
Those attributes are part of the HTML5 specs and already supported by all browsers. | |
For more information, see: | |
* http://ejohn.org/blog/html-5-data-attributes/ |