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
#diagram .messageText { | |
font-size: 10px !important; | |
} |
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 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 |
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
(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) |
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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func Sqrt(x float64) float64 { | |
var z = 1.0 | |
for { |
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
set nocompatible | |
set ignorecase | |
set hlsearch | |
set number | |
set showmatch | |
syntax on | |
set tabstop=4 | |
set statusline=%F | |
set statusline+=%m |
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
function aliased-pipenv () { | |
python -m pipenv $args | |
} | |
Set-Alias pipenv aliased-pipenv |
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
# 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 |
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
""" 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. |
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
;; -*- 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)) | |
;; ---------- |
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
[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": [ |
NewerOlder