I hereby claim:
- I am jameswyse on github.
- I am jameswyse (https://keybase.io/jameswyse) on keybase.
- I have a public key whose fingerprint is 49C3 2DA9 6F4F 6ED5 7701 3FA3 3E58 B8A3 707E 9430
To claim this, I am signing this object:
#!/bin/sh | |
# HTML5 Video Conversion Script | |
# Usage: ./html5video.sh file.mp4 640x360 | |
# | |
# Requires FFMPEG 4.2+. To install on OSX: | |
# | |
# brew uninstall ffmpeg | |
# brew cask install xquartz | |
# brew install chromaprint amiaopensource/amiaos/decklinksdk |
import asyncio | |
from django import http | |
from django.core.urlresolvers import set_script_prefix | |
from django.utils.encoding import force_str | |
from django.core.handlers.wsgi import get_script_name | |
from django_wsgi.handler import DjangoApplication | |
import logging | |
import logging | |
import sys |
I hereby claim:
To claim this, I am signing this object:
javascript:(function(e,n,o,t){o=e.body,t=%22true%22==o[n],o[n]=t%3F%22false%22:%22true%22,e.designMode=t%3F%22off%22:%22on%22})(document,%22contentEditable%22) |
#!/usr/bin/env ruby -E utf-8 | |
# merge_asana_into_omnifocus.rb | |
# Hilton Lipschitz | |
# http://www.hiltmon.com | |
# Use and modify freely, attribution appreciated | |
# Script to import Asana projects and their tasks into | |
# OmniFocus and keep them up to date from Asana. |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Whether you use 2 spaces or 4 spaces, there are a few simple things that can make your node.js code easier to read. We've been using them in all the hapi modules for over 4 years now to great results. This list is by no means complete but it highlights the most useful elements that will give you immediate value in reducing bugs.
JavaScript makes it harder than most languages to know where variables are coming from. Variables assigned required modules are particularly important because they represent a singleton object shared with the entire application. There are also globals and module globals, along with function variables and arguments.
Traditionally, variables starting with an uppercase letter represent a class that must be instantiated using new
. This was an important semantic in the early days of JavaScript but at this point, if you don't know Date
requires new Date()
you are probably very new. We have adopted Upper Camel Case variable names for all module global variables