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
#!/bin/bash | |
IFS=$'\n' | |
files=$(find . -type f -name "*.mp3") | |
trim=2 | |
for file in $files | |
do | |
file_without_extension=${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
#!/bin/bash | |
IFS=$'\n' | |
files=$(find . -type f -name "*.mp4") | |
for file in $files | |
do | |
file_without_extension=${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
brew install lame | |
brew install sox |
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
[localhost] | |
127.0.0.1 |
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
- name: Get latest peco version | |
shell: > | |
curl -sI https://github.com/peco/peco/releases/latest | awk -F'/' '/^Location:/{print $NF}' | |
register: peco_latest_version |
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: vm | |
sudo: yes | |
tasks: | |
- apt: update_cache=yes | |
- apt: name=zsh state=present | |
- apt: name=git state=present | |
- apt: name=emacs state=present | |
- apt: name=vim state=present | |
- apt: name=golang state=present | |
- apt: name=gist state=present |
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
/* <system section="theme" selected="11696248318757940905"> */ | |
@import url("http://hatenablog.com/theme/11696248318757940905.css"); | |
/* </system> */ | |
#blog-title { | |
border-top: none; | |
} | |
.entry { | |
border-bottom: none; | |
} |
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 main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
) | |
func main() { | |
file, err := ioutil.ReadFile("for.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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
z := 1.0 | |
for { |
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
Debugger entered--Lisp error: (wrong-type-argument stringp nil) | |
string-match(nil "/Users/yoshi/.emacs.d/elpa/helm-20140119.59/helm-autoloads.el") | |
auto-async-byte-compile() | |
run-hooks(after-save-hook) | |
ad-Orig-basic-save-buffer() | |
basic-save-buffer() | |
save-buffer() | |
update-directory-autoloads("/Users/yoshi/.emacs.d/elpa/helm-20140119.59") | |
package-generate-autoloads("helm" "/Users/yoshi/.emacs.d/elpa/helm-20140119.59") | |
package--make-autoloads-and-compile("helm" "/Users/yoshi/.emacs.d/elpa/helm-20140119.59") |