Skip to content

Instantly share code, notes, and snippets.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; basic emacs configuration to be used in conjunction with prelude ;;
;; pragmaticemacs.com/installing-and-setting-up-emacs/ ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Add MELPA repository for packages
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives
'("melpa-stable" . "http://stable.melpa.org/packages/") t)
#!/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)
import sys
import codecs
import time
from microsofttranslator import Translator
sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
translator = Translator('XXXXXXXXXXXXXXXXXXXXX')
package backup;
use File::Copy;
use strict;
#backupを保存するフォルダ
my $backup_dir = "db/backup";
#backup::filecopy($file);#$file : コピーするファイル名
;; % emacs --script indent.el sample.py
(find-file (nth 0 command-line-args-left))
(indent-region (point-min) (point-max))
(princ (buffer-string))
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'
# -*- 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
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)
@echo off
set PATH=%PATH%;%~dp0
cd /d "%~dp0"
cmd.exe
@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