Skip to content

Instantly share code, notes, and snippets.

View amio's full-sized avatar
:octocat:

Amio Jin amio

:octocat:
View GitHub Profile
@eyeplum
eyeplum / rycooder.swift
Last active August 29, 2015 14:13
RyCooder - Command Line Music Player written in Swift
import Foundation
import AVFoundation
// AudioPlayer Class Definition
class AudioPlayer: NSObject {
private let runLoop: NSRunLoop = NSRunLoop.currentRunLoop()
private let stdinHandle: NSFileHandle = NSFileHandle.fileHandleWithStandardInput()
private let items: [AVPlayerItem]!
private var queuePlayer: AVQueuePlayer!
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@haf
haf / LICENSE
Last active February 14, 2024 11:15
Setting up a digitalocean proxy
https://www.gnu.org/licenses/gpl-3.0.en.html
GNU GENERAL PUBLIC LICENSE v3
@aa65535
aa65535 / ss-install.md
Last active April 7, 2024 13:03
shadowsocks-libev install at Debian or CentOS

Debian

cd /tmp
# 编译环境准备&安装依赖包
apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev libpcre3-dev asciidoc xmlto git
# 克隆源码
git clone --recursive https://github.com/shadowsocks/shadowsocks-libev.git
# 开始编译
@sebmarkbage
sebmarkbage / ElementFactoriesAndJSX.md
Last active May 17, 2022 11:06
New React Element Factories and JSX

New React Element Factories and JSX

In React 0.12, we're making a core change to how React.createClass(...) and JSX works.

If you're using JSX in the typical way for all (and only) React components, then this transition will be seamless. Otherwise there are some minor breaking changes described below.

The Problem

@staltz
staltz / introrx.md
Last active May 11, 2025 22:46
The introduction to Reactive Programming you've been missing
@gakaki
gakaki / wwdc2014_fetch_list
Last active August 29, 2015 14:02
WWDC2014 Fetch videos and pdf with title and id and platforms
// these code can simply get wwdc2014 videos and pdfs get it into the download tools
// https://developer.apple.com/videos/wwdc/2014/
// paset it in chrome or safrari
var hds = sds = pdfs = [];
function model_session() {
var tmp = {
title:"",
hd : "",
sd : "",
@teropa
teropa / d-fens.js
Created May 7, 2014 09:36
Angular.js DI example
// Framework
function createInjector() {
var instanceCache = {};
var providerCache = {};
function constant(key, value) {
instanceCache[key] = value;
}
@binux
binux / auto_vpn.sh
Created January 16, 2014 14:48
自动添加gfwlist域名的对应ip到路由表,实现动态自动翻墙
#!/bin/sh
while :
do
dev=$(ip link | grep state | awk '{ sub(":", "", $2); print $2 }' | grep vpn)
if [ $? -ne 0 ]; then
sleep 5
continue
fi
break
@amio
amio / fmog.css
Last active December 22, 2015 21:38
Fork me on Github
/***** Fork me on Github *****/
#fork-me-on-github {
opacity : 0.8;
background-color : #A00;
color : #FFF;
display : block;
position : fixed;
z-index : 10;
right : -6em;