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
Client -> Server | |
favorite {ids: [Int]} | |
unfavorite {ids: [Int]} | |
retweet {ids: [Int]} | |
Server -> Client | |
tweet {content: String, url: String, favorited: Bool, id: Int, userName: String, userScreenName: String, userImageURL: String} |
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 A | |
test: [] | |
a1 = new A() | |
a2 = new A() | |
a1.test.push 1 | |
a2.test.push 2 | |
alert a1.test # => 1,2 |
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
$ '#change-color' | |
.ColorPickerSetColor( | |
$ "#shape-#{shape.html_id}" | |
.attr 'stroke' | |
).substring 1 | |
#-> $('#change-color').ColorPickerSetColor($("#shape-" + shape.html_id).attr('stroke')).substring(1); | |
$ '#change-color' | |
.ColorPickerSetColor ( | |
$ "#shape-#{shape.html_id}" |
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
$ -> | |
include '/jQuery.cookie.js' | |
checkList = [] | |
updateControl = -> | |
$('#save-anime').attr 'disabled', true | |
link = "http://akouryy.net/anime/?year=2014&season=3&by_param" | |
console.log checkList | |
$('.show-anime').each (i) -> | |
if $(this).is ':checked' |
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
# AOJ 0530 | |
eval( | |
%( I=1/0.0; loop{n, | |
m =gets.s p lit.m ap | |
( &: to_i);n<1&&exit;c=Arr ay.new(n | |
) { Ha sh[[*gets.split[1..-1].map( &:t o | |
_ i) .each_slice(2)]]};p=Array.new(m+ 1){|k|n.ti | |
mes.map{|i| Hash[c[i].map{|j,_|[j,((i<1||i<2& &k>1) ? | |
0:I)]}]}};0.upto(m){|k|1.upto(n-1){|i|c[i].ma p{|j, d |
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
# AOJ 0530 | |
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0530 | |
# | |
# (C)2014 akouryy | |
; eval(%w(I = 1/0.0 ;l | |
o op {n,m=gets.split.map(& :to_i);n | |
< 1 && exit;c=Array.new(n){Hash[[* get s | |
. sp lit[1..-1].map(&:to_i).each_slic e(2)]]};p= | |
Array.new(m +1){|k|n.times.map{|i|Hash[c[i].m ap{|j , |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>test page</title> | |
<style> | |
circle{ | |
transform: rotateX(0deg); | |
transform-origin: 50px 50px; | |
transition: transform 1s linear; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>test page</title> | |
<style> | |
*{ | |
font-family: "M+ 2p"; | |
} | |
</style> |
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
# encoding utf-8 | |
require 'fileutils' | |
i = 0 | |
dir = ARGV[0] || ?. | |
moved = [] | |
FileUtils.mkdir(dir + '/.dup') |
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
# encoding utf-8 | |
# example: | |
# ruby ぴょんぴょん.rb -e png -e jpg -e gif -t シャロ -t チノ | |
# : .png or .jpg or .gif, シャロ or チノ | |
# ruby ぴょんぴょん.rb -o リゼシャロ --tag シャロ リゼ -千夜 | |
# : シャロ and リゼ but 千夜, ./リゼシャロ/ will contain symlinks | |
require 'fileutils' |
OlderNewer