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
#!perl | |
use strict; | |
use warnings; | |
use Image::WordCloud; | |
use File::Slurp; | |
use LWP::Simple; | |
use HTML::Grabber; |
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
// ==UserScript==// | |
// @name Brewing Company Site Auto Age Gate | |
// @namespace https://gist.github.com/2045030 | |
// @description Automatically bypass brewing company website age gates | |
// @include http://*newbelgium.com* | |
// @include http://*stonebrew.com* | |
// @include http://*boulevard.com* | |
// @include http://*sierranevada.com* | |
// @include http://*samueladams.com* | |
// @include http://*lagunitas.com* |
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
{ | |
"skeletons": { | |
"HTML5 Boilerplate": { | |
"branch": "docpad-6.x", | |
"repo": "https://github.com/docpad/html5-boilerplate.docpad.git", | |
"description": "HTML5 Boilerplate skeleton for DocPad. Bare essentials for building a modern website with best practices." | |
}, | |
"HTML5 Boilerplate with Grunt": { | |
"branch": "master", | |
"repo": "https://github.com/lukekarrys/html5-boilerplate.docpad.git", |
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 a = {'info' : 'testBuild'}; | |
var b = {'info' : 'testBuild'}; | |
a == b; |
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
<div ng-switch="user.type"> | |
<div ng-switch-when="user" ng-include="/path/to/template.html" ng-controller="UserCtrl"></div> | |
<div ng-switch-when="professional" ng-include="/path/to/template.html" ng-controller="AdminProfessionalCtrl"></div> | |
</div> |
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
$scope.sections = Section.query({projectId: $scope.currentProject.id}, function(data) { | |
angular.forEach(data, function(section) { | |
$scope.$watch(section, function() { | |
section.$save(); | |
}, true); | |
}); | |
}); |
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 chain = [serverRequest, undefined]; | |
var dummyP = $q.defer(); | |
var promise = dummyP.promise; // $q.when(config); | |
// apply interceptors | |
forEach(reversedInterceptors, function(interceptor) { | |
if (interceptor.request || interceptor.requestError) { | |
chain.unshift(interceptor.request, interceptor.requestError); | |
} |
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
jade: { | |
build: { | |
options: { | |
pretty: true | |
}, | |
files: [ | |
{ | |
expand: true, | |
src: '<%= src.jade %>', | |
cwd: 'src/', |
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
.directive('ngVisible', function () { | |
return function (scope, element, attr) { | |
scope.$watch(attr.ngVisible, function (visible) { | |
element.css('visibility', visible ? 'visible' : 'hidden'); | |
}); | |
}; | |
}) |
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
// Grunt task: | |
karma: { | |
unit: { | |
configFile: 'test/karma.config.js', | |
background: true | |
} | |
}, | |
// test/karma.config.js | |
module.exports = function(config) { |
OlderNewer