Skip to content

Instantly share code, notes, and snippets.

View p-chan's full-sized avatar
:octocat:
Be Internetable

P-Chan p-chan

:octocat:
Be Internetable
View GitHub Profile
@p-chan
p-chan / p5-sandbox - microorganism.markdown
Created July 6, 2016 10:15
p5-sandbox - microorganism
@p-chan
p-chan / .editorconfig
Last active July 5, 2016 08:40
.editorconfig
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true

【JS版】情報を収集する技術

情報に溺れないように、情報社会を生き抜きたい。 JavaScript系の情報を収集する方法について考える。

Twitter

909 名前:水先案名無い人[sage] 投稿日:2006/01/18(水) 17:53:30 ID:vy/5A+U/0
IDの生成にはIPアドレスの全てを使う IPアドレスからMD5によるハッシュを16進数形式で算出し、 返ってきた文字列の後ろから4バイト(65536通り)が使われる これと、サーバから得たランダムな数字(1日ごと)、板キー、 年月日の「日」を混ぜ合わせて、 MD5によるハッシュをBase64形式で算出し、 返ってきた文字列の前から8バイト(281474976710656通り)がIDとなる

# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
const one = (msg) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
console.log('1');
resolve();
}, 2000);
});
}
const sec = () => {

browser-sync単体でも便利という話

実験で何かちょろっと作りたい時とか、gulpfileとか書きたくない。 けど、諸々の事情でbrowser-sync(ライブリロードするやつ)だけは欲しい場合が多い。(ローカルサーバー無いとChromeでローカルのJSON読めない問題とか)

npm init
npm install browser-sync -S
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@p-chan
p-chan / carro-veloce.md
Created March 14, 2016 12:48
Carro Veloce - A lightweight mixin library for Stylus

Carro Veloce

A lightweight mixin library for Stylus

Fatures

  • Normalize
  • Flex-based Grid System
  • Micro clearfix

Ichigoore

A boilerplate of gulp for FICC KYOTO development team.

Features

SASS

  • SCSS(Minify)
  • Bourbon
  • Autoprefixer

ES6