I hereby claim:
- I am wblondel on github.
- I am wblondel (https://keybase.io/wblondel) on keybase.
- I have a public key ASDB8JwGwEE1xSlHhRx_yDhOAHavzPAz9L6o-oO0a89GXAo
To claim this, I am signing this object:
import csv | |
import argparse | |
def split_file(input_file_path, entries_per_file, output_prefix): | |
with open(input_file_path, 'r') as input_file: | |
reader = csv.reader(input_file, delimiter=';', quotechar='"') | |
headers = next(reader, None) | |
file_count = 1 |
#!/bin/bash | |
# Simple script to list version numbers of critical development tools | |
export LC_ALL=C | |
bash --version | head -n1 | cut -d" " -f2-4 | |
MYSH=$(readlink -f /bin/sh) | |
echo "/bin/sh -> $MYSH" | |
echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash" | |
unset MYSH | |
echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3- |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# https://stackoverflow.com/questions/7998302/graphing-a-processs-memory-usage | |
# Usage ./graph.sh <pid> | |
# It requires having gnuplot installed | |
# trap ctrl-c and call ctrl_c() | |
trap ctrl_c INT | |
LOG=$(mktemp) |
import sys | |
def check_installation(rv): | |
current_version = sys.version_info | |
if current_version[0] == rv[0] and current_version[1] >= rv[1]: | |
pass | |
else: | |
sys.stderr.write("[%s] - Error: Your Python interpreter must be %d.%d or greater (within major version %d)\n" % (sys.argv[0], rv[0], rv[1], rv[0]) ) | |
sys.exit(-1) |
from bisect import bisect_left | |
def takeClosest(myList, myNumber): | |
""" | |
Assumes myList is sorted. Returns closest value to myNumber. | |
If two numbers are equally close, return the smallest number. | |
""" | |
pos = bisect_left(myList, myNumber) | |
if pos == 0: |
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
๐ ๐ผ ๐ | |
๐๐ ๐ โก๏ธ ๐ ๐ | |
๐ ๐คHello world!๐ค | |
๐ 0 | |
๐ | |
๐ |
# Provided three int values, this will return a valid hex triplet representing a color. | |
# If those values are between [0,255], then it will treat those as RGB values and return the color corresponding to those values. | |
# This uses the preferred method of string formatting, as described in PEP 3101. | |
# It also uses min() and max to ensure that 0 <= {r,g,b} <= 255. | |
def main(): | |
# Let's say you get the parameters as string | |
parameter = "130,132,245" |
Verifying that +wgblondel is my blockchain ID. https://onename.com/wgblondel |