Skip to content

Instantly share code, notes, and snippets.

View drobbins's full-sized avatar

David Robbins drobbins

  • Health Informatics - Samford University | @EmerioGroup
  • Birmingham, AL
View GitHub Profile
Verifying my Blockstack ID is secured with the address 13J4CjM7DMpps5Jz3rpASCDqKkMvxsLAhj https://explorer.blockstack.org/address/13J4CjM7DMpps5Jz3rpASCDqKkMvxsLAhj
@drobbins
drobbins / ToggleHold.applescript
Created March 18, 2016 18:27
Omnifocus ToggleHold
(* Customize Review Intervals *)
using terms from application "OmniFocus"
property onHoldReviewInterval : {unit:month, steps:1, fixed:false}
property activeReviewInterval : {unit:day, steps:4, fixed:false}
end using terms from
tell application "OmniFocus"
tell front document
tell document window 1 -- (first document window whose index is 1)
set theSelectedItems to selected trees of content
@drobbins
drobbins / StringifyStream.coffee
Created December 5, 2014 02:32
StringifyStream
stream = require "stream"
class StringifyStream extends stream.Transform
constructor: ->
super()
@_readableState.objectMode = false
@_writableState.objectMode = true
_transform: (obj, enc, done) ->
@push JSON.stringify obj, null, 2
done?()
@drobbins
drobbins / Dockerfile
Last active August 29, 2015 14:10
Dockerfile for Boot2Docker Volume Sharing?
FROM codenvy/angular-yeoman
# Change the user ID and group to be compatible with Boot2Docker
RUN sudo usermod -g staff user && sudo usermod -u 1000 user
@drobbins
drobbins / README.md
Last active August 29, 2015 14:08
nginx SSL Proxy for Meteor

nginx SSL Proxy for Meteor

This configuration file is based on that provided by the HTML 5 Boilerplate group: h5bp/server-configs-nginx @ version 228c5ccc

Usage

  1. Replace all instances of example.com with your domain name in the configuration file.
  2. Replace references to the SSL key and certificate with your files.
  3. Save the configuration (renamed) and SSL files in /etc/nginx/conf.d.
  4. Start or restart nginx (e.g. service nginx restart).
@drobbins
drobbins / README.md
Last active August 29, 2015 14:08
Bade's Problem

The Question

Collection contains a pair of strings Obj.a and Obj.b, find out the sum of all unique pairs?

Note Obj{a:"abc",b:"xyz"} is equivalent to Obj{a:"xyz",b:"abc"}, although they are two separate documents.

@drobbins
drobbins / Makefile
Created August 5, 2014 12:51
Example Makefile for building and concatenating Coffeescript.
.PHONY=build,clean
build/scripts.js: src/*.coffee
coffee --join $@ -c $^
build: build/scripts.js
clean:
rm -rf build/*
@drobbins
drobbins / AtmMachine.java
Last active August 29, 2015 14:02
ATM Machine
public class AtmMachine {
Account[] accounts;
public static void main(String[] args) {
int command;
int id;
for (int i=0; i<10; i++) {
package atmmachine;
import java.util.Date;
import java.util.Scanner;
/**
*
* @author Madai
*/
public class AtmMachine {
private int id;
@drobbins
drobbins / este_module.js
Last active August 29, 2015 14:00
Simple Meteor/IPE Module
myPatients = Patients.find().fetch();
numPatients = myPatients.length;
console.log("Hello from a module in Este. There are", numPatients, "patients available.");