Skip to content

Instantly share code, notes, and snippets.

(function() {
var d, aa = "function" == typeof Object.create ? Object.create : function(a) {
var b = function() {};
b.prototype = a;
return new b
},
ba;
if ("function" == typeof Object.setPrototypeOf) ba = Object.setPrototypeOf;
else {
var ca;
@taise
taise / output.html
Created April 22, 2018 01:52
rubrowser graph of tmm1/test-queue
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<title>Rubrowser</title>
<link media='all' rel='stylesheet'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<style>html, body, .dependency_graph, .dependency_graph svg{
width: 100%;
height: 100%;
@taise
taise / index.html
Last active November 14, 2017 15:54
fullWidthNumConvert
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no'>
<title>eventListener</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.

builderscon 2017

HTML+CSSの設計

  • CSSはどこから当てられているかわからない
    • コンポーネント化して管理したい
    • 最適なコンポーネント化の手法・粒度は何か...?
@taise
taise / bfs.go
Last active January 3, 2017 08:43
breath first search for graph data
package main
const (
visited = 0
completion = -1
)
type Status struct {
Node int
Unvisited []int

ErgoDox EZ

Keymap 0: Basic layer

,--------------------------------------------------.      ,--------------------------------------------------.
| Esc    |   1  |   2  |   3  |   4  |   5  |   6  |      |   '  |   7  |   8  |   9  |   0  |   -  |   =    |
|--------+------+------+------+------+-------------|      |------+------+------+------+------+------+--------|
| Tab    |   Q  |   W  |   E  |   R  |   T  |   [  |      |   ]  |   Y  |   U  |   I  |   O  |   P  |   \    |
|--------+------+------+------+------+------|      |      |      |------+------+------+------+------+--------|
package main
import (
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/lib/pq"
)
type Schema struct {
git log --pretty="tformat:$(tput bold)$(tput setaf 3)%h$(tput sgr0);;$(tput bold)$(tput setaf 4)%an$(tput sgr0);;$(tput bold)$(tput setaf 2)%aD%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08$(tput sgr0);;$(tput bold)$(tput setaf 1)%d$(tput sgr0) $(tput setaf 7)%s$(tput sgr0)" --graph --all
@taise
taise / clowd_watch_metrics.rb
Created June 9, 2016 14:26
Get Redshift performance metrics using Aws::CloudWatch::Metric
require 'aws-sdk'
AWS_ACCESS_KEY_ID = 'hoge'.freeze
AWS_SECRET_ACCESS_KEY = 'piyo'.freeze
Aws.config.update({
region: 'us-west-2',
credentials: Aws::Credentials.new(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
})