Skip to content

Instantly share code, notes, and snippets.

set show-all-if-ambiguous on
bind 'TAB:menu-complete
let data = process.argv[2]
let unmarshalled = JSON.parse(data)
function toCamelCase(key) {
return key.split('_')(key).map(convertCase).join('')
}
function convertCase(key) {
if(key.toLowerCase() == "id") return key.toUpperCase()
return key[0].toUpperCase() + key.slice(1)
import numpy as np
import cv2 as cv
import math
# the MPI model(16 parts):
# http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/mpi/pose_iter_160000.caffemodel
# https://raw.githubusercontent.com/opencv/opencv_extra/master/testdata/dnn/openpose_pose_mpi_faster_4_stages.prototxt
# (to simplify this sample, the body models are restricted to a single person.)
@ikouchiha47
ikouchiha47 / kingsly.py
Last active July 21, 2018 13:05
This is a cli tool for kong, to create api plugins, upsteams with targets
#!/usr/bin/env python
import argparse
import sys
import urllib
import urllib2
import json
import re
import os
import hashlib
{
"contacts": [{"id":1,"first_name":"Fenelia","last_name":"Aronov","email":"[email protected]","gender":"Female","phone":"433-674-0609","image":"https://robohash.org/eaquevoluptatessunt.jpg?size=50x50&set=set1"},
{"id":2,"first_name":"Kipper","last_name":"MacAllester","email":"[email protected]","gender":"Male","phone":"716-563-5389","image":"https://robohash.org/ipsaacommodi.bmp?size=50x50&set=set1"},
{"id":3,"first_name":"Bendicty","last_name":"Cloonan","email":"[email protected]","gender":"Male","phone":"479-335-4214","image":"https://robohash.org/quaeratautanimi.bmp?size=50x50&set=set1"},
{"id":4,"first_name":"Caralie","last_name":"Alexandersson","email":"[email protected]","gender":"Female","phone":"562-401-0336","image":"https://robohash.org/repellatodiosint.png?size=50x50&set=set1"},
{"id":5,"first_name":"Everett","last_name":"Poytheras","email":"[email protected]","gender":"Male","phone":"848-231-3336","image":"https://robohash.org/sedrerumea.png?size=50x50&
@ikouchiha47
ikouchiha47 / aubuy.jpg
Last active June 5, 2018 07:22
flipkart flash sale
aubuy.jpg
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"net/http"
"time"
)
@ikouchiha47
ikouchiha47 / prompt
Last active June 13, 2017 07:20
some stuff
export PS1='${white}[\t] ${blue}\W:${red} \$'
watch -n1 -d wc -l /var/log/haproxy/haproxy-info.log
@ikouchiha47
ikouchiha47 / init.vim
Last active January 16, 2017 13:18
neovim config
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.config/nvim/autoload/plug.vim')
let g:vim_bootstrap_langs = "c,elixir,go,javascript,ocaml,ruby"