Skip to content

Instantly share code, notes, and snippets.

View velppa's full-sized avatar
🎯
Focusing

Pavel Popov velppa

🎯
Focusing
View GitHub Profile
import scala.util.Try
case class Triangle(
opposite: Float,
adjacent: Float,
hypotenuse: Float
) {
require(
opposite + adjacent > hypotenuse &&
adjacent + hypotenuse > opposite &&
@velppa
velppa / sVim.rc
Last active December 10, 2018 11:28
sVim.rc
" mappings
map "ctrl+u" scrollPageUp
map "ctrl+d" scrollPageDown
map "backspace" goBack
map ":" toggleReader
" Settings
let blacklists = ["*://duckduckgo.com/*", "*://*.google.*/*", "*://localhost:9000/*", "*://mijn.ing.nl/*", "*://medium.com/*/edit", "*://youtube.com/*", "*://www.youtube.com/*"]
@velppa
velppa / sVim.css
Last active January 3, 2019 05:05
sVim css file
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
@velppa
velppa / docker.md
Last active May 30, 2019 21:29 — forked from ngpestelos/remove-docker-containers.md
Docker cheat sheet

Delete all containers

docker ps -q -a | xargs docker rm

-q prints only the container IDs -a prints all containers

@velppa
velppa / rm-zcompdump.sh
Created July 20, 2017 13:56
Remove zcompdump from macOS
find /usr -path "*zcompdump*" 2> /dev/null | xargs rm
@velppa
velppa / keybase.md
Last active April 12, 2021 10:08
keybase.md

Keybase proof

I hereby claim:

  • I am velppa on github.
  • I am pavelpopov (https://keybase.io/pavelpopov) on keybase.
  • I have a public key whose fingerprint is 2C74 B3C9 FE3B 6AA7 49B3 8C8D 24E1 5BAB 2BA4 7B95

To claim this, I am signing this object:

@velppa
velppa / json.sql
Created April 10, 2016 09:00
Generating JSON from Oracle Database
declare
l_xml xmltype;
l_json clob;
begin
apex_json.initialize_clob_output;
select XMLElement("obj",
XMLForest(
XMLForest(
12345 as "id"
@velppa
velppa / rbc.15m.sh
Last active January 8, 2016 19:15
RBC stock index plugin for BitBar
#!/bin/bash
# File: rbc.15.m.sh
# Description: Plugin for BitBar (github.com/matryer/bitbar) displaying russian
# stock-market indicators from rbc.ru
# Author: github.com/schmooser
# Dependencies:
# jq - github.com/stedolan/jq
# pup - github.com/EricChiang/pup
# (install them using brew install jq pup)
# They should be added in PATH