Skip to content

Instantly share code, notes, and snippets.

@mscuthbert
mscuthbert / thingsToCal.scpt
Created June 26, 2016 19:41
Javascript for Automation (JXA) task to take Cultured Code Things Today list tagged with times and put it in calendar
/**
* ThingsToCal -- Copyright (c) 2016 Michael Scott Cuthbert
* Released under a BSD License
*
*/
ObjC.import("stdlib");
class ThingsOrganizer {
constructor() {
@mbejda
mbejda / White-Male-Names.csv
Last active August 18, 2020 18:35
Dataset of ~40,000 white (Caucasian) male names for NLP training and analysis. The names have been retrieved from US public inmate records. (last name, first name,gender,race).
We can't make this file beautiful and searchable because it's too large.
last name, first name,gender,race
aaron, billy r ,m,white
aaron, charles d ,m,white
aaron, clarence d ,m,white
aaron, justin c ,m,white
aaron, roy s ,m,white
aaron, william l ,m,white
aaronson, cary ,m,white
abate, manuel j ,m,white
@metamatt
metamatt / QBird.js
Created June 11, 2015 23:00
Replace Angular $q with Bluebird
app.config(['$qProvider', function($qProvider) {
// Tell Angular to create Bluebird promises instead of $q promises.
$qProvider.$get = function() {
function QBird(resolver) {
return new Promise(resolver);
}
QBird.defer = function() {
var deferred = {};
deferred.promise = new Promise(function(resolve, reject) {
AWS = require 'aws-sdk'
s3 = new AWS.S3()
bucketName = 'lambda-test'
region = 'us-east-1'
key = 'testData.json'
module.exports = (event, context) ->
console.log JSON.stringify(event, null, 2)
console.log 'From SNS:', event.Records[0].Sns.Message
@jbenet
jbenet / simple-git-branching-model.md
Last active September 19, 2024 16:05
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@bignerdranch
bignerdranch / BNRTimeBlock.h
Created March 9, 2012 13:51
Timing Utility Post 20120308
CGFloat BNRTimeBlock (void (^block)(void));