Skip to content

Instantly share code, notes, and snippets.

🤖
He is not a human

hashrock hashrock

🤖
He is not a human
Block or report user

Report or block hashrock

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View haxenのバグ.txt
* For Loopがぶっ壊れてる
* Serialiseがダメ
* haxenパッケージ実装する気あるの?
* enumのpublicいらん
* enumの要素末尾に;が抜けててエラーになる
* caseのbreakいらん
View Brewfile.sh
# 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
View vimrc_setup.sh
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 Aug 8, 2014
gitignore for webstorm
View .gitignore
## 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
View convertSheet2JsonText.gs
//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);
}
View config-partial.xml
<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" />
View gist:96c85b6ec5ca4329bd05
http://meteortips.com/tutorial/twitter-login-provider/
View permutation.js
// 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 / pattern.js
Created May 11, 2015
JS study : pattern
View pattern.js
// 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);
}
View gist:c35b5849c60e3bc8e22d
//リストは全体がclickableであるべき
ul.sidemenu li a {
display: block;
}
//ロゴずれてる
.navbar .brand {
padding-top: 9px;
padding-bottom: 6px;
You can’t perform that action at this time.