h - Move left
j - Move down
k - Move up
l - Move right
$ - Move to end of line
0 - Move to beginning of line (including whitespace)
I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.
It's currently synchronized with my .vimrc
config except for a block of neovim-specific terminal key mappings.
This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.
These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,
{ | |
"ChainName": "Dogechain", | |
"chainId": 2000, | |
"homesteadBlock": 0, | |
"daoForkSupport": true, | |
"eip150Block": 0, | |
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"eip155Block": 0, | |
"byzantiumBlock": 0, | |
"constantinopleBlock": 0, |
{ | |
"ChainName": "Dogechain", | |
"chainId": 2000, | |
"homesteadBlock": 0, | |
"daoForkSupport": true, | |
"eip150Block": 0, | |
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"eip155Block": 0, | |
"byzantiumBlock": 0, | |
"constantinopleBlock": 0, |
{ | |
"name": "Dogechain", | |
"genesis": { | |
"nonce": "0x0000000000000000", | |
"timestamp": "0x0", | |
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000f858f85494d668bba507d0438ff22ee8ceb341323765669a24947175996ff9dcb8fbb83b68e2b88f1a029014555b9492bb5d1a856e54157232b43fe1c9c7e89ee36abe9464f2686e3ac7492c3b3f662d32ecb8b6bfa548fe80c0", | |
"gasLimit": "0x1c9c380", | |
"difficulty": "0x1", | |
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"coinbase": "0x0000000000000000000000000000000000000000", |
This is just some code I recently used in my development application in order to add token-based authentication for my api-only rails app. The api-client was to be consumed by a mobile application, so I needed an authentication solution that would keep the user logged in indefinetly and the only way to do this was either using refresh tokens or sliding sessions.
I also needed a way to both blacklist and whitelist tokens based on a unique identifier (jti)
Before trying it out DIY, I considered using:
module ActiveRecordMarshalable | |
def marshal_dump | |
[attributes, self.association_cache, instance_variable_get(:@new_record)] | |
end | |
def marshal_load data | |
send :initialize, data[0] | |
instance_variable_set :@association_cache, data[1] | |
instance_variable_set :@new_record, data[2] | |
end |
import {fk, many, Model} from 'redux-orm'; | |
class Book extends Model { | |
static get fields() { | |
authors: many('Author', 'books'), | |
publisher: fk('Publisher', 'books'), | |
} | |
static parse(data) { | |
/* |
#!/usr/bin/env ruby | |
require 'json' | |
def parse(uri) | |
JSON.parse `curl -s #{uri}`.gsub(/\/\*(?:(?!\*\/).)*\*\//m, '').strip.gsub(/^callback\(/, '').gsub(/\);/, '').gsub(/([a-zA-Z]+[0-9]*):/, '"\1":') | |
end | |
puts %w( | |
platform |