Skip to content

Instantly share code, notes, and snippets.

View velppa's full-sized avatar
🎯
Focusing

Pavel Popov velppa

🎯
Focusing
View GitHub Profile
This file has been truncated, but you can view the full file.
PK
WVDynamoDBLocal_lib/PK
XV5pT\DynamoDBLocal.jar\T|uTI5n]_ Ak wwwwA~7y}uYN:TD^

5Z
o~ dDh%dE } X
_hW~D*vF,8
dXB Iwj+
LZ:Wf~ee\XW*bWAn<@~pmxkeRX477K!`k?OX}Vf()"9vy|HTl iL,!vysSztbeon%Mge/Md~~Pkw%Vo:c?ie@
Kt-*YOlM%XLh$m;,b1l\Jf-._.^ `?"sMI4@7P"YLj /r8+FICpdF RU;KzP
@velppa
velppa / doverennost.org
Created July 27, 2022 22:29
Генеральная доверенность на родителей

Доверенность на родителей

доверенность Город Москва.

Двадцать пятого мая две тысячи восемнадцатого года.

Я, гражданин Российской Федерации ХХХ УУУ ААААич, дд.мм.гггг года рождения,

@velppa
velppa / DefaultKeyBinding.dict
Created April 28, 2021 16:58
macOS keybindings
{
/* Keybindings for Emacs emulation.
*
* Place this file to ~/Library/KeyBindings/DefaultKeyBinding.dict,
* then log out / log in to the system.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
#!/bin/bash
set -eu
api_key=$DD_API_KEY
app_key=$DD_APP_KEY
set_unit() {
metric_name=$1
unit=$2
echo
@velppa
velppa / README.org
Created February 8, 2021 19:59
Various Babashka scripts

Various Babashka scripts

Each script is supposed to be runnable as bb -f filename.

aws_cognitect_sdk.clj
get latest version of Cognitect AWS SDK
@velppa
velppa / gist:4204077a9fef4fca89b73c25b588eac1
Created January 26, 2021 18:33 — forked from cdown/gist:1163649
Bash urlencode and urldecode
urlencode() {
# urlencode <string>
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in
package main
import (
"fmt"
"strings"
)
func CompareTwoStrings(stringOne, stringTwo string) float32 {
removeSpaces(&stringOne, &stringTwo)
@velppa
velppa / 2020-day9.clj
Created December 10, 2020 23:34
Advent Of Code
(ns day9
(:require [clojure.string :as str]))
(def input (->> (slurp "input.txt")
(#(str/split % #"\n"))
(map read-string)))
(def PREAMBLE-LENGTH 25)

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@velppa
velppa / snakeAndCamel.js
Created January 21, 2019 22:31
snake meets camel
function snakeToCamel( s ) {
return s.replace(/(\_\w)/g, function(m){return m[1].toUpperCase();});
}
function camelToSnake( s ) {
return s.replace(/([a-z])([A-Z])/g, '$1_$2').toLowerCase();
}