Skip to content

Instantly share code, notes, and snippets.

View allenyllee's full-sized avatar

Allen.YL allenyllee

View GitHub Profile
@allenyllee
allenyllee / _Useful_Shell_Script.md
Last active July 13, 2016 02:46
There are some useful Shell Script.

#There are some useful Shell Script.

@allenyllee
allenyllee / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@allenyllee
allenyllee / Probability.c
Last active July 13, 2016 02:54
There are some simple C function
/**
問題:假設記憶遊戲使用12張牌,6對(112233445566)
    規則為每次翻兩張,相同就保留,不同就蓋回背面
    給六次機會,請問用程式算翻出6對~1對的機率為何?
**/
/**
不記牌的抽中機率
# GDC Vault videos can't be watched on mobile devices and this is a very sad thing indeed!
# (Note: this has changed for GDC2013, which lets you watch raw MP4 streams. Kudos!)
# This script is designed to circumvent this by downloading the lecture and slideshow
# videos which can then be re-encoded into whatever format you wish. Obviously, you
# won't be able to do this without access to the Vault. This is strictly for the
# convenience of legitimate Vault users!
# Note: this code is rather flimsy and was written as fast as possible for my own personal use.
# The code only works for the most recent GDC Vault videos, since they all use the same player
# format. If the XML format used to run the player is changed (as it has in the past), the code