Skip to content

Instantly share code, notes, and snippets.

(require 'ert)
(require 'myfile)
(eval-when-compile
(require 'cl))
(ert-deftest myfile:addition-test ()
(should (= (myfile:addition 1 2) 3)))
(provide 'myfile-test)
EMACS ?= emacs
CASK ?= cask
all:
${MAKE} clean
${MAKE} test
${MAKE} compile
${MAKE} test
${MAKE} clean
cat in.txt | sed -e 's/'\''/\\\\047/g' > xargs -n4 -L1 sh -c 'echo $0,$1,$2,$3,$4' > out.txt
find `perl -e 'print join(" ", @INC)'` -type f -name "*.pm" > modules.txt
find ./csv -name "*.csv" -print | sed -e 's/\(.*\)\(log_\)\([0-9]\{8\}_\)\(.*\)$/"\1\2\3\4" "\1\2\4"/' | xargs -n 2 mv
@ishideo
ishideo / init.vim
Last active August 28, 2019 08:44
~/SpaceVim.d/init.vim
" Dark powered mode of SpaceVim, generated by SpaceVim automatically.
let g:spacevim_enable_debug = 1
let g:spacevim_realtime_leader_guide = 1
let g:spacevim_realtime_leader_guide = 1
call SpaceVim#layers#load('lang#vim')
call SpaceVim#layers#load('lang#sh')
call SpaceVim#layers#load('incsearch')
call SpaceVim#layers#load('lang#c')
call SpaceVim#layers#load('lang#swig')
call SpaceVim#layers#load('lang#go')
- hosts: localhost
connection: local
gather_facts: no
vars:
homebrew_taps:
- caskroom/cask
- caskroom/versions
- homebrew/dupes
- homebrew/versions
@ishideo
ishideo / max_value_importer.rb
Last active December 11, 2017 06:18
max_value_importer.rb
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# ruby max_value_importer.rb --file "./xlsx/xxx.xlsx" --sheet "sheet1" --date_range "A2:A100" --value_range "B2:B100" --date_cell "E3" --value_cell "F2"
require 'csv'
require 'optparse'
require 'win32ole'
class WIN32OLE
def to_a
[].tap do |array|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from datetime import datetime
import itertools
import pandas as pd
import pprint
import pytz
import unittest
(ns report.header
(:require [clojure.java.io :as io]
[clojure.string :as str]
;[clojure.data.csv :as csv]
[clojure.tools.cli :refer [parse-opts]])
(:gen-class))
(def cli-options
[["-f" "--file FILE" "Input file path"
:default "input.txt"]