Skip to content

Instantly share code, notes, and snippets.

View tkissing's full-sized avatar

Timo Kissing tkissing

  • Orange County, CA
  • 20:22 (UTC -07:00)
View GitHub Profile
const chai = require('chai');
module.exports = (t) => {
return Object.keys(chai.assert).reduce((prev, curr) => {
let assertion = chai.assert[curr];
if (typeof assertion == 'function') {
prev[curr] = (...args) => {
try {
assertion.apply(chai.assert, args);
@tkissing
tkissing / .bashrc
Created May 16, 2017 19:40
Bash function to clone a repo into ~/Stash/${PROJECT}/${REPO} and run `npm i` in it all in one go (pass clone URL as argument)
stashclone() {
if [[ "${1}" =~ \/([^\/]+)\/([^\/]+).git$ ]]; then
PROJ=`echo "${BASH_REMATCH[1]}" | awk '{ print toupper($1); }'`
REPO="${BASH_REMATCH[2]}"
PDIR="${HOME}/Stash/${PROJ}"
RDIR="${PDIR}/${REPO}"
if [ -d "${RDIR}" ]; then
echo "${RDIR} is already there"
@tkissing
tkissing / eve_echoes_material_names.json
Created April 28, 2023 19:58
Mapping of Eve Echoes material and blueprint ids to Englisch names
{
"11000020024": "Coreli C-Type Small Rifled Railgun",
"11000120024": "Corelum C-Type Medium Rifled Railgun",
"11000220024": "Core C-Type Large Rifled Railgun",
"11000320024": "Core C-Type Capital Rifled Railgun",
"11000520024": "Coreli C-Type Small Snubnosed Railgun",
"11000620024": "Corelum C-Type Medium Snubnosed Railgun",
"11000720024": "Core C-Type Large Snubnosed Railgun",
"11000850024": "Core C-Type Capital Snubnosed Railgun",
"11002110024": "Centii C-Type Small Beam Laser",
@tkissing
tkissing / eve_echoes_recipes.json
Last active April 29, 2023 01:12
List of Eve Echoes recipes (manufacturing and reverse engineering) based on version_code 159 version_name 1.9.69
This file has been truncated, but you can view the full file.
[
{
"blueprint": "Griffin Blueprint",
"money": 200000,
"output_num": 1,
"time": 1000,
"product_type_id": 10100000101,
"material": {
"Tritanium": 38634,
"Pyerite": 9642,