View merge-anylint-json.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { rules: eslintRules } = require('./.eslintrc.js'); | |
const tslintConfig = require('./tslint.json'); | |
const { rules: tslintRules } = tslintConfig; | |
console.log( | |
JSON.stringify( | |
{ | |
...tslintConfig, | |
rules: { |
View gomuyo.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const submitBtn = document.querySelector('input[type=submit]'); | |
let startedAt; | |
const flash = (ts) => { | |
if (!startedAt) startedAt = ts; | |
const elapsed = ts - startedAt; | |
if (elapsed > 100) { | |
const e = new MouseEvent('click', { | |
view: window, | |
bubbles: true, |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM buildpack-deps:jessie | |
RUN mkdir -p /app/data && touch /app/data/PROCESS-$(date +%s) | |
CMD ["ls", "/app/data"] |
View query.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
repository(owner: "aereal", name: "delay-time-calc") { | |
ref(qualifiedName: "refs/heads/master") { | |
target { | |
... on Commit { | |
tree { | |
entries { | |
name | |
object { | |
... on Tree { |
View partyHardPastak.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
(() => { | |
const hairImage = document.querySelector('#hairImage') | |
const faceImage = document.querySelector('#faceImage') | |
const canvas = document.querySelector('#resultCanvas') | |
const ctx = canvas.getContext('2d') | |
const updateCanvas = (filter) => { | |
ctx.drawImage(faceImage, 0, 0) | |
ctx.save() |
View gist:f516cc78d6c1f75b60224ba9d6ca8cf7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================== | |
WARNING: DATA RACE | |
Write at 0x000001615700 by goroutine 6: | |
reflect.Value.SetString() | |
/usr/local/Cellar/go/1.9.2/libexec/src/reflect/value.go:1537 +0x64 | |
github.com/aereal/go-magi/vendor/github.com/jessevdk/go-flags.convert() | |
/Users/aereal/devel/src/github.com/aereal/go-magi/vendor/github.com/jessevdk/go-flags/convert.go:200 +0x1011 | |
github.com/aereal/go-magi/vendor/github.com/jessevdk/go-flags.(*Option).set() | |
/Users/aereal/devel/src/github.com/aereal/go-magi/vendor/github.com/jessevdk/go-flags/option.go:226 +0x23c | |
github.com/aereal/go-magi/vendor/github.com/jessevdk/go-flags.(*Parser).parseOption() |
View gist:9a9f73e8ad2c02aac762c4e58884271b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: NvimServer [69569] | |
Path: /Applications/VimR.app/Contents/Frameworks/NvimView.framework/Versions/A/PlugIns/NvimServer | |
Identifier: NvimServer | |
Version: 0 | |
Code Type: X86-64 (Native) | |
Parent Process: VimR [69568] | |
Responsible: NvimServer [69569] | |
User ID: 501 | |
Date/Time: 2018-01-19 12:53:57.386 +0900 |
View nenshu.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
HOUR = 1 | |
def jikyu(work_time_per_month: , nenshu: ) | |
gekkyu = nenshu / 12.0 | |
gekkyu / work_time_per_month | |
end | |
[ |
View Gemfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'json-schema' |
View date_diff.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use DateTime::Format::W3CDTF; | |
use DateTime; | |
use Test::More; | |
{ | |
my $days = get_days( |