Title | Subtitle | Authors | JSTOR Discipline 1 |
---|---|---|---|
Tracking Rural Change | "Community, Policy and Technology in Australia, New Zealand and Europe" | Socio |
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
let fs = require('fs'); | |
let archiver = require('archiver'); | |
let request = require('request'); | |
let archive = archiver('zip', { store: true}); | |
let out = fs.createWriteStream(__dirname + '/sports.zip'); | |
let sport1 = request('http://lorempixel.com/400/200/sports/1/'); | |
let sport2 = request('http://lorempixel.com/400/200/sports/2/'); |
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
const fs = require('fs'); | |
const selenium = require('selenium-standalone'); | |
const webdriver = require('webdriverio'); | |
installSelenium() | |
.then(startSelenium) | |
.then(runTest) | |
.then(stopSelenium); | |
function installSelenium() { |
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
function Module(lodash, THREE, moment) { | |
this.thingy = stuff => lodash.zip(stuff, false); | |
this.majig = whatever => moment().format(whatever); | |
this.zxzzxz = blah => new THREE.TextureLoader().load(blah); | |
} | |
module.exports = new Module( | |
require('lodash'), | |
require('three'), | |
require('moment') |
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
const THREE = require('three'); | |
function AjaxTextureLoader() { | |
/** | |
* Three's texture loader doesn't support onProgress events, because it uses image tags under the hood. | |
* | |
* A simple workaround is to AJAX the file into the cache with a FileLoader, then extract that into a | |
* texture with a separate TextureLoader call. | |
*/ |
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
'use strict'; | |
module.exports = function compileJS(grunt) { | |
const babel = require('babel-core'), | |
Concat = require('concat-with-sourcemaps'), | |
config = grunt.config.get('tt'), | |
configHelper = require('../tt/config.js'), | |
fileSeparator = ';\n', | |
fs = require('fs'), | |
path = config.get('dir.public') + '/js', |
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 myFileName = 'commercial.js'; | |
var fs = require('fs'); | |
var input = fs.createReadStream(myFileName); | |
var text = ''; | |
input.on('data', function (data) { | |
text += data; | |
}); |
layout | title | date | comments | categories | ||
---|---|---|---|---|---|---|
post |
The gist of monads |
2016-04-07 00:47:16 +0100 |
true |
|
Most monad tutorials are long, confusing, and ineffective. I cannot promise this one will be more clear, more interesting, or even more effective, but I can at least promise to make it brisk. You have nothing to lose by reading it.