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
import { NestFactory } from '@nestjs/core' | |
import { AppModule } from './app.module' | |
const repl = require('repl') | |
async function bootstrap () { | |
const app = await NestFactory.createApplicationContext(AppModule) | |
console.log('starting repl ...') | |
repl.start().context.app = app | |
} |
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
.py-2 { | |
padding-top: 6px !important; | |
padding-bottom: 6px !important; | |
} | |
.BorderGrid--spacious .BorderGrid-cell { | |
padding-top: 16px; | |
padding-bottom: 16px; | |
} |
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/awk -f | |
BEGIN { | |
FS = "\t" | |
print "\n" | |
} | |
$9 ~ /heroku\/router/ { | |
split($10, c, " ") | |
path = c[3] |
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
require 'childprocess' | |
if (!ENV['CI_ENV'] && ENV['CI_ENV'] != 'false') | |
namespace :test do | |
task :prepare do | |
puts 'foreman start -f Procfile.test' | |
Thread.new do | |
begin | |
ChildProcess.posix_spawn = true | |
puts "foreman starting ..." |
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
class ForceTimeout extends Error { | |
get name () { return 'ForceTimeout' } | |
} | |
async function forceTimeout (time, cb) { | |
const intervalId = setInterval(() => { | |
throw new ForceTimeout() | |
}, time) | |
try { |
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 | |
require 'json' | |
# | |
# [param] Proc filter | |
# | |
def main(&filter) | |
puts projects.select { |project| | |
functionEnabled?(services(project['projectId'])) |
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
<html> | |
<head> | |
<script crossorigin type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mobx/4.15.0/mobx.umd.min.js"></script> | |
<script crossorigin type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js"></script> | |
<script type="text/javascript"> | |
controller = { | |
$el: undefined, | |
init: function ($el) { | |
this.$el = $el | |
this.render() |
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 | |
i = 1 | |
`git log --reverse --oneline`.lines.map { |commit| | |
commit.chomp.split(/\s+/).first | |
}.each { |ref| | |
system(sprintf("git branch %02d_%s %s", i, ref, ref)) | |
i += 1 | |
} |
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 assert = require('assert') | |
class Klass { | |
// correct | |
methodWithCall (val, cb) { | |
this.val = val | |
return cb.call(this, val) | |
} |
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
wtnabe : 写真の管理をGoogle Photos + Cloud Storageに移行した | |
wtnane : エディタでエディットしたい | |
shirokuro331: チームビルディングの話 | |
shiget84: 引き継ぎの話 | |
ryusei : ベトナムエンジニアと仲良く仕事をするには? | |
izawa: 2019買い物ベスト8 | |
shirokuro331: 非エンジニアがプロダクトマネージャーになって1年経ちました | |
t11a:俺とさいごのKanazawa.rb | |
shiget84: 最近読んだ本の話 | |
kentarom: Slackアプリ開発を通してTypeScriptの学習に挑戦してみた |