Skip to content

Instantly share code, notes, and snippets.

View MokkeMeguru's full-sized avatar
🐧
study and research now

takuya-ebata MokkeMeguru

🐧
study and research now
View GitHub Profile
@MokkeMeguru
MokkeMeguru / github-mermaid.css
Created November 21, 2022 06:41
github wiki で mermaid 見える君
#diagram .messageText {
font-size: 10px !important;
}
#!/usr/bin/env bash
echo $(which go)
git clone https://github.com/syndbg/goenv.git ~/.goenv
echo 'export GOENV_ROOT="$HOME/.goenv"' >>~/.bash_profile
echo 'export PATH="$GOENV_ROOT/bin:$PATH"' >>~/.bash_profile
echo 'eval "$(goenv init -)"' >>~/.bash_profile
. ~/.bash_profile
@MokkeMeguru
MokkeMeguru / create-indexed-db.cljs
Last active January 14, 2024 09:57
IndexedDB with ClojureScript
(ns practical-customizable-alerm.idb
(:require [re-frame.core :as re-frame]
[reagent.core :as r]))
;; event
(re-frame/reg-event-db
::init-indexed-db
(fn [db [_ indexed-db]]
(println "db" indexed-db)
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
var z = 1.0
for {
@MokkeMeguru
MokkeMeguru / example.vimrc
Last active February 17, 2020 04:29
vimrc for python tensorflow
set nocompatible
set ignorecase
set hlsearch
set number
set showmatch
syntax on
set tabstop=4
set statusline=%F
set statusline+=%m
function aliased-pipenv () {
python -m pipenv $args
}
Set-Alias pipenv aliased-pipenv
# installation scoop
try {
scoop --version
} finally {
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
}
# install some utility applications
scoop install python wget curl git
""" MY Batchnormalization layer
ref & thanks.
https://github.com/tensorflow/tensorflow/issues/18222
https://github.com/jkyl/biggan-deep/blob/master/src/custom_layers/batch_normalization.py
https://github.com/tensorflow/community/blob/master/rfcs/20181016-replicator.md#global-batch-normalization
https://github.com/Apm5/tensorflow_2.0_tutorial/blob/master/CNN/BatchNormalization.py
WARN: This layer cannot accept the variable fused=True,
We need select fused=False at constructor.
IF you select fused=True|None, this layer attributes as same as official BatchNormalization.
@MokkeMeguru
MokkeMeguru / .spacemacs
Last active February 7, 2020 10:22
my-emacs-settings
;; -*- mode: emacs-lisp -*-
;; it's a function for lsp connection in docker
;; ----------
;; (lsp-register-client
;; (make-lsp-client :new-connection (lsp-tramp-connection "pyls")
;; :major-modes '(python-mode)
;; :remote? t
;; :server-id 'pyls-remote))
;; ----------
[Trace - 04:01:11 PM] Sending request 'initialize - (72)'.
Params: {
"processId": 1239,
"rootPath": "/usr/app",
"rootUri": "file:///usr/app",
"capabilities": {
"workspace": {
"workspaceEdit": {
"documentChanges": true,
"resourceOperations": [