Skip to content

Instantly share code, notes, and snippets.

View dai's full-sized avatar
🗻
still Catch it Up.

dai dai

🗻
still Catch it Up.
View GitHub Profile
@dai
dai / hola.js
Last active August 29, 2015 13:57
2014-03-19 2nd
console.log('saa, hajimeyou!');
phantom.exit();
@dai
dai / mf-two-ja-demo.js
Created April 12, 2014 07:47
mf-two-ja-demo
// http://www.mainframe2.com/live
//
// embed test for #mainframe2 (Japan)
<script src='https://apps.mainframe2.com/embed/mf2ea.js?hash=bApokqpa&size=M'></script>
@dai
dai / README.txt
Created March 2, 2009 15:43 — forked from rmm5t/README.md
You can represent time statements in most western languages where
a prefix and/or suffix is used.
The default case is to use suffix only (as in English), which you
do by providing the `suffixAgo` and `suffixFromNow` settings in
the strings hash (earlier versions of timeago used the deprecated
`ago` and `fromNow` options). If present, they are used.
2 minutes [suffixAgo]
2 minutes [suffixFromNow]
@dai
dai / 0411.lng
Created September 12, 2009 15:38
;NetXfer2.87対応日本語言語:20090912 by barlog”大輔”
;ご連絡は http://barca.daa.jp まで。
;0409.lng(0409は英語のコードページ)からコピーしてxxxxxxxx.lngを作成,
;ファイル名任意ですか拡張子は"lng"にして下さい
; '\n' はリターンコードを表しているため、必ず保留するように,'\t'はタブを表しているため、保留するように
; '&' 後ろの英文字はショットカットキーとして使用することできます
; '%' と後ろの英文字は代入用文字です、必ず保留するように
Version=2.87
61514=最新版にアップグレードしてください。\nプログラムを終了します。
package main
// fib returns a function that returns
// successive Fibonacci numbers.
// quoted by golamg.org
func fib() func() int {
a, b := 0,1
return func() int {
a, b = b, a+b
return b
@dai
dai / ropt.ion
Created April 16, 2012 04:18
desc.ropt.ion
##utf-8
#Hi i nade it.
##i made New word of
<style>
.portrait {
float: left;
width: 120px;
margin-right: 35px;
margin-bottom: 50px;
}
.portrait .name {
font-size: 14px;
@dai
dai / egintent.java
Created July 11, 2012 05:19
Example: Using Intent to Twitter. / by harukazepc(http://d.hatena.ne.jp/harukazepc/20111219/1324260914#intent)
var shareButton = Ti.UI.createButton({title:'share'});
shareButton.addEventListener('click',function(e) {
var shareText = 'share the text';
// ボタン押したら、ACTION_SEND対応のアプリへ暗黙インテント発行
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_SEND
});
// EXTRA_TEXTとして、shareTextの内容を渡す
intent.putExtra(Ti.Android.EXTRA_TEXT,shareText);
@dai
dai / string.xml
Created July 16, 2012 13:40
japanese string.xml for android apps.
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2012 GitHub Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@dai
dai / flash_entitlements.xml
Created August 9, 2012 17:06
Flash Player 11.4 Beta 2 - Notes for iOS Push Notifications.
<iPhone>
<Entitlements>
<![CDATA[
<key>get-task-allow</key>
<true/>
<key>aps-environment</key>
<string>development</string>
<key>keychain-access-groups</key>
<array>
<string>KEYCHAIN_ACCESS_GROUP</string>