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
{ | |
"bridge": { | |
"name": "HomeBridge", | |
"username": "CC:22:3D:E3:CE:30", | |
"pin": "031-45-154" | |
}, | |
"platforms": [{ | |
"platform": "PhilipsHue", | |
"name": "Philips Hue", | |
"username": "", |
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
require 'dnssd' | |
require 'pp' | |
DNSSD.browse '_irkit._tcp' do |reply| | |
pp reply | |
end | |
10.times{sleep 1} |
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
require 'active_record' | |
ActiveRecord::Base.configurations = YAML.load_file('./database.yml') | |
ActiveRecord::Base.establish_connection(:development) | |
class User << ActiveRecord::Base | |
end |
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 <MsTimer2.h> | |
int led_a = 13; | |
int led_b = 12; | |
int led_c = 11; | |
int led_d = 10; | |
int led_e = 9; | |
int led_f = 8; | |
int led_g = 7; | |
int led_dp = 6; |
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 <vector> | |
#include <iostream> | |
#include <algorithm> | |
class Blocksort | |
{ | |
public: | |
static std::string encode(const std::string &input,int &top); | |
static std::string decode(const std::string &input,int top); | |
}; |
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
require 'name_dot_com_api' | |
require 'pp' | |
api_token = "honoka" | |
api_token_ = "umi" | |
username = "umichankawaii-ote" | |
username_ = "umichankawaii" | |
record_id = "" | |
# | |
# Get global ip address | |
# |