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
// I was just thinking it would be pretty useful to be able to listen for the wfl events | |
// in a context outside the WebFontConfig object. In particular | |
// today I found a situation where I needed to supply several handlers in different contexts. | |
// In the end I used a shim to dispatch a custom event via jquery. | |
var WebFontConfig = { | |
active: function(){ | |
$(window).trigger('wf-active'); | |
} | |
}; |
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
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
if git rev-parse --verify HEAD >/dev/null 2>&1 |
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
select * from html where url="http://lanyrd.com/people/carlmw/" and xpath="//h2[contains(.,' attending')]/following-sibling::*[1]/ol/li" |
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
,\s*\n+(\s*\/\/.*\n)*\s*[\}\)\]] |
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 (global) { | |
var sandbox, | |
sinon = require('sinon'); | |
global.should = require('chai').should(); | |
global.expect = require('chai').expect; | |
require('sinon-mocha').enhance(sinon); | |
require('chai').use(require('sinon-chai')); | |
setGlobals(); |
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
namespace.detection = (function () { | |
return { touch: window.touch }; | |
}()); |
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
@import 'bourbon'; | |
$visual-grid: true; // Turn on the visual grid overlay | |
$max-width: 960px; | |
$grid-columns: 8; | |
$mobile-size: 480px; | |
$tablet-size: 768px; | |
$desktop-size: 960px; |
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
a { | |
font-family: 'icon-webfont'; | |
text-indent: -999em; | |
overflow: hidden; | |
display: block; | |
position: relative; | |
} | |
a:before { | |
position: absolute; |
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
# /client/js/lang/d627ef21fbcfc0e9def32c187b37ffa9e5034019/en/date.json | |
RewriteCond %{REQUEST_URI} ^/client/js/lang | |
RewriteRule ^(client/js/lang)/([a-z0-9]+/)(.+)$ /$1/$3 [L] | |
# Desired: | |
# /client/js/lang/en/date.json | |
# Actual | |
# /client/js/lang/date.json |
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
angular.module('guestApp', []).controller('guestCtrl', function($scope) { | |
$scope.bar = "I'm a guest app, please be nice."; | |
}); | |
var el = document.createElement('x-editor'); | |
var shadowEl = el.webkitCreateShadowRoot(); | |
document.documentElement.appendChild(el); | |
shadowEl.innerHTML = '<div id="guest" ng-controller="guestCtrl">{{ bar }}</div>'; | |
angular.bootstrap(shadowEl, ['guestApp']); |
OlderNewer