This file contains 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
/* | |
* GoogleConversionTrackingBridge.java | |
* Copyright (C) 2014 Yuya Hashimoto | |
*/ | |
package im.yuya.unitygoogleconversiontrackingplugin; | |
import com.unity3d.player.UnityPlayer; | |
import android.app.Activity; | |
import java.util.Map; |
This file contains 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 | |
cd ~/.lolcommits && rm -rf tmp && mkdir tmp && find . -name "*.jpg" -mtime -1 -print0 | xargs -0 -J % cp % tmp && convert -delay 15 tmp/*.jpg ani.gif && rm -rf tmp |
This file contains 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
unless Function::bind | |
Function::bind = (obj) -> | |
unless typeof this is "function" | |
throw new TypeError "Function.prototype.bind - what is trying to be bound is not callable" | |
slice = [].slice | |
args = slice.call(arguments, 1) | |
method = this | |
noop = -> | |
bound = -> |
This file contains 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 | |
if ! type coffee > /dev/null 2>&1; then echo "Please install the coffee-script."; exit; fi | |
if [[ ! "${1}" =~ \.coffee$ ]]; then echo "File extension error"; exit; fi | |
echo \{ | |
cat $1 | \ | |
coffee --print --bare --compile --stdio | \ | |
sed -e '1,2d; $d' | \ | |
sed "s/\([^ '\"].*[^ '\"]\): /\"\1\": /" |
This file contains 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"?> | |
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.unity3d.player" | |
android:installLocation="preferExternal" | |
android:theme="@android:style/Theme.NoTitleBar" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<supports-screens | |
android:smallScreens="true" |
This file contains 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
<table> | |
<tbody><tr> | |
<th> feature/os version</th> | |
<th><a class="keyword" href="http://d.hatena.ne.jp/keyword/ios">ios</a>-4.3.2</th> | |
<th><a class="keyword" href="http://d.hatena.ne.jp/keyword/ios">ios</a>-5.0</th> | |
<th><a class="keyword" href="http://d.hatena.ne.jp/keyword/ios">ios</a>-5.1</th> | |
<th><a class="keyword" href="http://d.hatena.ne.jp/keyword/ios">ios</a>-6.0</th> | |
<th><a class="keyword" href="http://d.hatena.ne.jp/keyword/android">android</a>-1.6</th> | |
<th><a class="keyword" href="http://d.hatena.ne.jp/keyword/android">android</a>-2.1</th> | |
<th><a class="keyword" href="http://d.hatena.ne.jp/keyword/android">android</a>-2.3.3</th> |
This file contains 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
data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUHAAAALAAAAAABAAEAQAICRAEAOw== |
This file contains 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 getImageBase64(source) { | |
var image = UrlFetchApp.fetch(source), | |
blob, contentType, base64; | |
if (!image) { | |
return; | |
} | |
blob = image.getBlob(); | |
contentType = blob.getContentType(); |
This file contains 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
var API = { | |
UPDATE_WITH_MEDIA : "https://api.twitter.com/1.1/statuses/update_with_media.json" | |
}; | |
function oAuthConfig() { | |
var oAuthConfig = UrlFetchApp.addOAuthService("twitter"); | |
oAuthConfig.setAccessTokenUrl("https://api.twitter.com/oauth/access_token"); | |
oAuthConfig.setRequestTokenUrl("https://api.twitter.com/oauth/request_token"); | |
oAuthConfig.setAuthorizationUrl("https://api.twitter.com/oauth/authorize"); |
This file contains 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
// Simple JavaScript Templating | |
// John Resig - http://ejohn.org/ - MIT Licensed | |
(function () { | |
var cache = {}; | |
this.tmpl = function tmpl(str, data) { | |
var fn = !/\W/.test(str) ? | |
cache[str] = cache[str] || | |
tmpl(document.getElementById(str).innerHTML) : |