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
| //------------------------------------------------------------------------------ | |
| // Include the IRremote library header | |
| // | |
| #include <IRremote.h> | |
| //------------------------------------------------------------------------------ | |
| // Tell IRremote which Arduino pin is connected to the IR Receiver (TSOP4838) | |
| // | |
| int recvPin = 11; | |
| IRrecv irrecv(recvPin); |
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
| #define LED_OUTPUT 7 | |
| #define PIR_IN 2 | |
| void setup() | |
| { | |
| Serial.begin(9600); | |
| pinMode(PIR_IN, INPUT); | |
| pinMode(LED_OUTPUT, 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
| // デジタル7番ピン | |
| int sensorPin = 7; | |
| void setup() | |
| { | |
| Serial.begin(9600); | |
| } | |
| void loop() | |
| { |
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
| using System.IO; | |
| using System.Linq; | |
| using UnityEngine; | |
| using UnityEditor; | |
| /// <summary> | |
| /// SpriteRendererのSpriteがnullだったら背景を赤くするEditor拡張 | |
| /// </summary> | |
| public class SpriteMissingChecker | |
| { |
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
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.UIElements; | |
| using UnityEditor.UIElements; | |
| public class Helloworld : EditorWindow | |
| { | |
| [MenuItem("Window/UIElements/Helloworld")] | |
| public static void ShowExample() |
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
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "homebrew/cask-versions" | |
| tap "homebrew/core" | |
| tap "homebrew/dupes" | |
| tap "homebrew/php" | |
| tap "homebrew/versions" | |
| brew "ansible" | |
| brew "apr" |
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
| # HomeBrew install | |
| echo "brew install" | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| echo "Setup MacScreenshot" | |
| # ドロップシャドウ削除 | |
| defaults write com.apple.screencapture disable-shadow -boolean true | |
| # 保存先変更 | |
| defaults write com.apple.screencapture location ~/Desktop/ScreenCaptures/; | |
| killall SystemUIServer |
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
| using System; | |
| using Unity.Entities; | |
| [Serializable] | |
| public struct MyData : IComponentData | |
| { | |
| public float hoge; | |
| } |
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
| #include <Adafruit_NeoPixel.h> | |
| #define PIN 6 | |
| #define LED_NUM 50 //LEDの数 | |
| Adafruit_NeoPixel ledtape = Adafruit_NeoPixel(LED_NUM, PIN, NEO_GRB + NEO_KHZ800); | |
| void setup() | |
| { | |
| ledtape.begin(); |
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
| #include <ESP8266WiFi.h> | |
| const char* ssid = ""; | |
| const char* password = ""; | |
| WiFiServer server(80); | |
| WiFiClient client; | |
| void setup() | |
| { |