The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.
It uses Open Source tools that are widely available, tested and understood:
- Node.JS
- NPM
- Express
The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.
It uses Open Source tools that are widely available, tested and understood:
# Inspired by a church billboard that read: | |
# "When I becomes we, illness becomes welness" | |
# | |
# usage: | |
# > ruby change-x-for-y.rb i we | |
# illness wellness | |
# inch wench | |
# it wet | |
# ... |
// ==UserScript== | |
// @name wordnik-links | |
// @namespace com.cemerick | |
// @description links all words in wordnik definitions to their corresponding wordnik page | |
// @version 1 | |
// @grant none | |
// @match http://www.wordnik.com/words/* | |
// @match https://www.wordnik.com/words/* | |
// ==/UserScript== |
Elastic Load Balancer, CloudFront and Let's Encrypt |
var T = require("twit"); | |
var Q = require("q"); | |
// key and secret for Twitter for iPhone. | |
// A whitelisted app is needed to access the cards API; you can't just create your own currently. | |
var TWITTER_CONSUMER_KEY = "IQKbtAYlXLripLGPWd0HUA"; | |
var TWITTER_CONSUMER_SECRET = "GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU"; | |
// These you will have to fill in yourself by authorizing Twitter for iPhone for your account. | |
// How to get the access tokens through OOB authorization is outside the scope of this snippet. | |
var TWITTER_ACCESS_TOKEN = ""; |
from __future__ import print_function | |
import tweepy | |
import gb_config as gb_config | |
USERNAME = '@twitter' | |
class MentionsListener(tweepy.StreamListener): |
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...
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
OS X's "Word of the Day" screensaver is a great way to passively learn words:
But I've always thought that its word list kind of stunk—it was full of obscure words that I could never really see myself using. I'd prefer something like Norman Schur's 1000 Most Important Words. What if you could plug your own word list into the screensaver?
On a rather obscure comment thread, someone explained where you might find the word list that Apple uses to power the screensaver. It is at /System/Library/Graphics/Quartz\ Composer\ Plug-Ins/WOTD.plugin/Contents/Resources/NOAD_wotd_list.txt
. The file looks like this:
m_en_us1282510 quinsy