Edward Snowden answered questions after a showing of CITIZENFOUR at the IETF93 meeting; this is a transcript of the video recording.
For more information, see the Internet Society article.
var page = require('webpage').create(); | |
page.open('http://jsbin.com/ifuma#noedit', function () { | |
setTimeout(function () { | |
page.sendEvent("mousedown", 10, 10); | |
page.sendEvent("mousemove", 200, 200); | |
page.sendEvent("mouseup", 200, 200); | |
page.render('ss.png'); | |
phantom.exit(); | |
}, 3000); | |
}); |
license: gpl-3.0 |
Edward Snowden answered questions after a showing of CITIZENFOUR at the IETF93 meeting; this is a transcript of the video recording.
For more information, see the Internet Society article.
// ensure the keys being passed is an array of key paths | |
// example: 'a.b' becomes ['a', 'b'] unless it was already ['a', 'b'] | |
const keys = ks => Array.isArray(ks) ? ks : ks.split('.') | |
// traverse the set of keys left to right, | |
// returning the current value in each iteration. | |
// if at any point the value for the current key does not exist, | |
// return the default value | |
const deepGet = (o, kp, d) => keys(kp).reduce((o, k) => o && o[k] || d, o) |
#!/usr/bin/env node | |
"use strict"; | |
const child_process = require("child_process"); | |
const fs = require("fs"); | |
const help = `Usage: npmls.js [-gh|--help] [filter...] | |
** Requires Node >= 4 ** |
I have a Graphcool project definition, with multiple stages, and I have a Serverless AWS definition. I use the Serverless AWS definition to deploy all of my functions, and I link them to Graphcool by using Webhooks. This document describes some of the ideas for linking those two deployments together.
So what kind of information do the Graphcool service and the Serverless service need to know about each other in order to connect?
const rsort = data => { | |
if (Array.isArray(data)) { | |
if (data.every(a => /(string|number|undefined)/.test(typeof a) || a === null)) return data.sort() | |
return data.map(rsort).sort() | |
} | |
if (typeof data === 'object' && data !== null) { | |
return Object.entries(data) | |
.sort(([k], [_k]) => k > _k) | |
.reduce((o, [k, v]) => ({ ...o, [k]: rsort(v) }), {}) |
// create a bookmark and use this code as the URL, you can now toggle the css on/off | |
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
javascript: (function() { | |
var styleEl = document.getElementById('css-layout-hack'); | |
if (styleEl) { | |
styleEl.remove(); | |
return; | |
} | |
styleEl = document.createElement('style'); | |
styleEl.id = 'css-layout-hack'; |
#!/bin/sh | |
# This script checks if the prisma e2e test workflow passes | |
# Check the end of the file for usage | |
check() { | |
str=$(curl -s "https://github.com/$1/workflows/$2/badge.svg") | |
case "$str" in | |
*"passing"*) |