Skip to content

Instantly share code, notes, and snippets.

View Dockerfile
FROM buildpack-deps:jessie
RUN mkdir -p /app/data && touch /app/data/PROCESS-$(date +%s)
CMD ["ls", "/app/data"]
View query.graphql
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
'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
==================
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
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
#!/usr/bin/env ruby
HOUR = 1
def jikyu(work_time_per_month: , nenshu: )
gekkyu = nenshu / 12.0
gekkyu / work_time_per_month
end
[
@aereal
aereal / Gemfile
Last active Dec 8, 2017
validates against environment variables
View Gemfile
source 'https://rubygems.org'
gem 'json-schema'
View date_diff.t
#!/usr/bin/env perl
use strict;
use warnings;
use DateTime::Format::W3CDTF;
use DateTime;
use Test::More;
{
my $days = get_days(
View req.t
#!/usr/bin/env perl
use strict;
use warnings;
use HTTP::Message::PSGI qw(req_to_psgi);
use HTTP::Request;
use Plack::Request;
use Test::More;
use URI;
View return-value.t
use strict;
use warnings;
use utf8;
BEGIN {
local $Return::Value::NO_CLUCK = 1;
require Return::Value;
}
use Test::Deep qw(cmp_deeply isa bool str methods);