Skip to content

Instantly share code, notes, and snippets.

@7cc
7cc / html-basic.md
Created May 27, 2014 20:19
html,cssを忘れたときのために

HTML

HTMLを使う必要は無い

  • textとの比較
  • wordやpdfとの比較

HTMLをそのまま書く必要は無い

  • WYSIWYG
@7cc
7cc / 高校授業料.md
Created July 3, 2014 03:05
高校生等への修学支援について。正確さは保障しない。

高校生等への修学支援

開始時期

2014(平成26)から

月 9900, 14850, 19800, 24750円
@7cc
7cc / compat-table.md
Last active February 13, 2019 11:44
マルバツ, 真偽, true/false, yes/no symbols
種類
まるバツ ×
アルファベット o x
Yes/No Y N
Yes/No Yes No
記号
記号(太い)
記号
記号 (empty)
  • fixed-point 固定小数点
  • Floating Point 浮動小数点
  • exponential notation 指数表記
method return
toFixed f
toPrecision f, e
toExponential e
@7cc
7cc / bg.css
Created August 6, 2014 09:42
CSS background
/*-----------------
* 色に関しては2つだけ
* - color
* - clip
* 残りは画像に適用
-----------------*/
.bg {
width: 200px;
height: 200px;
@7cc
7cc / textNode.md
Last active August 29, 2015 14:04
data nodeValue textContent [js],[dom]

to insert/change a textNode value, there are 3 ways.

text.data = null
text.nodeValue = undefined
text.textContent = undefined

Whichever method you use, be sure to take a fallback for undefined/null.

@7cc
7cc / selectstart.md
Created August 8, 2014 20:39
selectstart

文字選択を検知する

文字列選択で起きるイベント

on/selectstart:
  MSIEイベント
  Webkit系も対応
on/select:
 input, textareaのみで使用可
@7cc
7cc / delay-resize-multi.js
Last active August 29, 2015 14:05
resize, scrolll event for delay without lib
var delayResize = {
delays: [300, 600, 900],
timers: [],
clearAlltimers: function() {
var l = this.timers.length
for(var i=0; i<l; i++){
clearTimeout(this.timers[i])
}
},
dispachEv: function(e){
@7cc
7cc / searchful-gist.md
Last active August 29, 2015 14:05
searchful gist [gist],[memo]

add tags/attributes.

[snippet],[css],[dropdown]

  • category
    • snippet
    • demo
    • memo
    • doc
  • main-lang
@7cc
7cc / ref.txt
Last active August 29, 2015 14:05
接続詞 [memo]
http://readingmonkey.blog45.fc2.com/blog-entry-674.html