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 / first-ubuntu.sh
Last active October 18, 2019 12:38
Provisioning
sudo apt update
sudo apt install build-essential
curl -kL git.io/nodebrew | perl - setup
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bash_profile
source ~/.bash_profile
nodebrew install-binary stable
nodebrew use stable
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get install yarn
@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 / vuejs.md
Last active October 5, 2023 23:42
Vue.js資料まとめ(古いので注意)

#まず見るべき

以下のURLは、常に更新されているコンテンツです。

@hashrock
hashrock / npm-scripts.md
Last active February 25, 2022 23:44
awesome-npm-scripts
{
    "build-js": "browserify browser/main.js | uglifyjs -mc > static/bundle.js",
    "build-css": "cat static/pages/*.css tabs/*/*.css",
    "build": "npm run build-js && npm run build-css",
    "watch-js": "watchify browser/main.js -o static/bundle.js -dv",
    "watch-css": "catw static/pages/*.css tabs/*/*.css -o static/bundle.css -v",
    "watch": "npm run watch-js & npm run watch-css",
@hashrock
hashrock / npmbenri.md
Last active August 20, 2023 05:54
npmで入る便利ツールまとめ

npm -gでインストールしたり、npm scripts内から使えそうなツールのまとめ

nodeプロセスマネージャ

開発時にリスタートしてくれる用途のものも含む

  • pm2
  • forever
  • node-dev
  • nodemon
@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" />