Skip to content

Instantly share code, notes, and snippets.

@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 February 2, 2015 09:25
はじめてのGist
class Hoge {
public static void main(String[] args) {
System.out.println("Hello, Gist!");
}
}
@keisei1092
keisei1092 / AppleScript
Created February 10, 2015 11:19
【AppleScript】最初からMacのフルスクリーンモードでアプリを起動する ref: http://qiita.com/keisei_1092/items/1ea39bbec13e0b459418
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 08:38
how to post json to cps lab visitor derby
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 November 20, 2022 11:39
Ansibleの(とりあえずCakePHPとMySQLのsecure_installation以外) https://gist.github.com/keisei1092/621f2b122eb957040b05 これも必要
# 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 July 18, 2015 14:39
playbook_beatcreation.yamlと同じディレクトリに置くやつ
# 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 September 20, 2016 23:25
Karabiner private preference 20150806 - 20160921
<?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>
@keisei1092
keisei1092 / .vimrc
Created August 7, 2015 01:44
.vimrc 150807
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
@keisei1092
keisei1092 / .zshrc
Created August 7, 2015 01:47
.zshrc 150807
# 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 December 15, 2015 06:18
オラオラXPath (Java)

オラオラXPath (Java)

インスタンスを宣言する

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

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