This file contains 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 <DHT.h> | |
int pin = 9; | |
DHT dht(pin, DHT11); | |
void setup() | |
{ | |
Serial.begin(9600); | |
dht.begin(); | |
} |
This file contains 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 led = 9; | |
int brightness = 0; | |
int fadeAmount = 2; | |
void setup() | |
{ | |
pinMode(led, OUTPUT); |
This file contains 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 gulp = require('gulp'); | |
const sass = require('gulp-sass'); | |
gulp.task('exportcss', function () { | |
return gulp.src('./src/*.scss') | |
.pipe(sass({ | |
outputStyle: 'expanded' | |
})) | |
.pipe(gulp.dest('./dest/')); | |
}); |
This file contains 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
/** | |
* DCモーターを3秒ごとに再生と停止を繰り返すサンプル | |
*/ | |
void setup() | |
{ | |
pinMode(11, OUTPUT); | |
} | |
void loop() | |
{ |
This file contains 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 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 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 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 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 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" |