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
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| # | |
| # RedmineからREST APIを使ってユーザーの一覧を取得しCSV形式で出力する | |
| # | |
| require 'open-uri' | |
| require 'json' | |
| require 'csv' |
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
| const double THRESHOLD = 64.0; // +2 | |
| // http://makers-with-myson.blog.so-net.ne.jp/2014-04-05 | |
| unsigned int on[] = {2552,2680,824,860,820, 860,824,1892,852,1868,824,1896,824,1892,828, 856,828, 856,848,53728,2552,2672,828,860,824, 856,824,1896,852,1864,824,1896,824,1896,852, 828,828, 856,828,53840,2560,2672,828,856,848, 836,824,1892,824,1892,828,1892,852,1868,852, 832,848, 832,828}; | |
| unsigned int off[] = {2552,2676,852,832,824,1896,848, 832,828, 856,828,1892,824, 856,852,1868,824,1892,852,53944,2556,2676,824,860,820,1896,828, 856,828, 852,848,1872,824, 856,828,1896,824,1892,824,53844,2552,2676,852,832,824,1896,848, 836,824, 856,828,1892,824, 860,820,1896,828,1888,848}; | |
| void setup() { | |
| Serial.begin(115200); | |
| pinMode(12, OUTPUT); | |
| analogReference(INTERNAL); |
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
| var AnimationTimer = {}; | |
| var _timerId = 0; | |
| var _timerIds = {}; | |
| AnimationTimer.setInterval = function(callback, delay) { | |
| var timerId = ++_timerId; | |
| _timerIds[timerId] = setTimeout(function interval() { | |
| requestAnimationFrame(function() { |
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
| // run with `--harmony` | |
| var ucs2 = require('punycode').ucs2; | |
| function food(){ | |
| function *foodz(){ | |
| var s = 0x1F354, | |
| e = 0x1F37B, | |
| c = s; | |
| for(;;){ | |
| if(c>e){ c = s; }; |
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
| # | |
| # Description: | |
| # Have a multi-step conversation with hubot | |
| # | |
| # Commands: | |
| # hubot start wizard - Allow hubot to ask you some questions | |
| # | |
| module.exports = (robot) -> |
OlderNewer