Skip to content

Instantly share code, notes, and snippets.

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
@ishideo
ishideo / .spacemacs.el
Last active June 19, 2019 00:40
~/.spacemacs
;; -*- 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
@echo off
set PATH=%PATH%;%~dp0
cd /d "%~dp0"
cmd.exe
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)
# -*- 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
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'
;; % emacs --script indent.el sample.py
(find-file (nth 0 command-line-args-left))
(indent-region (point-min) (point-max))
(princ (buffer-string))
package backup;
use File::Copy;
use strict;
#backupを保存するフォルダ
my $backup_dir = "db/backup";
#backup::filecopy($file);#$file : コピーするファイル名
import sys
import codecs
import time
from microsofttranslator import Translator
sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
translator = Translator('XXXXXXXXXXXXXXXXXXXXX')
#!/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)