View gist:3e6ec66dff1c970223dafb9cd7cb59ab
let { repository } = await graphql(`{ | |
repository(owner: "${owner}", name:"${repoName}") { | |
object(expression: "${branch}") { | |
... on Commit { | |
history(first: 100, since: "${since}") { | |
nodes { | |
${commitFields} | |
} | |
} | |
} |
View alphanum.txt
ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 | |
abcdefghijklmnopqrstuvwxyz1234567890 |
View download-s3.bash
brew install awscli | |
aws configure | |
# 1. log into your aws console, click on "security and credentials" in the menu | |
# 2. access your IAM page, create a new user & group with access to your bucket | |
# 3. copy credentials to a safe spot | |
# AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE | |
# AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY | |
# Default region name [None]: us-west-2 |
View Gruntfile.js
module.exports = function(grunt) { | |
require('grunt-task-loader')(grunt); | |
grunt.initConfig({ | |
dir: { | |
src: "Source", | |
dist: "Deploy", | |
tmp: ".tmp" | |
}, | |
clean: { |
View ShowHideTransitionEnd.js
var COVER; | |
var Cover; | |
(function($) { | |
COVER = function() { | |
// private | |
var __ = this; | |
var $cover = $('#cover'); | |
var isShowing = false; | |
// public |
View gist:a3193b9ce6cfcb7738ac
# using Homebrew | |
# Note: `brew install npm` has problems, as of 2010-12-30. | |
# hopefully it will eventually be good and happy. | |
# As of npm@0.2.13, however, this is an option | |
PREFIX=$(brew --prefix) | |
# take ownership | |
# this will also let homebrew work without using sudo |
View background_subtraction_webcam
// This will show background subtraction from your webcam in processing using: | |
// https://github.com/atduskgreg/opencv-processing | |
import gab.opencv.*; | |
import processing.video.*; | |
import java.awt.*; | |
//Movie video; | |
Capture video; | |
OpenCV opencv; |
View index.html
<form class="mediaForm" enctype="multipart/form-data"> | |
<input name="file" type="file" class="media" /> | |
<input type="submit" name="submit" class="submit" /> | |
</form> |
View getusermedia_picture.html
<html> | |
<body> | |
<video id="v" width="300" height="300"></video> | |
<input id="b" type="button" disabled="true" value="Take Picture"></input> | |
<canvas id="c" style="display:none;" width="300" height="300"></canvas> | |
</body> | |
<script> | |
navigator.getUserMedia({video: true}, function(stream) { | |
var video = document.getElementById("v"); | |
var canvas = document.getElementById("c"); |
View colors.json
["0,0,0", | |
"35,0,1", | |
"71,1,2", | |
"107,2,6", | |
"142,4,10", | |
"178,6,16", | |
"214,9,21", | |
"249,13,27", | |
"1,35,2", | |
"36,36,2", |
NewerOlder