I hereby claim:
- I am cmaher on github.
- I am cmaher_itbit (https://keybase.io/cmaher_itbit) on keybase.
- I have a public key whose fingerprint is 7AFA 253B C54F D0FD D5D8 2D40 1721 56F6 6CD7 2227
To claim this, I am signing this object:
import sys | |
import argparse | |
import pathlib | |
import subprocess | |
import os | |
import time | |
from mathutils import Vector | |
import math | |
try: | |
import bpy |
using System.Collections; | |
using System.Xml.Schema; | |
using UnityEngine; | |
// adapted from this series: https://catlikecoding.com/unity/tutorials/procedural-grid/ | |
public class BoxGridMesh : MonoBehaviour { | |
public int length; | |
public int width; |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
// Put this script in the Assets/Editor folder | |
namespace MaruEditor.Sprites { | |
// Select a bunch of sprites, and slice them all at once | |
public class BatchSpriteSlicer : EditorWindow { | |
[MenuItem("Maru/Slice Selected Sprites")] | |
static void Init() { |
#!/bin/bash -e | |
MAIN_REPO="EXTERNAL REPO GOES HERE" | |
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
PORT=${PORT:-8880} | |
mkdir -p ${CHARTPROXY_STORAGE} | |
# adapted from https://github.com/helm/chartmuseum/blob/master/scripts/mirror_k8s_repos.sh | |
update-mirror() { |
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name kill-clickbait | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Remove clickbait related articles | |
// @author cmaher | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
function savings(principal, rate, contributions, years) { | |
return (principal * ((1 + rate) ** years)) + (contributions * ((((1 + rate) ** years) - 1) / rate)) | |
} |
^`:: | |
IfWinExist, Hyper | |
{ | |
if WinActive("Hyper") | |
{ | |
Send !{Escape} | |
} | |
else | |
{ |
var cacheControl = new Backbone.Hoard.Control(); | |
var MyModel = Backbone.Model.extend({ | |
url: function () { | |
return '/my-models/' + this.id; | |
}, | |
sync: cacheControl.getModelSync() | |
}); |
# assumes GNU Sed | |
# for OSX: `brew install gnu-sed; alias sed=gsed` | |
# Known to work with Bacbone 1.1.2 | |
echo " import _ from 'lodash'; | |
var root = {}; | |
var Backbone = {}; | |
var $; | |
$(sed '/^\s*\/\/\s*Initial Setup\s*$/,/^\s*\/\/\s*Backbone.Model\s*$/{//!b};d' backbone.js) | |
export default Events;" > backbone.events.js |