Skip to content

Instantly share code, notes, and snippets.

View aereal's full-sized avatar

aereal aereal

View GitHub Profile
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "configuration",
"properties": {
"ADDR": {
"type": "string"
},
"DSN": {
@aereal
aereal / generator_quiz.js
Last active October 19, 2018 13:11 — forked from hakobe/generator_quiz.js
oopsを表示させずにhelloのみを表示させる方法を答えよ
function* hello() {
try {
while(true) {
yield 9
yield 3
yield 2
}
} catch(e) {
console.log('oops')
} finally {
const { rules: eslintRules } = require('./.eslintrc.js');
const tslintConfig = require('./tslint.json');
const { rules: tslintRules } = tslintConfig;
console.log(
JSON.stringify(
{
...tslintConfig,
rules: {
(() => {
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,
FROM buildpack-deps:jessie
RUN mkdir -p /app/data && touch /app/data/PROCESS-$(date +%s)
CMD ["ls", "/app/data"]
query {
repository(owner: "aereal", name: "delay-time-calc") {
ref(qualifiedName: "refs/heads/master") {
target {
... on Commit {
tree {
entries {
name
object {
... on Tree {
'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()
==================
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()
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
#!/usr/bin/env ruby
HOUR = 1
def jikyu(work_time_per_month: , nenshu: )
gekkyu = nenshu / 12.0
gekkyu / work_time_per_month
end
[