Skip to content

Instantly share code, notes, and snippets.

#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);
@ha1t
ha1t / sevseg_ex2.ino
Created August 29, 2015 03:43
SevSeg + FlexiTimer2
#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);
<?php
/*
* Copyright (c) 2012 Jeremy Perret
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished
@ha1t
ha1t / macro.md
Last active August 29, 2015 14:00
マクロ

極リヴァ用ST回復支援(STをフォーカスターゲットする)

/micon フィジク
/ac フィジク <t>
/pac 光の癒し <f>
/micon 鼓舞激励の策
@ha1t
ha1t / 仕様.md
Created June 14, 2014 10:57
Keyboard

基本

  • 11で「あ」が入力される。15で「お」が入力される。

実装しなければいけない機能

  • 1つ目のキーの状態を保持する機能
  • キーリピート
  • キーの同時押しが発生したら?
@ha1t
ha1t / add.js
Last active August 29, 2015 14:05
var sheet = JSON.parse(localStorage.getItem('CWStamp_idList'));
sheet.push(["17858189", "17858188", "17858187", "17858186", "17858185", "17858184", "17858183", "17858182", "17858181", "17858180", "17858179", "17858178", "17858177", "17858176", "17858175", "17858174", "17858173", "17858172", "17858171", "17858170", "17858169", "17858168", "17858167", "17858166", "17858165", "17858164", "17858163"]);
localStorage.setItem('CWStamp_idList', JSON.stringify(sheet));
##
#
# @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
@ha1t
ha1t / find_feed.php
Created September 2, 2014 07:58
指定URLからfeedを探す
<?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';
<?php
/**
*
*
*/
$array = array('hoge', 'huga', 'moge');
$result_1 = array();
foreach ($array as $item) {
$result_1[] = $item . '_1';
/// <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) {
//