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
@hashrock
hashrock / anydown.md
Last active March 27, 2021 13:27
markdown風の文字列からカンバンやガントチャートを生成するための仕様集(草案)

markdown風の文字列からカンバンやガントチャートを生成するための仕様集(草案)

利点

  • DBに格納するより、単純にテキストにしたほうがポータビリティがある
  • その辺の独自操作の多いガントチャートエディタより、一括置換やコピペのできる普通のテキストエディタの方がよさそう
  • markdown中にcodeとして埋め込んでレンダリング&印刷とかやりたい
  • いざとなれば客にはメールでテキストのまま送れる

基本仕様

@hashrock
hashrock / firebase.json
Created August 6, 2016 03:19
Junk firebase wrapper
{
"database": {
"rules": "database-rules.json"
},
"storage": {
"rules": "storage.rules"
},
"hosting": {
"public": "./",
"ignore": [

macにJISキーボードつなぐときの修飾キーの設定

毎回忘れるのでメモ

Caps -> Control
Control -> Command
Option -> Option
Command -> Control
@hashrock
hashrock / start-typescript.sh
Created July 27, 2016 10:05
start typescript@beta
npm install -D ts-loader typescript@beta webpack
//"watch": "webpack --watch"
@hashrock
hashrock / settings.json
Created July 27, 2016 10:02
.vscode/settings.json
{
"typescript.tsdk": "node_modules/typescript/lib"
}
filters: {
formatDate: function (v) {
return v.replace(/T|Z/g, ' ').replace(/\.[0-9][0-9][0-9]/, "")
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sanitize Sample</title>
</head>
<body>
<main>
<h1>Sanitize Sample</h1>
<ul>
@hashrock
hashrock / onefile_cms.html
Last active April 23, 2019 04:03
1 File CMS
<!--
http = require('http'),
fs = require('fs'),
qs = require('querystring');
http.createServer(function (req, res) {
var someFile = "index.html";
if (req.method === 'POST') {
var body = '';
@hashrock
hashrock / git.md
Created October 21, 2015 06:45
git備忘録

originの最新をupstreamの最新に強制的に合わせる

git remote add upstream /url/to/original/repo
git fetch upstream
git checkout master
git reset --hard upstream/master  
git push origin master --force 
@hashrock
hashrock / diag.md
Last active January 22, 2025 21:10
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など