start new:
tmux
start new with session name:
tmux new -s myname
license: apache2.0 | |
height: 673 | |
border: no |
#! /bin/sh | |
alias gs="git status" | |
alias gc="git commit" | |
alias gr="git checkout" | |
alias ga="git add" | |
alias gl="git lola" |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
curl -X PUT "localhost:9200/datenano?pretty" -H 'Content-Type: application/json' -d' | |
{ | |
"mappings": { | |
"dynamic" : "strict", | |
"properties" : { | |
"datefield" : { | |
"type": "date_nanos", | |
"format": "strict_date_hour_minute_second_millis" | |
} | |
} |
patch: | |
"recognizer/patterns/veng": "^v.*$" | |
"engine/segmentors/@before last": affix_segmentor@veng | |
veng: | |
tag: veng | |
prefix: "v" | |
tips: "英语输入" |
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers |
Last updated March 28, 2021
There are now two ways to approach this:
This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |