gitで幸せになりたい。
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
let locale = "jp" | |
let barposition = "bottom" | |
let hintcharacters = "asdfghjkl" | |
set noautofocus | |
set smoothscroll | |
unmap a,b,B,x | |
map b :buffer<Space> | |
map B :bookmarks<Space> | |
let qmark b = ["http://b.hatena.ne.jp"] | |
let qmark y = ["https://www.yahoo.co.jp/"] |
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 | |
curl -d 'signal=pon' 'localhost:4567' | |
sleep 3 | |
curl -d 'signal=8ch' 'localhost:4567' | |
sleep 1 | |
rand=`expr $RANDOM % 3` | |
if [ $rand -eq 0 ]; then |
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
paste <(tree --charset=C |rev |awk '{printf "%50s\n", $0}'|sort) <(tree --charset=C|rev|awk '{printf "%50s\n", $0}'|sort|rev)|sed "s/[[:alnum:]]/`echo -e '\e[1;32m&\e[0m'`/g" |sed "s/[\|\`\-]/`echo -e '\e[1;33m&\e[0m'`/g"|sed "s/[\.,\_]/`echo -e '\e[1;35m☆\e[0m'`/g" |
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
#include <Bounce.h> | |
int btPin = 8; | |
int ledPin = 13; | |
int pinState = LOW; | |
Bounce bn = Bounce(btPin, 20); | |
void setup(){ | |
pinMode(btPin, INPUT); |
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
#!/usr/bin/env ruby | |
# -*- encoding: utf-8 -*- | |
require 'user_stream' | |
require 'yaml' | |
require 'uri' | |
config_path = File.expand_path(File.dirname(__FILE__) + '/config.yml') | |
stream_config = YAML.load_file(config_path) |
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
aaa@@aa@aa | |
aaa@@a@@aa | |
aaa@@@aa@a | |
aaa@@a@@@@ | |
aaa@a@a@@@ | |
aaa@aaaaa | |
aaa@a@@aa | |
aaa@@a@@@@ | |
aaa@@a@@aa | |
aaa@@a@@aa |
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
#!/usr/bin/env/ruby | |
# encoding : utf-8 | |
require 'open-uri' | |
require 'json' | |
CACHE = "/tmp/weather.rb.cache" | |
if File.exist?(CACHE) && (Time.now - File::Stat.new(CACHE).mtime) <= 1800 | |
print File.read(CACHE) |
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
#!/usr/bin/env ruby | |
# encoding : utf-8 | |
require 'open-uri' | |
require 'rexml/document' | |
CACHE = "/tmp/ustatus.rb.cache" | |
if File.exist?(CACHE) && (Time.now - File::Stat.new(CACHE).mtime) <= 2000 | |
print File.read(CACHE) |
NewerOlder