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
(setq fixed-width-use-QuickDraw-for-ascii t) | |
(setq mac-allow-anti-aliasing t) | |
(set-face-attribute 'default nil | |
:family "andale mono" | |
:height 120) | |
;;; Unicode フォント | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'mule-unicode-0100-24ff | |
'("andale mono" . "iso10646-1")) |
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
/** | |
* WatchingInputStream: Progress-reporting InputStream wrapper. | |
* This file is in public domain. | |
*/ | |
public class WatchingInputStream extends FilterInputStream | |
{ | |
public interface ProgressListener | |
{ | |
void onAdvance(long at, long length); | |
} |
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
--- build.xml.orig 2012-01-15 21:06:46.520740476 +0900 | |
+++ build.xml 2012-01-15 21:09:00.009402410 +0900 | |
@@ -79,7 +79,17 @@ | |
In all cases you must update the value of version-tag below to read 'custom' instead of an integer, | |
in order to avoid having your file be overridden by tools such as "android update project" | |
--> | |
- <!-- version-tag: 1 --> | |
+ <!-- version-tag: custom --> | |
<import file="${sdk.dir}/tools/ant/build.xml" /> | |
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
(require 'grepper) | |
(setq grepper-command-line-alist | |
'(("." . "grep -niEHR --exclude='.svn' --exclude='.hg' --exclude='.git' --exclude='CVS' --exclude='.settings' '_re_' _buffer_path_") | |
(".." . "grep -niEHR --exclude='.svn' --exclude='.hg' --exclude='.git' --exclude='CVS' --exclude='.settings' '_re_' _buffer_path_/..") | |
("android.samples" . "grep -niEHR '_re_' /usr/local/android-sdk/samples") | |
("android.sources" . "grep -niEHR '_re_' /usr/local/android-sdk/sources") | |
("android.samples.8" . "grep -niEHR '_re_' /usr/local/android-sdk/samples/android-8") | |
("android.samples.10" . "grep -niEHR '_re_' /usr/local/android-sdk/samples/android-10") | |
("android.samples.11" . "grep -niEHR '_re_' /usr/local/android-sdk/samples/android-11") | |
("android.samples.12" . "grep -niEHR '_re_' /usr/local/android-sdk/samples/android-12") |
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
Author: Takahiro Yoshimura <[email protected]> | |
Date: Fri May 11 16:59:34 2012 +0900 | |
Patching for IS11CA et al. | |
diff --git a/assets/www/cordova-1.7.0.js b/assets/www/cordova-1.7.0.js | |
index abd2a0d..7efc77f 100644 | |
--- a/assets/www/cordova-1.7.0.js | |
+++ b/assets/www/cordova-1.7.0.js | |
@@ -1055,7 +1055,7 @@ module.exports = { |
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
Index: src/com/beatsportable/beats/GUIGame.java | |
=================================================================== | |
--- src/com/beatsportable/beats/GUIGame.java (revision 10) | |
+++ src/com/beatsportable/beats/GUIGame.java (working copy) | |
@@ -571,7 +571,8 @@ | |
} | |
// Just in case | |
- if (h == null) { | |
+ // GN (4.0.4) tends to reach here with null canvas (kinda race condition?) |
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" encoding="utf-8"?> | |
<project name="runner-setup"> | |
<!-- Half-baked pre build setup from Android SDK r20 --> | |
<target name="sdk-build-setup"> | |
<!-- read the previous build mode --> | |
<property file="${out.build.prop.file}" /> | |
<!-- if empty the props won't be set, meaning it's a new build. | |
To force a build, set the prop to empty values. --> | |
<property name="build.last.target" value="" /> | |
<property name="build.last.is.instrumented" value="" /> |
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
class Sieve { | |
def mLimit = 0; | |
def mNonPrimes = [] as Set | |
def mPrimes = [] as Set | |
def Sieve(limit) { | |
mLimit = limit; | |
} | |
def find() { |
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 | |
base=`dirname $0` | |
$base/run-test-ant test-unit-quick c:clean u:test-unit-quick U:test-unit-clean i:test-integ-quick I:test-integ-clean f:test-func-clean a:test-accept-clean l:'debug install run' L:'clean-quick debug uninstall install run' $@ |
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
module A = struct | |
open Big_int | |
let ( * ) = mult_big_int;; | |
let ( + ) = add_big_int;; | |
let ( - ) = sub_big_int;; | |
let ( / ) = div_big_int;; | |
let ( =~) = eq_big_int;; | |
let bs = big_int_of_string;; |