This file contains 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 -xe | |
id=`xdotool getwindowfocus` | |
xdotool key --window $id Home > /dev/null 2>&1 |
This file contains 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
;================================================================ | |
;auto hot key script for windows | |
;mac風キーバインド | |
;================================================================ | |
#InstallKeybdHook | |
#UseHook | |
;================================================================ | |
;関数 |
This file contains 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 | |
# Delay before starting | |
DELAY=1 | |
# Beep to let one know when recording is about to start (and ends) | |
beep() { | |
echo -e "\007" > /dev/`who | awk '{print $2}'` & | |
} |
This file contains 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
WheelUp:: | |
Send {WheelDown} | |
Return | |
WheelDown:: | |
Send {WheelUp} | |
Return |
This file contains 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
require 'open-uri' | |
require 'nokogiri' | |
def get_content(url) | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset | |
f.read | |
end |
This file contains 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
require 'open-uri' | |
require 'nokogiri' | |
require 'json' | |
def get_content(url) | |
charset = nil | |
html = open(url) do |f| | |
charset = f.charset | |
f.read | |
end |
This file contains 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
require 'csv' | |
require 'uri' | |
require 'time' | |
require 'natto' | |
require 'json' | |
nm = Natto::MeCab.new | |
wordHash = {} | |
charset = nm.dicts.first.charset |
This file contains 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
sudo apt-get install curl jq git tig openssl ca-certificates build-essential software-properties-common iproute2 | |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
curl -LO https://github.com/ogham/exa/releases/download/v0.8.0/exa-linux-x86_64-0.8.0.zip | |
unzip exa-linux-x86_64-0.8.0.zip | |
sudo chown root:root exa-linux-x86_64 && sudo mv exa-linux-x86_64 /usr/bin/exa | |
curl -LO https://github.com/sharkdp/bat/releases/download/v0.4.1/bat_0.4.1_amd64.deb | |
sudo dpkg -i bat_0.4.1_amd64.deb && rm bat_0.4.1_amd64.deb |
This file contains 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
import java.util.ArrayList; | |
import java.util.List; | |
class Game { | |
private List<Frame> frames; | |
public Game() { | |
frames = new ArrayList<>(); | |
} |
This file contains 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
// Game.java- | |
public class Game | |
{ | |
public int score() | |
return scoreForFrame (its Current Frame); | |
${ | |
} | |
public void add (int pins) | |
{ | |
} |