Skip to content

Instantly share code, notes, and snippets.

View nikolaiwarner's full-sized avatar
🌱
punk 2 punk

Nick Warner nikolaiwarner

🌱
punk 2 punk
View GitHub Profile

ARCHITECTURE

cabal clients
  cabal-core

cabal-core
  discovery-swarm
    dat-swarm-defaults
  kappa-view-level
 kappa-core

Direct copy of pre-encoded file:

$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8

@mildmojo
mildmojo / LexitronCreateAxes.cs
Last active August 29, 2015 14:08
Bolt-on Lexitron arcade cabinet compatibility for Unity
/* LexitronCreateAxes.cs
*
* 1. Place this script in your project's Assets/Editor/ directory.
* 2. Open Edit -> Project Settings -> Input and verify that there are four "Lexitron" axes.
* 3. Delete this script.
*
* All of this code shamelessly swiped from:
* http://www.plyoung.com/blog/manipulating-input-manager-in-script.html
* http://answers.unity3d.com/questions/26994/running-a-script-when-unity-starts.html
*/
@nuex
nuex / hacker_evocation.md
Last active August 29, 2015 14:07
hacker evocation

hacker evocation

These are albums and tracks that evoke hacker intention.

Mostly ambient albums so far.

  • The Social Network (album) - Trent Reznor and Atticus Ross
  • Plume (album) - Loscil
  • Ghosts (album) - Monolake
@nikolaiwarner
nikolaiwarner / convert_all_erb_files_to_haml_et_al_via_thor.thor
Created February 3, 2011 02:20
Thor scripts for bulk converting files to haml and sass
# 2011 Nikolai Warner <n@nikolaiwarner.com>
# Originally inspired by divoxx at http://snippets.dzone.com/posts/show/5449
class ConvertAll < Thor
desc "to_haml [path]", "convert all erb files to haml in [path]"
def to_haml(path='.')
delete_when_done = yes?("Remove erb files after conversion? (y/n): ")
Dir["#{path}/**/*.erb"].each do |file|
`html2haml -rx #{file} #{file.gsub(/\.erb$/, '.haml')}`