Right now it just deals with encoding integers to an arbitrary base.
Ported from a 2013 repository.
FULL DISCLOSURE: It's pretty unreliable due to rounding errors.
Error Example:
var b = require("./base_encode");
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
#!/usr/bin/env bash | |
cd ~/Desktop | |
YOUR_DESKTOP_FOLDER=`pwd` # Mac | |
mkdir output | |
docker run --rm -v $YOUR_DESKTOP_FOLDER:/codemaat code-maat -l /codemaat/git.log -c git -a age > output/age.csv | |
docker run --rm -v $YOUR_DESKTOP_FOLDER:/codemaat code-maat -l /codemaat/git.log -c git -a abs-churn > output/abs-churn.csv | |
docker run --rm -v $YOUR_DESKTOP_FOLDER:/codemaat code-maat -l /codemaat/git.log -c git -a author-churn > output/author-churn.csv | |
docker run --rm -v $YOUR_DESKTOP_FOLDER:/codemaat code-maat -l /codemaat/git.log -c git -a authors > output/authors.csv |
let prop = new Proxy({}, { get: (_, name) => (obj) => obj[name] }); | |
let foods = [ | |
{ name: 'hotdog', isHotdog: true }, | |
{ name: 'pizza', isHotdog: false }, | |
{ name: 'spaghetti', isHotdog: false } | |
]; | |
console.log(foods.map(prop.name)); |
#include <iostream> | |
#include <fstream> | |
#include <unordered_set> | |
#include "absl/flags/flag.h" | |
#include "absl/flags/parse.h" | |
#include "absl/strings/str_cat.h" | |
#include "absl/strings/string_view.h" | |
ABSL_FLAG(std::string, file_path, "", "full file path for input file"); |
<div id="root"></div> |