Skip to content

Instantly share code, notes, and snippets.

View mascii's full-sized avatar

Masaki Koyanagi mascii

View GitHub Profile
@mascii
mascii / password_hash.go
Created February 2, 2017 15:32
password_hash function
package main
import (
"golang.org/x/crypto/bcrypt"
"fmt"
)
func main() {
password := []byte("pasuwa-do")
sudo apt-get update
sudo apt-get install -y nodejs npm
sudo npm cache clean
sudo npm install npm n -g
sudo n stable
@mascii
mascii / visasq.md
Created November 9, 2019 02:58
VisasQ

VisasQ

@mascii
mascii / get_vue_constructor_function.js
Created January 19, 2020 05:01
Vueコンストラクタ関数の取得(IE11対応版)
var Vue = (function () {
var el = [].filter.call(document.all, function (el) {return el.__vue__})[0];
if (!el) {
return;
}
var Vue = Object.getPrototypeOf(el.__vue__).constructor;
while (Vue.super) {
Vue = Vue.super;
}
return Vue;
@mascii
mascii / nintendoswitch_access.log
Created February 10, 2018 06:27
Nintendo Switch アクセスログ
192.168.10.3 - - [09/Feb/2018:01:32:07 +0900] "GET http://ctest.cdn.nintendo.net/ HTTP/1.1" 200 370 "-" "NX NIFM/00" TCP_MISS:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:08 +0900] "CONNECT receive-lp1.dg.srv.nintendo.net:443 HTTP/1.1" 200 1820 "-" "-" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:08 +0900] "CONNECT accounts.nintendo.com:443 HTTP/1.1" 200 4531 "-" "libcurl (nnAccount; 789f928b-138e-4b2f-afeb-1acae821d897; SDK 4.4.0.0; Add-on 4.4.0.0)" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:09 +0900] "CONNECT api.accounts.nintendo.com:443 HTTP/1.1" 200 4345 "-" "libcurl (nnAccount; 789f928b-138e-4b2f-afeb-1acae821d897; SDK 4.4.0.0; Add-on 4.4.0.0)" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:15 +0900] "CONNECT app-a02.lp1.npns.srv.nintendo.net:443 HTTP/1.0" 200 11121 "-" "-" TCP_TUNNEL:HIER_DIRECT
192.168.10.3 - - [09/Feb/2018:01:32:30 +0900] "GET http://ctest.cdn.nintendo.net/ HTTP/1.1" 200 370 "-" "NX NIFM/00" TCP_MISS:HIER_DIRECT
192.168.10.3 - - [09/Feb/20
@mascii
mascii / spring-animation-math-with-taylor-expansion.html
Created December 5, 2023 21:20
spring-animation-math-with-taylor-expansion
<!doctype html>
<html>
<head>
<style>
@property --t {
syntax: '<number>';
inherits: false;
initial-value: 0
}