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 | |
| update_status() { | |
| curl -sS -w '\n' -X POST 'https://slack.com/api/users.profile.set' -d "token=$1&profile=%7B%22status_emoji%22%3A%22%3A$2%3A%22%7D" | |
| } | |
| for emoji in $@ | |
| do | |
| update_status $TOKEN $emoji | |
| sleep 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
| module.exports = (robot) -> | |
| robot.respond /(tabi|たび)/i, (msg) -> | |
| robot.http("https://api.vineapp.com/timelines/users/1038468495395958784") # ざわちゃんのuserid | |
| .get() (err, res, body) -> | |
| records = JSON.parse(body)['data']['records'] | |
| tabis = [] | |
| for record in records | |
| # ざわちゃんは複数タグつけないと思うので配列0ハードで | |
| if record.entities[0]?.id == 1138830969860853760 # tag"#たび"のid | |
| tabis.push(record.shareUrl) |
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
| /* | |
| * http://hackersbar.net/recruit.html | |
| */ | |
| // これ美しくないんだが文字からキーコード変換ってできないの | |
| // 自分でキーコード表の連想配列作るしか無いか? | |
| var type = [{'shiftKey':true,'keyCode':72}, | |
| {'shiftKey':false,'keyCode':65}, | |
| {'shiftKey':false,'keyCode':67}, | |
| {'shiftKey':false,'keyCode':75}, |
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
| .main_nav { | |
| position: absolute; | |
| z-index: 10000; | |
| top: 30px; | |
| right: 30px; | |
| width: 140px; | |
| height: 140px; | |
| } | |
| .main_nav_list { | |
| background: url(../img/bg.svg) center no-repeat; |
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
| <!doctype html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| <link rel="stylesheet" href="css/normalize.css"> | |
| <link rel="stylesheet" href="css/main.css"> | |
| </head> | |
| <body> |
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
| function getDirection(dx, dy) { | |
| if (dx == 0) { | |
| return dy + 1; | |
| } else { | |
| return Math.abs(dx - 2) + dy * .5 * dx; | |
| } | |
| } |
NewerOlder