Skip to content

Instantly share code, notes, and snippets.

View romanwrites's full-sized avatar
👨‍💻
Coding

romanwrites

👨‍💻
Coding
View GitHub Profile
@romanwrites
romanwrites / incrementDate.gs
Created October 19, 2022 18:40
incrementDate in google sheets
function plusDay(zeroDate) {
var shet = SpreadsheetApp.getActiveSheet()
var date = new Date(zeroDate)
var maxRaw = 10
var maxCol = 10
for (var raw = 1; raw <= maxRaw; raw++) {
for (var col = 1; col <= maxCol; col++) {
shet.getRange(raw,col).setValue(date)
@romanwrites
romanwrites / config.yml
Created October 7, 2021 18:37
Read config.yml to struct in golang
login: "hello"
password: "world"
host: "localhost"
port: "8080"
@romanwrites
romanwrites / .vimrc
Created August 17, 2020 13:00
.vimrc config
set number
syntax on
nmap <f5> :Stdheader<CR>
let NERDTreeShowHidden=1
inoremap { {}<left>
inoremap {<CR> {<CR>}<ESC>O
inoremap {;<CR> {<CR>};<ESC>O
@romanwrites
romanwrites / .zshrc
Last active September 30, 2020 22:55
My zshrc config, aliases and some features
bindkey -M menuselect '^M' .accept-line
# Always show colorised path in shell
% PROMPT='%~ %# '
export PS1="%F%F{3}%3d%f %F{6}%m%#%f "
# Load Homebrew config script
source $HOME/.brewconfig.zsh
# Useful aliases