Skip to content

Instantly share code, notes, and snippets.

View futoase's full-sized avatar
🐱
Focusing

Keiji Matsuzaki futoase

🐱
Focusing
  • Japan
View GitHub Profile

Untitled Slide

Welcome to Glide.

Glide is the easiest way to create useful slide for all of your Gists.

  • input key <- to go backward.
  • input key -> to go forward.

Publishing

@futoase
futoase / gist:7317074
Created November 5, 2013 10:37
code snippet of DBIx::Sunny
use DBIx::Sunny;
use Data::Dumper;
my $dbh = DBIx::Sunny->connect(
'dbi:mysql:test;hostname=127.0.0.1',
'user',
'password');
my $rows = $dbh->select_all('SELECT * FROM users');
my $num = @rows;
/*GR-SAKURA Sketch Template Version: V1.08*/
#include <rxduino.h>
/*
Melody
Plays a melody
circuit:
* 8-ohm speaker on digital pin 8
#define SENSORPIN (0)
#define THRESHOLD (80)
void setup()
{
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
}
#include <LiquidCrystal.h>
LiquidCrystal g_lcd( 12, 11, 5, 4, 3, 2 ); // rs, enable, d4, d5, d6, d7
int g_iCounter = 0; // カウンター
void setup()
{
g_lcd.begin( 16, 2 ); // 16文字×2行
g_lcd.clear(); // LCD画面消去
#include <LiquidCrystal.h>
LiquidCrystal g_lcd( 12, 11, 5, 4, 3, 2 ); // rs, enable, d4, d5, d6, d7
void setup()
{
pinMode(9, INPUT);
pinMode(8, INPUT);
pinMode(7, OUTPUT);
g_lcd.begin( 16, 2 );
class Hoge
attr_accessor :hoge
def initialize; end
end
> h = Hoge.new
> h.hoge = 3
> h.hoge
> 3
@futoase
futoase / gist:8005906
Created December 17, 2013 14:41
知らせて.jp 秋葉原マップ

プロジェクト名

秋葉原マップ

プロジェクトの説明

あなたが気に入っている・気になっている秋葉原のお店・ランドマークを撮影しよう!

秋葉原は店の入れ替わりが激しい街です。

@futoase
futoase / gist:8450403
Created January 16, 2014 05:49
cocos2d-x 3.0.0.beta での Xcode プロジェクト作成コマンド。 pythonスクリプトを利用する。
./tools/project-creator/create_project.py \
-p MyGame \
-k com.MyGame.TestGame \
-l cpp \
-n MyGameProject
@futoase
futoase / gist:8641747
Last active January 4, 2016 15:38
デーモン感謝祭

デーモン感謝祭

エイチデーモンさんおめでとう!と言いながら楽しく肉を食べよう!という祭りです。

開催場所・日時

以下の内容で決定しました!!!

日時