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 <SevSeg.h> | |
#include <FlexiTimer2.h> | |
SevSeg sevseg; //Instantiate a seven segment object | |
void setup() { | |
byte numDigits = 4; | |
byte digitPins[] = {3, 2, 1, 0}; | |
byte segmentPins[] = {11, 10 ,9 ,8, 7, 6, 5, 4}; | |
//sevseg.begin(COMMON_CATHODE, numDigits, digitPins, segmentPins); |
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 "SevSeg.h" | |
SevSeg sevseg; //Instantiate a seven segment controller object | |
void setup() { | |
byte numDigits = 4; | |
byte digitPins[] = {3, 2, 1, 0}; | |
byte segmentPins[] = {11, 10 ,9 ,8, 7, 6, 5, 4}; | |
//sevseg.begin(COMMON_CATHODE, numDigits, digitPins, segmentPins); |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
def get_ip_address() | |
ip_url = 'http://checkip.dyndns.org/' | |
ip_addr = open(ip_url).read.scan(/\<body\>.*?:(.*?)\<\/body\>/)[0][0].strip | |
ip_addr | |
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
// 1.6.10 だと動かない.1.6.11でうごいた | |
#include <Mouse.h> | |
void setup() { | |
Mouse.begin(); | |
} | |
void loop() { | |
Mouse.move(2, 2); |
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
SHIFT_KEY = 23 | |
SHIFT_1 = 1 | |
SHIFT_2 = 2 | |
function OnEvent(event, arg, family) | |
if (event == "PROFILE_ACTIVATED") then | |
SetMKeyState(SHIFT_1, "lhc") | |
end | |
if (family == "lhc" and event == "G_PRESSED" and arg == SHIFT_KEY) then |
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
package main | |
import ( | |
php "./php" | |
"io" | |
"net/http" | |
"os" | |
"path/filepath" | |
"runtime" | |
"strings" |
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
/// <reference path="../chatwork.d.ts" /> | |
var __extends = this.__extends || function (d, b) { | |
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
function __() { this.constructor = d; } | |
__.prototype = b.prototype; | |
d.prototype = new __(); | |
}; | |
var ChatworkExtension; | |
(function (ChatworkExtension) { | |
// |
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
<?php | |
/** | |
* | |
* | |
*/ | |
$array = array('hoge', 'huga', 'moge'); | |
$result_1 = array(); | |
foreach ($array as $item) { | |
$result_1[] = $item . '_1'; |
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
<?php | |
/** | |
* 指定URLからfeedを探す | |
* | |
*/ | |
header('Content-Type: text/html; charset=UTF-8'); | |
function discover($url) | |
{ | |
$api_url = 'http://rpc.reader.livedoor.com/feed/discover?format=json'; |
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
## | |
# | |
# @url http://www.ruby-lang.org/ja/man/html/Win32API.html | |
# @url http://delfusa.main.jp/delfusafloor/archive/www.nifty.ne.jp_forum_fdelphi/faq/00028.htm | |
# | |
require 'Win32API' | |
class Win32API | |
# type flag |