This file contains hidden or 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
https://ascii.jp/elem/000/004/225/4225536/ | |
https://v0.dev/chat/np8MsOkomAK?b=b_7ACwUDP3KQa |
This file contains hidden or 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
/** | |
* 実践DDD cp.4.7 のイベント駆動アーキテクチャの実装を、RxJSをつかってやってみたやつ. | |
*/ | |
import { Subject, Observable, Observer } from 'rxjs'; | |
import { count, filter } from 'rxjs/operators'; | |
/** | |
* ダミーデータストリームの作成. | |
*/ |
This file contains hidden or 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
""" logging sample | |
""" | |
import json | |
import os | |
import logging | |
import traceback | |
def lambda_handler(_event, _context): | |
"""Sample pure Lambda function |
This file contains hidden or 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
""" abc055_b """ | |
import sys | |
from functools import reduce | |
H = pow(10, 9) + 7 | |
def _main(): | |
_n = int(sys.stdin.readline()) |
This file contains hidden or 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
#The following lines were added by compinstall | |
zstyle :compinstall filename $HOME/.zshrc | |
autoload -Uz compinit | |
compinit | |
# End of lines added by compinstall | |
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=100000 | |
SAVEHIST=100000 |
This file contains hidden or 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
[user] | |
name = haiiro-shimeji | |
email = [email protected] | |
[color] | |
# colorの設定(以下のコマンドは自動で色つける) | |
status = auto | |
diff = auto | |
branch = auto | |
interactive = auto | |
grep = auto |
This file contains hidden or 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
set nocompatible | |
filetype off | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundle 'Shougo/neocomplcache' |
This file contains hidden or 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
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > /etc/apt/sources.list.d/docker.list | |
sudo apt-get update |
This file contains hidden or 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
//Dummy resource | |
module.exports = { | |
open: function() { | |
var res = { | |
read: function() { | |
return new Promise(function(_resolve, _reject) { | |
setTimeout(function() { | |
_resolve('hogeeee'); | |
//_reject('read error!'); |
This file contains hidden or 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
//Dummy resource | |
module.exports = { | |
open: function() { | |
var res = { | |
read: function() { | |
return new Promise(function(_resolve, _reject) { | |
setTimeout(function() { | |
_resolve('hogeeee'); | |
//return _reject('read error!'); |
NewerOlder