Skip to content

Instantly share code, notes, and snippets.

View danhon's full-sized avatar

Dan Hon danhon

View GitHub Profile
@dphiffer
dphiffer / uber.md
Last active January 11, 2019 18:15
Re: Working For Uber - Let's Connect!
@fidothe
fidothe / README.md
Last active July 26, 2017 20:35
How to build Torch with CUDA extensions with a Ubuntu 14.04 g2.* instance on EC2

I got Torch + CUDA working on a Ubuntu 14.04 g2.2xlarge EC2 instance using these instructions. Get the latest CUDA install package by consulting https://developer.nvidia.com/cuda-downloads#linux and grabbing the most recent. (7.0 at time of writing).

I also made a public AMI with this, plus Dan Hon's char-rnn fork pre-installed.

It's ami-9bcadbab, or dreaming-prose-public, in the us-west-2 (Oregon) region. You should be able to copy it to another region if you need to. You can launch an instance in the EC2 console at this URL: https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2#LaunchInstanceWizard:ami=ami-9bcadbab

You'll need a g2.2xlarge or g2.8xlarge instance or there'll be no CUDA for you...

@simonw
simonw / eventbrite_to_slack.py
Created March 7, 2015 18:08
Send new eventbrite orders to a Slack channel (Django view function)
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import requests, json
# Get an OAuth token from https://www.eventbrite.com/myaccount/apps/
# Create a new app, then expand the expandy-thingy and copy out the
# 'Your personal OAuth token' value.
EVENTBRITE_OAUTH_TOKEN = '...'
# Should look something like https://yoursite.slack.com/services/hooks/incoming-webhook?token=xxx...xxx

Tree Of Knowledge Engine (TOKE) Spec

TOKE is a collaborative environment for learning and teaching topics with high levels of dependencies. It allows authors of articles to specify the prerequisites for each topic they write about and then dynamically transforms these prerequisite relationships into linear curricula that work for students with all different levels of pre-existing experience. TOKE makes it easy for people with a wide range of expertise to contribute knowledge at different levels of detail and it organizes this knowledge into a customized student-centered form for ease of learning.

Technical Requirements

Nodes

  • each Node has content in the form of text with links and other supporting media
  • each Node has 0 or more Prerequisite Nodes