This file contains hidden or 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
setopt hist_ignore_all_dups | |
setopt EXTENDED_HISTORY | |
function peco_select_history() { | |
local tac | |
if which tac > /dev/null; then | |
tac="tac" | |
else | |
tac="tail -r" | |
fi |
This file contains hidden or 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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
This file contains hidden or 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
@echo off | |
set PATH=%PATH%;%~dp0 | |
cd /d "%~dp0" | |
cmd.exe |
This file contains hidden or 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 os | |
from selenium import webdriver | |
URL = "https://www.google.com" | |
FILENAME = os.path.join(os.path.dirname(os.path.abspath(__file__)), "screen.png") | |
browser = webdriver.PhantomJS() | |
driver = webdriver.PhantomJS() | |
driver.set_window_size(1280, 720) | |
driver.get(URL) |
This file contains hidden or 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 -*- | |
from __future__ import unicode_literals | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support.ui import Select | |
from selenium.common.exceptions import NoSuchElementException | |
from selenium.common.exceptions import NoAlertPresentException | |
import unittest, time, re, os, sys, codecs, util |
This file contains hidden or 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
Bundle 'Shougo/neomru.vim' | |
Bundle 'Shougo/neoyank.vim' | |
Bundle 'Shougo/echodoc.vim' | |
Bundle 'Shougo/unite.vim' | |
Bundle 'Shougo/denite.nvim' | |
Bundle 'Shougo/vimfiler.vim' | |
Bundle 'Shougo/vimshell.vim' | |
Bundle 'thinca/vim-quickrun' | |
Bundle 'ilambdalisue/vim-gita' | |
Bundle 'davidhalter/jedi-vim' |
This file contains hidden or 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
;; % emacs --script indent.el sample.py | |
(find-file (nth 0 command-line-args-left)) | |
(indent-region (point-min) (point-max)) | |
(princ (buffer-string)) |
This file contains hidden or 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
package backup; | |
use File::Copy; | |
use strict; | |
#backupを保存するフォルダ | |
my $backup_dir = "db/backup"; | |
#backup::filecopy($file);#$file : コピーするファイル名 |
This file contains hidden or 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 | |
import codecs | |
import time | |
from microsofttranslator import Translator | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) | |
translator = Translator('XXXXXXXXXXXXXXXXXXXXX') |
This file contains hidden or 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 python | |
from BeautifulSoup import BeautifulStoneSoup | |
import sys, urllib2, re, pprint, codecs | |
import inspect, doctest | |
from pprint import pprint | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) |