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
,, _ | |
/ ` 、 | |
/ (_ノL_) ヽ | |
/ ´՞ ՞` l | |
(l し l) | |
. l ਊ l | |
> 、 _ ィ | |
/  ̄ ヽ | |
/ | iヽ | |
>>>>ここまでがTwitter的にちょうどいい<<< |
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
#!/bin/bash | |
# 事前準備: | |
# RaspbianのNOOBSイメージのroot.tar.xzを展開して、以下のファイルをresourcesディレクトリをつめておく | |
# ・etc/inittab | |
# ・etc/profile.d/raspi-config.sh | |
# ・etc/init.d/apply_noobs_os_config | |
# ・etc/init.d/regenerate_ssh_host_keys | |
echo "---------------" |
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
# -*- coding:utf-8 -*- | |
Plugin.create :mikutter_yometest do | |
tab(:mikutter_yometest, "テストタブ") do | |
expand | |
Thread.fork { | |
loop { | |
icon = File.expand_path(File.join(File.dirname(__FILE__), "yome.png")) | |
set_icon icon | |
sleep(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
<?php | |
$file = $argv[1]; | |
$xml = simplexml_load_file($file); | |
# uniqidはそれほどいい感じでないので、いい感じのコマンドを活用する | |
$uuid = exec("uuidgen"); | |
$xml->uuid = $uuid; | |
foreach($xml->devices->interface as $interface) { | |
# uniqidはそれほどいい感じでないので、ハッシュにしていい感じにする |
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
#!/bin/bash | |
# How to get the Bluetooth device address: hcitool scan | |
BTKEYBOARD= | |
if $1 = pairing ; then | |
echo "1. Input PIN code at computer" | |
echo "2. Input PIN code at BT Keyboard" | |
echo "3. Done ;-)" | |
sudo bluez-simple-agent hci0 ${BTKEYBOARD} |
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
# coding: utf-8 | |
require "pasori" | |
pasori = Pasori.open | |
felica = pasori.felica_polling | |
pasori.felica_polling(Felica::POLLING_EDY) {|felica2| | |
# waon | |
get = 0 |
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
Plugin.create(:mikutter_profile_media) do | |
profiletab :usermediatimeline, _("最近の画像つきツイート") do | |
set_icon Skin.get("aclog.png") | |
uid = user.id | |
i_timeline = timeline nil do | |
order do |message| | |
retweet = message.retweeted_statuses.find{ |r| uid == r.user.id } | |
(retweet || message)[:created].to_i end end | |
Service.primary.user_timeline(user_id: user[:id], include_rts: 1, count: [UserConfig[:profile_show_tweet_once], 200].min).next{ |tl| |
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
# -*- coding: utf-8 -*- | |
require "open-uri" | |
require "FileUtils" | |
# From http://d.hatena.ne.jp/gan2/20080531/1212227507 | |
def save_file(url, filename) | |
# これより、ファイルを開きます | |
open(filename, 'wb') do |file| | |
open(url) do |data| | |
file.write(data.read) |
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
// ==UserScript== | |
// @name Expand picture size in Haiku timeline | |
// @description ハイクのTLの画像サイズをでかくする | |
// @license MIT License; http://sourceforge.jp/projects/opensource/wiki/licenses%2FMIT_license | |
// @include http://h.hatena.ne.jp/ | |
// @include http://h.hatena.ne.jp/following | |
// @include http://h.hatena.ne.jp/?mode=entries | |
// @include http://h.hatena.ne.jp/*/ | |
// @include http://h.hatena.ne.jp/*/* | |
// @include http://h.hatena.ne.jp/target* |
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 python | |
import unicornhat as UH | |
import time | |
data = [ | |
'01000010', | |
'81888818', | |
'87887888', | |
'87787788', | |
'87778778', |