Skip to content

Instantly share code, notes, and snippets.

🤖
He is not a human

hashrock hashrock

🤖
He is not a human
Block or report user

Report or block hashrock

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hashrock
hashrock / index.js
Created Dec 21, 2017
puppeteer - markdown-it - pdf(WIP)
View index.js
const fs = require('fs');
const puppeteer = require('puppeteer');
var md = require('markdown-it')();
(async() => {
var result = md.render('# markdown-it rulezz!');
var html = `
<html><head><title>Hey</title><style></style></head>
View snippets.html
<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">
View svg-sandbox.html
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>SVG Sandbox</title>
<style>
body {
View favorite.js
import * as THREE from "https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.module.js";
export function init(){
var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
var renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
@hashrock
hashrock / setup.sh
Last active Mar 29, 2019
Initial setup for BoW
View setup.sh
curl -L git.io/nodebrew | perl - setup
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
nodebrew install-binary latest
nodebrew use latest
git config --global user.email "hashrock@users.noreply.github.com"
git config --global user.name "hashrock"
npm install --global yarn
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
@hashrock
hashrock / settings.json
Created Aug 25, 2016
vscode setting for typescript 2.0
View settings.json
{
"typescript.tsdk": "node_modules/typescript/lib"
}
@hashrock
hashrock / anydown.md
Last active Mar 7, 2020
markdown風の文字列からカンバンやガントチャートを生成するための仕様集(草案)
View anydown.md

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

利点

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

基本仕様

@hashrock
hashrock / firebase.json
Created Aug 6, 2016
Junk firebase wrapper
View firebase.json
{
"database": {
"rules": "database-rules.json"
},
"storage": {
"rules": "storage.rules"
},
"hosting": {
"public": "./",
"ignore": [
View mac-jis-keyboard.md

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

毎回忘れるのでメモ

Caps -> Control
Control -> Command
Option -> Option
Command -> Control
You can’t perform that action at this time.