Skip to content

Instantly share code, notes, and snippets.

View miku_raspi.md

@miku_raspi

これ

自宅でつけっぱなしの Raspberry Pi で動く(予定の) 初音ミク Twitter bot (Ruby でうごいてる) Generate various infomation from Raspberry Pi, runnung in Ruby (Japanese only.)

author: @keisei_1092

できること

@keisei1092
keisei1092 / Hoge.java
Created Feb 2, 2015
はじめてのGist
View Hoge.java
class Hoge {
public static void main(String[] args) {
System.out.println("Hello, Gist!");
}
}
@keisei1092
keisei1092 / AppleScript
Created Feb 10, 2015
【AppleScript】最初からMacのフルスクリーンモードでアプリを起動する ref: http://qiita.com/keisei_1092/items/1ea39bbec13e0b459418
View AppleScript
tell application "Calendar"
activate
tell application "System Events"
tell process "Calendar"
click menu item "Enter Full Screen" of menu 1 of menu bar item "View" of menu bar 1
end tell
end tell
end tell
@keisei1092
keisei1092 / gist:eb20c132ef50c040ba70
Created May 25, 2015
how to post json to cps lab visitor derby
View gist:eb20c132ef50c040ba70
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d {"name":"ほげ"} http://cps.miraitoarumachi.com/people
@keisei1092
keisei1092 / playbook.yml
Last active Aug 29, 2015
Ansibleの(とりあえずCakePHPとMySQLのsecure_installation以外) https://gist.github.com/keisei1092/621f2b122eb957040b05 これも必要
View playbook.yml
# playbook.yml
---
- hosts: all
sudo: true
user: vagrant
tasks:
- name: Vimをインストールする
yum: name=vim state=present
- name: zshをインストールする
yum: name=zsh state=present
@keisei1092
keisei1092 / zshrc.in
Created Jul 18, 2015
playbook_beatcreation.yamlと同じディレクトリに置くやつ
View zshrc.in
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# For Solarized
export TERM="xterm-256color"
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
@keisei1092
keisei1092 / private.xml
Last active Sep 20, 2016
Karabiner private preference 20150806 - 20160921
View private.xml
<?xml version="1.0"?>
<root>
<item>
<name>Command+Ctrl+sで左のスクリーンへ移動</name>
<identifier>private.hogee1</identifier>
<autogen>
__KeyToKey__
KeyCode::S, ModifierFlag::COMMAND_R, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_LEFT, ModifierFlag::CONTROL_L
</autogen>
View .vimrc
set encoding=utf-8
set termencoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,iso-2022-jp,euc-jp,ucs21e,ucs-2
set noswapfile
set ruler
set laststatus=2
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
set title
set wildmenu
View .zshrc
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="wedisagree"
# Uncomment the following line to use case-sensitive completion.
@keisei1092
keisei1092 / oraora_xpath.md
Last active Dec 15, 2015
オラオラXPath (Java)
View oraora_xpath.md

オラオラXPath (Java)

インスタンスを宣言する

XPathFactory xpf = XPathFactory.newInstance();
XPath xp = xPathfactory.newXPath();

XPathでRSSの中にあるすべての title 要素を指定する