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

全体

Let this long package float, 
Goto private class if short.
While protected with debugger case,  
Continue volatile interface.
Instanceof super synchronized throw, 
Extends final export throws.  
@volpe28v
volpe28v / auto_scp.sh
Created March 12, 2012 09:38
scpを自動化するスクリプト
#!/bin/bash
HOST=対象ホスト名(IPアドレス)
USER=ログインユーザ
PASS=パスワード
TARGET_DIR=バックアップディレクトリ(ファイル)
BACKUP_DIR=保存先ディレクトリ
expect -c "
set timeout -1
@hashrock
hashrock / StartMobile.html
Last active December 24, 2015 06:49
My template for iPad Web Application
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- for Mobile view -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<!-- iOS Application Setting -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
@edwardkenfox
edwardkenfox / _user_info.html.erb
Last active March 21, 2018 16:01
Vue on rails sample
<div id="user_info">
</div>
<script>
javascript_tag do
<<-JS
window.User = window.User || #{@json_from_controller_or_wherever.html_safe};
JS
end
</script>
<div id=root />
<script type=module>
import React from 'https://dev.jspm.io/react@16'
import ReactDOM from 'https://dev.jspm.io/react-dom@16'
ReactDOM.render(
React.createElement('h1', null, 'hello'),
document.querySelector('#root')
)
</script>
@ktsn
ktsn / store.ts
Created September 7, 2018 03:16
Light-weight reactive store for Vue.js
class Store<S> {
private vm: Vue
constructor(initialState: S) {
this.vm = new Vue({
data: initialState
})
}
get state(): S {
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<link href="https://unpkg.com/bootstrap@4.0.0-beta.2/dist/css/bootstrap-reboot.min.css">
@hashrock
hashrock / .htmlnanorc
Last active December 11, 2018 08:21
Parcel + Vue hinagata
{
"minifySvg": false,
"collapseWhitespace": "conservative",
"minifyCss": {
"safe": true
}
}
//- templated by jade
svg(width=640 height=480 style="background-color:grey;")
circle(
cx=30 cy=30
r=25
stroke="grey" stroke-width=1
fill="wheat")
rect(
width=50 height=50
x=60 y=10
@azu
azu / js.md
Last active December 28, 2021 07:19
JavaScriptのレベル別書籍のまとめ

前提: 完成していて、比較的支持を集めていて、JavaScriptを中心にした書籍 (DOM APIよりは言語を中心とした内容)

追記: JavaScriptの入門書 #jsprimerを書いている

最初からES2015で学ぶことを前提にした初心者〜中級者向けのJavaScript本がなかったので書いてる。 ES2015でJavaScriptという言語のコア部分は大きく変わったので、それを前提とした内容にする予定。