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
PAGES_URL = "http://dl.dropboxusercontent.com/s/***/pages" # Dropbox/phone2chrome/pages | |
openedURLs = [] | |
getPages = (callback) -> | |
xhr = new XMLHttpRequest() | |
xhr.open 'GET', PAGES_URL, true | |
xhr.onload = -> | |
text = xhr.responseText |
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
/* | |
copied from https://sites.google.com/site/usakoyama/gastotwitterbot | |
*/ | |
function tweetInitialize() { | |
// Setup OAuthServiceConfig | |
var oAuthConfig = UrlFetchApp.addOAuthService("twitter"); | |
oAuthConfig.setAccessTokenUrl("http://api.twitter.com/oauth/access_token"); | |
oAuthConfig.setRequestTokenUrl("http://api.twitter.com/oauth/request_token"); | |
oAuthConfig.setAuthorizationUrl("http://api.twitter.com/oauth/authorize"); | |
oAuthConfig.setConsumerKey(ScriptProperties.getProperty("twitterConsumerKey")); |
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 int($x) { | |
$list: (); | |
@for $i from floor($x - $x) to floor($x) { | |
$list: append($list, 0); | |
} | |
@return length($list); | |
} | |
*/ | |
// もっとよいやり方がある |
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
// support() | |
$support-webkit: true; | |
$support-moz: true; | |
$support-ms: true; | |
$support-o: true; | |
@mixin support($list) { | |
$support-webkit: index($list, webkit); | |
$support-moz: index($list, mozilla); | |
$support-ms: index($list, ms); |
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
cuiaboutme = 'http://cui-about.me/' | |
$ = (id) -> document.getElementById id | |
getData = -> | |
inputs = document.querySelectorAll('input, textarea') | |
res = [] | |
for input in inputs | |
id = input.id | |
if id isnt 'name' and id isnt 'submit' |
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
class window.KeyHandler | |
@KEYDOWN_STRING = | |
8: 'BS' | |
9: 'Tab' | |
13: 'Enter' | |
27: 'Esc' | |
28: 'Henkan' | |
29: 'Muhenkan' | |
32: 'Space' | |
33: 'PageUp' |
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
http://jsdo.it/xl1/sO4m |
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
#julia { | |
width: 450px; | |
height: 450px; | |
-webkit-filter: custom( | |
url(normal.vs) url(julia.fs), | |
constant 0.75 -0.314 | |
); | |
-webkit-transition: -webkit-filter 6s; | |
} | |
#julia:hover { |
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
precision mediump float; | |
#define PI 3.14159265359 | |
attribute vec4 a_position; | |
uniform mat4 u_projectionMatrix; | |
uniform vec2 u_textureSize; | |
uniform vec2 target; | |
uniform float timing; |
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
// http://jsdo.it/xl1/aTTK | |
#define REFLECT_MAX 10 | |
#define NODE_LEN 10 | |
precision mediump float; | |
struct Segment { | |
vec2 start; | |
vec2 dir; |
OlderNewer