This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a guide for how I installed rails 3.1 on a clean install of Mac OS X 10.7 Lion. | |
| # There is no Warranty expressed, and I am not responsible for any issues that may arise from following this guide. | |
| # Installing rails should be simple. I cringed at other peoples methods shared via Twitter. | |
| # Keil Miller July 26, 2011 | |
| # Install RVM | |
| $ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
| # Load RVM into new shells | |
| # As instructed from the above command, add the line stated to the very bottom of the following file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.nutz.lang.util; | |
| import java.io.BufferedInputStream; | |
| import java.io.DataInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.lang.reflect.Constructor; | |
| import java.lang.reflect.Method; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOCAL_PATH := $(call my-dir) | |
| include $(CLEAR_VARS) | |
| LOCAL_MODULE := game_shared | |
| LOCAL_MODULE_FILENAME := libgame | |
| #traverse all the directory and subdirectory | |
| define walk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Use this to cause a function to fire no more than once every 'ms' milliseconds. | |
| For example, an expensive mousemove handler: | |
| $('body').mouseover(ratelimit(function(ev) { | |
| // ... | |
| }, 250)); | |
| */ | |
| function ratelimit(fn, ms) { | |
| var last = (new Date()).getTime(); |