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
(require 'ert) | |
(require 'myfile) | |
(eval-when-compile | |
(require 'cl)) | |
(ert-deftest myfile:addition-test () | |
(should (= (myfile:addition 1 2) 3))) | |
(provide 'myfile-test) |
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 ?= emacs | |
CASK ?= cask | |
all: | |
${MAKE} clean | |
${MAKE} test | |
${MAKE} compile | |
${MAKE} test | |
${MAKE} clean |
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
cat in.txt | sed -e 's/'\''/\\\\047/g' > xargs -n4 -L1 sh -c 'echo $0,$1,$2,$3,$4' > out.txt |
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
find `perl -e 'print join(" ", @INC)'` -type f -name "*.pm" > modules.txt |
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
find ./csv -name "*.csv" -print | sed -e 's/\(.*\)\(log_\)\([0-9]\{8\}_\)\(.*\)$/"\1\2\3\4" "\1\2\4"/' | xargs -n 2 mv |
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
" 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') |
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
- hosts: localhost | |
connection: local | |
gather_facts: no | |
vars: | |
homebrew_taps: | |
- caskroom/cask | |
- caskroom/versions | |
- homebrew/dupes | |
- homebrew/versions |
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 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| |
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 python3 | |
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
import itertools | |
import pandas as pd | |
import pprint | |
import pytz | |
import unittest |
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
(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"] |