Skip to content

Instantly share code, notes, and snippets.

View hashrock's full-sized avatar
🍋
Need a lemon?

hashrock hashrock

🍋
Need a lemon?
View GitHub Profile
* For Loopがぶっ壊れてる
* Serialiseがダメ
* haxenパッケージ実装する気あるの?
* enumのpublicいらん
* enumの要素末尾に;が抜けててエラーになる
* caseのbreakいらん
# Make sure using latest Homebrew
brew update
# Update already-installed formula (takes too much time, I will do it manually later)
# upgrade
# Add Repository
brew tap homebrew/versions || erue
brew tap caskroom/cask
brew tap homebrew/binary || true
@hashrock
hashrock / vimrc_setup.sh
Created June 24, 2014 06:22
VimSetting
git clone git://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
echo ":set encoding=utf-8" >> ~/.vimrc
echo ":set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8" >> ~/.vimrc
echo ":set fileformats=unix,dos,mac" >> ~/.vimrc
@hashrock
hashrock / .gitignore
Created August 8, 2014 02:36
gitignore for webstorm
## Directory-based project format
.idea/workspace.xml
.idea/tasks.xml
# and these sensitive or high-churn files:
.idea/dataSources.ids
.idea/dataSources.xml
.idea/sqlDataSources.xml
.idea/dynamic.xml
## File-based project format
//Original : https://gist.github.com/daichan4649/8877801#file-convertsheet2jsontext-gs
//2015/01/28 add SetUp method
function doGet(e) {
var book = SpreadsheetApp.openById(PropertiesService.getScriptProperties().getProperty('active'));
var sheet = book.getSheets[0];
var json = convertSheet2JsonText(sheet);
return ContentService.createTextOutput(JSON.stringify(json)).setMimeType(ContentService.MimeType.JSON);
}
@hashrock
hashrock / config-partial.xml
Last active August 29, 2015 14:19
Road to cordova
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="target-device" value="tablet" />
<preference name="webviewbounce" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<gap:plugin name="org.apache.cordova.device" />
http://meteortips.com/tutorial/twitter-login-provider/
@hashrock
hashrock / pattern.js
Created May 11, 2015 04:14
JS study : pattern
// https://blog.svpino.com/2015/05/08/solution-to-problem-5-and-some-other-thoughts-about-this-type-of-questions
function generatePattern(result, nowList, chars, n){
if(n > 0){
chars.forEach(function(item){
generatePattern(result, nowList.concat(item), chars, n-1)
})
}else{
result.push(nowList);
}
@hashrock
hashrock / permutation.js
Created May 11, 2015 04:17
permutation
// pure js version of http://qiita.com/higuma/items/5af4e62bdf4df42ce673
function perm(result, l, r, n){
if(n > 0){
r.forEach(function(item, i){
var rest = r.slice(0);
var e = rest.splice(i, 1);
perm(result, l.concat(e), rest, n - 1);
})
}else{
@hashrock
hashrock / gist:c35b5849c60e3bc8e22d
Created May 13, 2015 06:19
GitBucket CSS改善案
//リストは全体がclickableであるべき
ul.sidemenu li a {
display: block;
}
//ロゴずれてる
.navbar .brand {
padding-top: 9px;
padding-bottom: 6px;