Skip to content

Instantly share code, notes, and snippets.

@vividtone
vividtone / get_redmine_user_list.rb
Last active March 8, 2018 06:02
RedmineからREST APIを使ってユーザーの一覧を取得しCSV形式で出力する
#!/usr/bin/env ruby
# encoding: utf-8
#
# RedmineからREST APIを使ってユーザーの一覧を取得しCSV形式で出力する
#
require 'open-uri'
require 'json'
require 'csv'
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);
var AnimationTimer = {};
var _timerId = 0;
var _timerIds = {};
AnimationTimer.setInterval = function(callback, delay) {
var timerId = ++_timerId;
_timerIds[timerId] = setTimeout(function interval() {
requestAnimationFrame(function() {
// 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; };
@stuart-warren
stuart-warren / hubot-wizard.coffee
Created June 10, 2015 19:39
Hubot Conversation
#
# Description:
# Have a multi-step conversation with hubot
#
# Commands:
# hubot start wizard - Allow hubot to ask you some questions
#
module.exports = (robot) ->