Skip to content

Instantly share code, notes, and snippets.

View sanemat's full-sized avatar
🍢

Matt Murahashi Kenichi sanemat

🍢
View GitHub Profile
@sanemat
sanemat / gist:1010496
Created June 6, 2011 15:46
heroku git tag deployment
$ git push -f heroku release-20110606^{}:master
# I don't know [tag]^{}
ruby5書き起こし
# 418
bundle 1.5.0
parallel bundle install, update
[hone.heroku.com | Goodbye Bundler 1.4, Hello Bundler 1.5](http://hone.herokuapp.com/bundler/2013/11/12/goodbye-bundler-14-hello-bundler-15.html)
[Bundler: The best way to manage a Ruby application's gems](http://bundler.io/v1.5/whats_new.html#version15)
[bundle outdated --strict by davidblondeau · Pull Request #2685 · bundler/bundler](https://github.com/bundler/bundler/pull/2685)
@sanemat
sanemat / gist:5573989
Created May 14, 2013 05:54
haml syntax check
# http://stackoverflow.com/questions/4673391/why-doesnt-haml-check-find-this-glaring-syntax-error
haml -c newsletter.html.haml
haml --debug newsletter.html.haml 2> /dev/null | sed '$d' | ruby -c
@sanemat
sanemat / date_select_ja.haml
Created November 3, 2012 08:41
date_select 年月日 rails
ホントかよーと思いながら、本質じゃないし唸ってても仕方ないなーと思ってとりあえずよけて進んでるけどどう考えてもツライ
- = f.date_select :birthday, start_year: 1920, end_year: Time.now.year, class: 'required'
+ = raw sprintf(f.date_select(:birthday, start_year: 1920, end_year: Time.now.year, class: 'required', :use_month_numbers => true, :date_separator => '%s'),'年','月')
+ 日
@sanemat
sanemat / gist:3a0db217a6baa741ca3c050449a0dadd
Created February 28, 2021 09:50
Replace accented characters to regular characters
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"(",""),")",""),"á","a"),"é","e"),"í","i"),"ó","o"),"ú","u"),"ã","a"),"ê","e"),"â","a"),"é","e"),"è","e"),"î","i"),"ï","i"),"ç","c"),"ä","a"),"ö","o"),"ü","u"),"ß","ss"),"ş","s"),"ı","i"),"ğ","g"),"ę","e"),"ł","l"),"ń","n"),"ś","s"),"ż","z"),"ã","a"),"ầ","a"),"à","a"),"ậ","a"),"đ","d"),"ế","e"),"ì","i"),"í","i"),"ổ","o"),"ô"
@sanemat
sanemat / gist:944064
Created April 27, 2011 11:04
Configure file of git ignore on system wide
echo ".DS_Store" >> ~/.gitignore-system
git config --global core.excludesfile ~/.gitignore-system
@import url(s6/projection.css); /* required to make the slide show run at all */
body { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; }
a:link, a:visited { color: black; }
.slide h1 { font-size: 30pt; }
.slide h1 { text-align: center; }
Compiling test_case v0.1.0 (/home/matt/go/src/github.com/cloudflare/lol-html/
fuzz/test_case)
error: failed to run custom build command for `test_case v0.1.0 (/home/matt/go/s
rc/github.com/cloudflare/lol-html/fuzz/test_case)`
Caused by:
process didn't exit successfully: `/home/matt/go/src/github.com/cloudflare/lol
-html/fuzz/test_case/target/debug/build/test_case-dfa0f655fce76d0e/build-script-
build` (exit code: 101)
--- stdout
(null)-WARNING **: Failed to load shared library 'libatk-1.0.0.dylib' referenced by the typelib: dlopen(libatk-1.0.0.dylib, 9): image not found
@sanemat
sanemat / a.txt
Last active October 24, 2019 07:31
Payment Method to Matt
a