Skip to content

Instantly share code, notes, and snippets.

View scarwu's full-sized avatar
🖖
Live long and prosper

Scar Wu scarwu

🖖
Live long and prosper
View GitHub Profile
@scarwu
scarwu / gist:6607832
Created September 18, 2013 11:27
Search Agent ID
javascript:(function(){var agentName=prompt("Enter Agent Name");for(var x in localStorage)if(localStorage[x]==agentName)alert("Agent: "+agentName+"\nID: "+x);})();
@scarwu
scarwu / gist:3331293
Created August 12, 2012 10:58
Nginx Server Setting for RNFS
server {
listen 3000 default;
root /var/www/Development/RNFileSystem/Boot;
server_name localhost;
client_max_body_size 256m;
location / {
index index.php;
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php$1 last;
@scarwu
scarwu / gist:2881100
Created June 6, 2012 10:08
My PHP Style
/**
* Constant
*/
define('PREFIX_NAME', 0);
/**
* Class
*/
class PrefixName {
// Private variable