I hereby claim:
- I am jrimbault on github.
- I am jrimbault (https://keybase.io/jrimbault) on keybase.
- I have a public key ASCJbccC_OQIOWePapelONQSO9ZVchrtOOYwJ2ogQ1BS2wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
#/ Script Name: template.sh | |
#/ Author: jRimbault | |
# Date: 2017-04-06 | |
#/ | |
#/ Description: | |
#/ This is a template file meant to be used for all my future | |
#/ bash scripting. | |
#/ | |
#/ Error Log: |
/** | |
* Trigger callback when the user inputs the konami code | |
* @param {Function} callback | |
* @returns {Function} event handler | |
*/ | |
function konami(callback) { | |
'use strict' | |
let kkeys = [] | |
// up,up,down,down,left,right,left,right,B,A | |
const konami = '38,38,40,40,37,39,37,39,66,65' |
#!/usr/bin/env node | |
const fs = require('fs') | |
const fileinput = { | |
/** | |
* Basic behavior of python's method of the same name | |
* @returns string[] lines of the file passed as an argument or piped | |
*/ |
""" Script to quickly generate some classic TTRPG character's attributes """ | |
import argparse | |
import random | |
import textwrap | |
from typing import Iterator | |
def rolling_methods(): | |
""" |
use std::fs; | |
use std::io; | |
use std::path::PathBuf; | |
use structopt::{clap::ArgGroup, StructOpt}; | |
#[derive(Clone, StructOpt, Debug)] | |
#[structopt(group = ArgGroup::with_name("action").required(true))] | |
struct Arguments { | |
/// File containing a G4C key | |
key_file: PathBuf, |
#!/usr/bin/env python3 | |
import argparse | |
import csv | |
import os | |
import sys | |
from pathlib import Path | |
def main(args): |
#!/usr/bin/env python3 | |
"""Algorithm | |
1. read rows sorted by date : | |
- avg O(n log n) | |
- best O(n) | |
- worst O(n log n) | |
2. partition by name : O(n) | |
put all rows in buckets keyed by user id/name, |
public static class TypeExt | |
{ | |
public static string HumanReadableName(this Type self) | |
{ | |
return InnerHumanReadable(self).ToString(); | |
} | |
private static System.Text.StringBuilder InnerHumanReadable(Type self) | |
{ | |
if (!self.IsGenericType) |