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 browserSync = require('browser-sync'), | |
common = require('./__common__'), | |
gulp = require('gulp'), | |
watch = require('gulp-watch'); | |
gulp.task('default', [ | |
'less' | |
], function () { | |
browserSync({ | |
server: { |
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
// use like <%= commitsha1 %> | |
grunt.registerTask('githash', function () { | |
var done = this.async(), | |
config; | |
config = { | |
cmd: 'git', | |
args: ['rev-parse', '--verify', 'HEAD'] | |
}; |
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 urllib2 | |
from bs4 import BeautifulSoup | |
page = urllib2.urlopen('http://www.bbc.co.uk/sport/football/tables') | |
soup = BeautifulSoup(page) | |
rows = soup.find_all('tr') | |
for row in rows: | |
team = row.find('td', class_='team-name') |
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
<div class="foo"> | |
<ul> | |
<li data-ng-repeat="item in items">{{item}}</li> | |
</ul> | |
</div> |
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
# | |
# Sets Prezto options. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# | |
# General | |
# |
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
describe('scoping', function () { | |
it('should correctly deal with scoping `this` back to the callee', function () { | |
var mod = new Module(), | |
request; | |
request = function (callback) { | |
return callback(); | |
}; | |
function Module () { |
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 compass = require('gulp-compass'), | |
concat = require('gulp-concat'), | |
cssmin = require('gulp-cssmin'), | |
gulp = require('gulp'), | |
imagemin = require('gulp-imagemin'), | |
jscs = require('gulp-jscs'), | |
jshint = require('gulp-jshint'), | |
livereload = require('gulp-livereload'), | |
rename = require('gulp-rename'), | |
replace = require('gulp-replace'), |
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
define [ | |
'config' | |
'directive/radian-directive' | |
], (cfg, RD) -> | |
RD 'yolo', [ | |
'$rootScope' | |
], ($rootScope) -> | |
restrict: 'A' | |
replace: true | |
scope: |
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
define [ | |
'config' | |
'directive/radian-directive' | |
], (cfg, RD) -> | |
RD 'yolo', [ | |
'$rootScope' | |
], ($rootScope) -> | |
restrict: 'A' | |
replace: true | |
scope: |