Skip to content

Instantly share code, notes, and snippets.

View shibukk's full-sized avatar
🚀
Thanks to everyone!!

Kazuaki Shibuya shibukk

🚀
Thanks to everyone!!
View GitHub Profile
@kamipo
kamipo / lock.rb
Last active December 15, 2020 12:10
# frozen_string_literal: true
require "mysql2"
def client
Mysql2::Client.new(
host: "localhost",
username: "root",
database: "test",
)

非破壊 TypeSctript

mizchi / TypeScript Meetup 2


About

  • mizchi / 竹馬光太郎
  • フロントエンドと Node.js

非破壊 TypeSctript

mizchi / TypeScript Meetup 2


About Me

  • mizchi / 竹馬光太郎
  • フロントエンドと Node.js
@fujimura
fujimura / debt.md
Last active December 18, 2019 07:39
技術的負債とは何だったのか、技術的負債はなくならないのか
@iscott
iscott / simple_authentication_rails_5_bcrypt_and_has_secure_password.md
Last active May 6, 2024 19:57
Cheat Sheet: Simple Authentication in Rails 5 with has_secure_password

Cheat Sheet: Simple Authentication in Rails 6 with has_secure_password

The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.

First the simplest/core layers, then optional layers depending on which features/functionality you want.

Specs
AUTHOR Ira Herman
LANGUAGE/STACK Ruby on Rails Version 4, 5, or 6
@tkuchiki
tkuchiki / memo.md
Created February 6, 2017 07:26
fluentd で time というキーを in_tail -> out_xxx で出力したい場合の注意点

in_tail

  • keep_time_key は default = false なので time キーは消される
    • keep_time_key true を追加

out_xxx

  • include_time_key true を設定しただけでは time_key は default = time なので in_tail した time は上書きされる
  • include_time_key true かつ time_key を time 以外にする
@magegu
magegu / multipart.js
Last active July 11, 2023 20:12
mutipart upload for aws s3 with nodejs based on the async lib including retries for part uploads
/*
by Martin Güther @magegu
just call it:
uploadFile(absoluteFilePath, callback);
*/
var path = require('path');
var async = require('async');
@jaicab
jaicab / responsive-video.css
Last active July 29, 2023 02:52
Pure CSS solution for embed videos with an aspect ratio of 16:9
.video-container {
position: relative;
padding-bottom: 56.25%; /*16:9*/
padding-top: 30px;
height: 0;
overflow: hidden;
}
.video-container iframe,
.video-container object,