Skip to content

Instantly share code, notes, and snippets.

.mouse{
position: absolute;
background-image: url('../images/cursor.png');
width: 15px;
height: 22px;
z-index: 100;
}
var haml = require('hamljs'); var app = require('express').createServer();
var express = require('express');
app.configure('development', function() {
app.use(express.methodOverride());
app.use(app.router);
app.use(express.logger());
app.use(express.bodyDecoder());
app.use(express.staticProvider(__dirname+'/public'));
});
@vitohuang
vitohuang / hack.sh
Created March 31, 2012 10:58 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@vitohuang
vitohuang / .vimrc
Last active August 29, 2015 14:14
.vimrc
"NeoBundle Scripts-----------------------------
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
@vitohuang
vitohuang / overview.geojson
Created April 19, 2015 19:34
Cycling route overview
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# utf8 is on
set -g utf8 on
set -g status-utf8 on
# Force a reload of the config file
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>route</title>
<script src="//d3js.org/queue.v1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<script src="//d3js.org/topojson.v1.min.js"></script>
</head>
<body>
@vitohuang
vitohuang / videos.json
Last active February 10, 2017 23:03
Test video json
[{
"title": "Test 1",
"thumbnail": "https://www.blueoceanstrategy.com/wp-content/uploads/2015/01/What-is-blue-ocean-strategy.jpg",
"video": "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
}, {
"title": "Test 2",
"thumbnail": "https://s-media-cache-ak0.pinimg.com/736x/4f/ce/da/4fceda14ca9e010733e927492a929af9.jpg",
"video": "http://media.w3.org/2010/05/sintel/trailer.mp4"
}, {
"title": "Test 3",
@vitohuang
vitohuang / gist:58ba4f5a28d7dc775175f806fc2f82a3
Last active February 10, 2017 23:41 — forked from chrislavender/gist:cad26500c9655627544f
HTTP Live Streaming Tutorial

Note: This is an older post that I did back when I thought I might have time to be a blogger. Oh I was oh so wrong. However, it has proven useful for some folks on stackoverflow. Thus I'm keeping it alive here on Gist.

One of my past projects dealt heavily with an open source Apple technology called HTTP Live Streaming. It’s an HTTP based streaming protocol that at its most fundamental level provides a way to stream video and audio from just about any server with nothing but a few free software tools provided by Apple**. However, it has a few additional features that I think make it a really exciting tool. Yet, I haven’t seen HTTP Live Streaming used very much. This is probably mainly due to the combination of a lack of good/clear documentation, and Apple’s Live Streaming Developer Tools being command line based also make the barrier to entry higher than many developers want to deal with.

The hope is to share my understanding of how to use this technology to:

@vitohuang
vitohuang / myweechat.md
Created September 14, 2017 21:07 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf