Skip to content

Instantly share code, notes, and snippets.


Wesley Aptekar-Cassels WesleyAC

Block or report user

Report or block WesleyAC

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
WesleyAC /
Created Mar 10, 2019
quick & dirty node.js dependency analysis tools
#!/usr/bin/env python3
# Copyright 2019 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
View .vimrc
" <3 Vim
" This is my .vimrc
" I'm still working on it...
set nocompatible
set rtp+=~/.vim/bundle/Vundle.vim
filetype off
WesleyAC / feed.xml
Last active Nov 6, 2018
Daily Musings
View feed.xml
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="">
<title>Wesley's Daily Musings</title>
<link href=""/>
<link rel="self" href=""/>
<name>Wesley Aptekar-Cassles</name>
WesleyAC /
Created Jan 2, 2017
A hacky script to generate a plot of a trapezoidal motion profile
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 10, 1000)
pdot = np.piecewise(x, [x < 4, (x >= 4) & (x <= 6), x > 6], [lambda x: x/2, 2, lambda x: -x/2 + 5])
p = []
psum = 0
for v in pdot:
WesleyAC /
Created Dec 30, 2016
Cracklepop in brainfuck
CracklePop in brainfuck
Memory architecture:
00: "\n"
01: "p"
02: "o"
03: "P"
04: "e"
05: "l"
06: "k"

Keybase proof

I hereby claim:

  • I am wesleyac on github.
  • I am wesleyac ( on keybase.
  • I have a public key whose fingerprint is 4F1A F97B 91DA C9DD F1F1 B0B9 4E9A A89C A3E0 93CE To claim this, I am signing this object:
    "body": {
        "client": {
WesleyAC / worldphysics.lua
Created Dec 13, 2013
WorldPhysics, my new, hacked together, feature creeped library for love!
View worldphysics.lua
world = {
physics = {
new = function(objtype, d, i, w, h, ubody, ushape)
if world.physics[objtype] == nil then world.physics[objtype] = {all = {}} end
world.physics[objtype].all[#world.physics[objtype].all+1] = {}
world.physics[objtype].all[#world.physics[objtype].all].body = ubody
world.physics[objtype].all[#world.physics[objtype].all].shape = ushape
world.physics[objtype].all[#world.physics[objtype].all].fixture = love.physics.newFixture(world.physics[objtype].all[#world.physics[objtype].all].body, world.physics[objtype].all[#world.physics[objtype].all].shape, d)
world.physics[objtype].all[#world.physics[objtype].all].image = i
world.physics[objtype].all[#world.physics[objtype].all].width = w
WesleyAC / build.log
Created Nov 11, 2013
Output of `/home/wesley/.cpanm/work/1384206407.5965/build.log` on Arch linux.
View build.log
cpanm (App::cpanminus) 1.7001 on perl 5.018000 built for i686-linux-thread-multi
Work directory is /home/wesley/.cpanm/work/1384206407.5965
You have make /usr/bin/make
You have LWP 6.05
You have /usr/bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
You can’t perform that action at this time.