Create a .npmrc file for your project like this:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
Then find your token inside the ~/.npmrc file in your home folder and set it as an NPM_TOKEN environment variable through netlify's admin UI.
| 'use strict'; | |
| var gulp = require('gulp'), | |
| bb = require('bitballoon'); | |
| gulp.task('build', [], function() { | |
| // Your build task | |
| }); | |
| gulp.task('deploy', ['build'], function() { |
| {"BarryMode/grav-plugin-blackhole":{"17642":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17643":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17644":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17645":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17646":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17647":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issue |
I hereby claim:
To claim this, I am signing this object:
| ### pip install pycrypto | |
| import base64 | |
| from Crypto.Cipher import AES | |
| from Crypto import Random | |
| import datetime | |
| import hashlib | |
| import hmac | |
| import json | |
| import os |
| # This generates markup for https://github.com/scottjehl/picturefill | |
| # Customize this to suit your responsive image needs | |
| markupForImage = (image, options) -> | |
| resize = options.resize | |
| width = options.width | |
| height = options.height | |
| output = | |
| '<div data-picture data-alt="' + image.alt + '">' + |
| var obj = { | |
| answer: 42, | |
| reply() { console.log(this.answer); } | |
| }; | |
| obj() |
| this.answer = "huh" | |
| var o = {answer: 42}; | |
| var a = function() { console.log(this.answer) } | |
| a.apply(o) | |
| var b = () => console.log(this.answer) | |
| b.apply(o) |
| this.answer = 42; | |
| var obj = { | |
| expression: function() { console.log(this.answer); }, | |
| arrow: () => { console.log(this.answer); } | |
| } | |
| obj.expression(); | |
| obj.arrow(); |
| // Arrow Function | |
| var hello = () => console.log("Hello") | |
| // Arrow Function with binding identifier | |
| var hello = hello() => console.log("Hello") |