Skip to content

Instantly share code, notes, and snippets.

View suchipi's full-sized avatar
💻
Looking for work!

Lily Skye suchipi

💻
Looking for work!
View GitHub Profile
@matthiasak
matthiasak / languages-that-compile-to-js.md
Created October 15, 2015 13:12
Languages that compile to JS (from CoffeeScript wiki)

CoffeeScript Family (& Friends)

Family (share genes with CoffeeScript)
  • Coco A CoffeeScript dialect that aims to be more radical and practical, also acts as a test bed for features that get imported in CoffeeScript.
    • LiveScript is a fork of Coco that is much more compatible with CoffeeScript, more functional, and with more features.
  • IcedCoffeeScript A CoffeeScript dialect that adds support for await and defer keywords which simplify async control flow.
@Python1320
Python1320 / coroutinefun.lua
Last active April 1, 2022 13:47
Garry's Mod Lua (glua, luajit) coroutine fun (testing version)
--setfenv(1,_G)
local meta={}
local co=setmetatable({},meta)
_G.co=co
-- todo
-- error handler wrapper?
-- select() polling support (epoll() please :c)
-- co.make steal parameters
-- ?
@willurd
willurd / web-servers.md
Last active January 2, 2026 20:21
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@whs
whs / mkhardsub.sh
Created February 9, 2012 11:43
Hardsub a mkv
#!/bin/bash
if [ "$1" = "" -o "$2" = "" ]; then
echo "mkhardsub file.mkv out.mkv"
exit 1
fi
# -ass-force-style FontName=supermarket,Default
mplayer -nosound -benchmark "$1" -ass -fontconfig -ass-font-scale 1.2 -vf scale=854:480 -sid 0 -vo yuv4mpeg:file=>(x264 --crf 20 --preset ultrafast --level 30 --vbv-bufsize 10000 --vbv-maxrate 16000 --threads auto --output /tmp/mkhardsub.mkv --demuxer y4m -)
ffmpeg -i /tmp/mkhardsub.mkv -i "$1" -vcodec copy -map 0:0 -map 1:a:0 $2
#rm /tmp/mkhardsub.mkv