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
| const gulp = require('gulp'); | |
| const sourcemaps = require('gulp-sourcemaps'); | |
| const babel = require('gulp-babel'); | |
| const concat = require('gulp-concat'); | |
| const webserver = require('gulp-webserver'); | |
| gulp.task('webserver', () => { | |
| gulp.src('.') | |
| .pipe(webserver({ | |
| livereload: { |
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
| // test | |
| it.only('calls $mdDialog.show', () => { | |
| return controller.delete(null, { uuid: 'aUuid'}) | |
| .then(() => { | |
| $httpBackend.flush(); | |
| }) | |
| .then(() => { | |
| expect($mdDialog.show).to.have.been.called; | |
| }); | |
| }); |
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 verifyBackend() { | |
| $httpBackend.flush(); | |
| $httpBackend.verifyNoOutstandingExpectation(); | |
| $httpBackend.verifyNoOutstandingRequest(); | |
| } |
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
| # PYTHON VERSION | |
| # https://www.reddit.com/r/dailyprogrammer | |
| # [2016-05-09] Challenge #266 [Easy] Basic Graph Statistics: Node Degrees | |
| # assumes data does not duplicate nodes (ie. if there is a '4 6', there is NOT a '6 4') | |
| # sample input data, turned into space delimited string | |
| inputData = ("16 1 2 1 3 2 3 1 4 3 4 1 5 2 5 1 6 2 6 3 6 3 7 5 7 6 7 3 8 4 8 6 " + |
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
| # RUBY VERSION | |
| # https://www.reddit.com/r/dailyprogrammer | |
| # [2016-05-09] Challenge #266 [Easy] Basic Graph Statistics: Node Degrees | |
| # assumes data does not duplicate nodes (ie. if there is a '4 6', there is NOT a '6 4') | |
| # sample input data, turned into space delimited string | |
| inputData = "16 1 2 1 3 2 3 1 4 3 4 1 5 2 5 1 6 2 6 3 6 3 7 5 7 6 7 3 8 4 8 6 \ | |
| 8 7 8 2 9 5 9 6 9 2 10 9 10 6 11 7 11 8 11 9 11 10 11 1 12 6 12 7 12 8 12 11 12 6 \ |
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
| ~ $ nvm use v0.12 | |
| Now using node v0.12.9 (npm v2.14.9) | |
| ~ $ node | |
| > var regex = /\[(\d+),/; | |
| undefined | |
| > var str = ' [2,23](W033) Missing semicolon.'; | |
| undefined | |
| > str.match(regex) | |
| [ '[2,', | |
| '2', |
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
| ~/scala/exp-mobile-admin/admin $ cordova build ios -debug | |
| Running command: /Users/tristanpendergrass/scala/exp-mobile-admin/admin/platforms/ios/cordova/build --debug | |
| Building project : /Users/tristanpendergrass/scala/exp-mobile-admin/admin/platforms/ios/AdminApp.xcodeproj | |
| Configuration : Debug | |
| Platform : emulator | |
| Build settings from command line: | |
| ARCHS = i386 | |
| CONFIGURATION_BUILD_DIR = /Users/tristanpendergrass/scala/exp-mobile-admin/admin/platforms/ios/build/emulator | |
| SDKROOT = iphonesimulator9.2 | |
| SHARED_PRECOMPS_DIR = /Users/tristanpendergrass/scala/exp-mobile-admin/admin/platforms/ios/build/sharedpch |
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
| let newOrg; | |
| let newUser; | |
| const newOrgPromise = (new models.Organization(ctx.org)).then(org => org.save()); | |
| const newUserPromise = user.save(); | |
| return Promise.all([newOrgPromise, newUserPromise]) | |
| .then((orgResult, userResult) => { | |
| newOrg = orgResult; | |
| newUser = userResult; | |
| return newOrg.appendUser(newUser); |
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
| {block:Photos} | |
| {block:HighRes} | |
| <img src="{PhotoURL-HighRes}" alt="{PhotoAlt}" style="max-width:100%;" class="high-res-photo"> | |
| {/block:HighRes} | |
| <img src="{PhotoURL-250}" alt="{PhotoAlt}" {block:HighRes}style="display:none"{/block:HighRes} class="low-res-photo"/> | |
| <!--<img src="{PhotoURL-500}" alt={PhotoAlt} class="high-res" />--> | |
| <!--<img src="{PhotoURL-250}" alt="{PhotoAlt}" {block:HighRes/>--> | |
| {/block:Photos} |
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
| ~/scala/exp-jcr $ vagrant provision | |
| ==> default: Running provisioner: shell... | |
| default: Running: /var/folders/08/11l8c_nd5jlc133tb5frrpfm0000gn/T/vagrant-shell20160307-43142-1n2l820.sh | |
| ==> default: stdin: is not a tty | |
| ==> default: Checking for obsolete containers | |
| ==> default: Removing obsolete containers | |
| ==> default: abdf7155a83f | |
| ==> default: abdf7155a83f | |
| ==> default: ## Installing the NodeSource Node.js 0.12 repo... | |
| ==> default: ## Populating apt-get cache... |