This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set show-all-if-ambiguous on | |
bind 'TAB:menu-complete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.) |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import sys | |
import urllib | |
import urllib2 | |
import json | |
import re | |
import os | |
import hashlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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& |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net" | |
"net/http" | |
"time" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1='${white}[\t] ${blue}\W:${red} \$' | |
watch -n1 -d wc -l /var/log/haproxy/haproxy-info.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"***************************************************************************** | |
"" 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" |