ポート番号 12345 にて、UDPで待ち受けています。
- 毎秒
speed度で回転し続けます。
- 毎秒
speed度でdiff度回転します。 - ステッピングモーターの性質を使っているため精度が高いです。
- 注:
diffの値は0.0140625度刻みになるため注意してください。
| #!/bin/sh | |
| ### Desktop & Screen Saver | |
| # Desktopを黒に | |
| echo "Change Desctop Pictures" | |
| osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Gray Pro Ultra Dark.png"' | |
| # ScreenSaver Kill | |
| echo "Disable screensaver" |
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'
| var botkit = require('botkit') | |
| var hello = require('./hello') // 同じディレクトリにあるスクリプト | |
| // scripts以下に入れて,こうでもいい | |
| // var hello = require('./scripts/hello') | |
| if (!process.env.SLACKBOT2_TOKEN) { | |
| console.log('Error: Specify token in environment') | |
| process.exit(1) | |
| } |
| // 共有したいアドレスを持ったカレンダーの管理ページで実行する | |
| var mail = Array.prototype.map.call(document.querySelectorAll('.al-ctx-lbl'), e => e.innerHTML) |
| diff --git a/script.original b/script | |
| index e46e48f..2d76e3a 100644 | |
| --- a/script.original | |
| +++ b/script | |
| @@ -4,6 +4,13 @@ | |
| require 'net/http' | |
| require 'net/https' # for ruby 1.8.x | |
| +def save_img(imgdata, filename=nil) | |
| + filename ||= "#{ENV['HOME']}/Desktop/Gyazo failed to upload at #{Time.now.to_s}.png" |
| xcode-select --install | |
| brew install asciidoc | |
| brew install libxml2 --with-python # is it required? | |
| pyenv virtualenv `pyenv versions | grep '\d\.' | tail -n1` nikola | |
| pyenv local nikola | |
| pip install nikola | |
| pip install --upgrade "nikola[Extras]" | |
| pip install --upgrade python-Levenshtein |
| voices = ["Agnes", "Kathy", "Princess", "Vicki", "Victoria", "Alex", "Bruce", "Fred", "Junior", "Ralph", "Albert", "Bad News", "Bahh", "Bells", "Boing", "Bubbles", "Cellos", "Deranged", "Good News", "Hysterical", "Pipe Organ", "Trinoids", "Whisper", "Zarvox"] | |
| voices.each do |voice| | |
| puts voice | |
| system "say -v #{voice} -o #{voice} #{ARGV[0]}" | |
| end |
| // | |
| // Config.xcconfig | |
| // ARTest | |
| // | |
| // Created by Kenta Hara on 2015/12/09. | |
| // Copyright © 2015年 Kenta Hara. MIT License | |
| // | |
| #include "Homebrew.xcconfig" |
| diff --git a/lib/SRC/AR/arLabeling.c b/lib/SRC/AR/arLabeling.c | |
| index e7c050a..f815ff0 100755 | |
| --- a/lib/SRC/AR/arLabeling.c | |
| +++ b/lib/SRC/AR/arLabeling.c | |
| @@ -35,8 +35,8 @@ static ARInt16 l_imageL[640*500]; | |
| static ARInt16 l_imageR[640*500]; | |
| */ | |
| -#define HARDCODED_BUFFER_WIDTH 1024 | |
| -#define HARDCODED_BUFFER_HEIGHT 1024 |