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
import org.apache.commons.codec.binary.Base64.decodeBase64 | |
import play.api._ | |
import play.api.mvc._ | |
trait BasicRealm { | |
def name: String | |
def authorize(user: String, password: String): Boolean | |
} | |
object BasicRealm extends Controller { |
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
import play.api._ | |
import play.api.mvc._ | |
import java.security.{ MessageDigest, SecureRandom } | |
import scala.util.matching.Regex.Match | |
import org.apache.commons.codec.binary.Hex.encodeHex | |
import org.apache.commons.codec.binary.Base64.encodeBase64 |
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
#!/bin/sh | |
[ -f server.csr ] && rm -f server.csr | |
[ -f server.crt ] && rm -f server.crt | |
[ -f server.key ] && rm -f server.key | |
[ "$1" == clean ] && exit 1 | |
SUBJ=/C=JP/ST=Tokyo/L=Shibuya/O=$(id -un)/CN=$(hostname -f) |
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
function queryString(name) { | |
var results = new RegExp( | |
'[\\?&]' + | |
name.replace(/[\[]/, '\\\[').replace(/[\]]/, '\\\]') + | |
'=([^&#]*)' | |
).exec(window.location.search); | |
if (null === results) return ''; | |
return decodeURIComponent(results[1].replace(/\+/g, ' ')); | |
} |
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
#!/bin/sh | |
# | |
ECLIPSE_APP=$(cd $(dirname "$0"); cd ../..; pwd) | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home | |
$JAVA_HOME/bin/java \ | |
-showversion \ | |
-XX:MaxPermSize=256m \ | |
-Xms1536m \ |
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
{ | |
"¥" = ("insertText:", "\\"); | |
"~¥" = ("insertText:", "¥"); | |
} |
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
<?xml version="1.0"?> | |
<root> | |
<appdef> | |
<appname>SOURCE_TREE</appname> | |
<equal>com.torusknot.SourceTreeNotMAS</equal> | |
</appdef> | |
<appdef> | |
<appname>ECLIPSE</appname> | |
<equal>org.eclipse.eclipse</equal> | |
</appdef> |
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
COCOS_JAVA=../../../cocos/2d/platform/android/java | |
all: build install start | |
build: native java | |
native: | |
./build_native.py | |
java: ${COCOS_JAVA}/local.properties local.properties |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters] | |
"PollingIterations"=dword:00002ee0 | |
"PollingIterationsMaximum"=dword:00002ee0 | |
"ResendIterations"=dword:00000003 | |
"LayerDriver JPN"="kbd106.dll" | |
"LayerDriver KOR"="kbd101a.dll" | |
"OverrideKeyboardIdentifier"="PCAT_106KEY" | |
"OverrideKeyboardType"=dword:00000007 |
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
# | |
# | |
# | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBeforeRepeat 0.1 | |
config secondsBetweenRepeat 0.07 |