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
# -*- coding:utf-8 -*- | |
import tweepy | |
from tweepy.error import TweepError | |
import pickle | |
import os | |
import os.path | |
def check(screen_name): | |
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) |
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 sys, time | |
import tweepy | |
from tweepy.streaming import StreamListener, Stream | |
import csv | |
import threading | |
import time | |
from datetime import datetime | |
from pprint import pprint | |
import keys |
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
local prefix = {"cmd", "ctrl"} | |
hs.hotkey.bind(prefix, "Up", function() | |
local win = hs.window.focusedWindow() | |
local f = win:frame() | |
local screen = win:screen() | |
local max = screen:frame() | |
f.x = max.x | |
f.y = max.y |
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
#cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, | |
.cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, | |
.cVim-completion-item .cVim-right { | |
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, Arial; | |
font-size: 10pt !important; | |
-webkit-font-smoothing: antialiased !important; | |
} | |
#cVim-command-bar { | |
position: fixed; |
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
set smoothscroll | |
set noautofocus | |
set defaultnewtabpage | |
let barposition = "bottom" | |
let blacklists = ["https://mail.google.com/*","https://tweetdeck.twitter.com/"] | |
let hintcharacters = "qwerasdfuopjkl" | |
" keymaps | |
unmapAll |
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 'Oga' | |
base_uri = "http://imas.gamedbs.jp" | |
def open_uri(uri) | |
html = open(uri) do |f| | |
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
#LIFEGAME | |
from random import * | |
from Tkinter import * | |
cell = 10 | |
height = 60 + 2 | |
width = 60 + 2 | |
frame = 5 | |
field = [] |
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
unmapAll | |
map j scrollDown | |
map k scrollUp | |
map h scrollLeft | |
map l scrollRight | |
map gg scrollToTop | |
map G scrollToBottom | |
map f scrollPageDown | |
map b scrollPageUp |
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/zsh | |
. "$DOTPATH"/.zsh/20_functions.zsh | |
if [ is_cygwin ]; then | |
network_info=(`netsh wlan show interfaces | sed -e 's/\s//g' | awk -F : '{print $2}'`) | |
state=${network_info[5]} | |
ssid=${network_info[6]} | |
signal=${network_info[15]} |
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 | |
colors=("[38;5;160m" "[38;5;208m" "[38;5;226m" "[38;5;046m" "[38;5;033m" "[38;5;129m") | |
color_end="[0m" | |
length=$((${#1} - 1)) | |
for i in `seq 0 1 $length` | |
do | |
index=$((i%6)) |
OlderNewer