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
| int rgbR = A0; | |
| int rgbG = A1; | |
| int rgbB = A2; | |
| int axisX = A3; | |
| int axisY = A4; | |
| int sType = A5; | |
| // for color | |
| int mapR=0; | |
| int mapG=0; |
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
| int loop_cnt =0; | |
| void setup() { | |
| // put your setup code here, to run once: | |
| pinMode(13, OUTPUT); | |
| pinMode(12, OUTPUT); | |
| pinMode(11, OUTPUT); | |
| pinMode(10, OUTPUT); | |
| } |
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
| import processing.serial.*; | |
| Serial myPort; | |
| String input; | |
| int r = 0; | |
| int g = 0; | |
| int b = 0; |
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
| int rgbR = A0; | |
| int rgbG = A1; | |
| int rgbB = A2; | |
| int mapR=0; | |
| int mapG=0; | |
| int mapB=0; | |
| int r=0; | |
| int g=0; | |
| int b=0; | |
| void setup() { |
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
| $ git init #Initialize git repo | |
| $ git add -A # Add everything | |
| $ git commit -m "comment" | |
| $ git commit # when hit this command, vi will be started to add comment to commit. Write something and save it. | |
| $ git show = git show HEAD |
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
| if defined?(PryByebug) | |
| Pry.commands.alias_command 'c', 'continue' | |
| Pry.commands.alias_command 's', 'step' | |
| Pry.commands.alias_command 'n', 'next' | |
| Pry.commands.alias_command 'f', 'finish' | |
| end |
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 sendQuickReplies(sender) { | |
| messageData = { | |
| "text": "Hey!!!:", | |
| "quick_replies": [ | |
| { | |
| "content_type": "text", | |
| "title": "yoyo", | |
| "payload": "yoyo" | |
| }, | |
| { |
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
| import UIKit | |
| import AVFoundation | |
| class ViewController: UIViewController { | |
| // Session | |
| var myFrontSession : AVCaptureSession! | |
| var myBackSession : AVCaptureSession! | |
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
| f = open('test.csv', 'ab') | |
| csvWriter = csv.writer(f) | |
| csvWriter.writerow(ramenInfo) | |
| f.close() |
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
| #nvm version v0.25.4 | |
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash | |
| #list node versions which can install | |
| nvm ls-remote | |
| #install node | |
| nvm install v0.12.0 | |
| #use node |