Skip to content

Instantly share code, notes, and snippets.


Massimo Santini mapio

Block or report user

Report or block mapio

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
sketchpunk / QuaterionSpring.js
Created Nov 17, 2018
Spring Physics - Oscillation and Critical Dampening on Quaternions
View QuaterionSpring.js
// Resources
// .. Has things about Torque
class QuaterionSpring{
constructor( damping=5, stiffness=30 ){
this.velocity = new Float32Array(4);
import types
import typing
import ast
import inspect
class TypeViolationError(TypeError):
def __init__(self, variable_name, expected_type, actual_type):
self.variable_name = variable_name
rcoh /
Last active May 23, 2019
An implementation of Google Authenticator Compatible 2-factor Codes
An implementation of TOTP as described in aka Google Authenticator Style 2-factor Auth
import base64
import datetime
import hashlib
import hmac
import sys
import struct
import time
jriguera /
Last active Jul 20, 2019
Delete Docker images on DockerHub
# Based on kizbitz/ at
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq':
# set username, password, and organization
bishboria /
Last active Nov 14, 2019
Springer made a bunch of books available for free, these were the direct links
omz / Dropbox File
Last active Sep 3, 2019
Dropbox File
View Dropbox File
# 1. Go to (log in if necessary)
# 2. Select "Create App"
# 3. Select the following settings:
# * "Dropbox API app"
# * "Files and datastores"
# * "(No) My app needs access to files already on Dropbox"
# * "All file types"
# * (Choose any app name)
aktau / imessage
Last active Sep 4, 2019
Send iMessage from the commandline
View imessage
if [ "$#" -eq 1 ]; then stdinmsg=$(cat); fi
exec <"$0" || exit; read v; read v; read v; exec /usr/bin/osascript - "$@" "$stdinmsg"; exit
-- another way of waiting until an app is running
on waitUntilRunning(appname, delaytime)
repeat until my appIsRunning(appname)
tell application "Messages" to close window 1
delay delaytime
end repeat
debasishg / gist:8172796
Last active Nov 4, 2019
A collection of links for streaming algorithms and data structures
View gist:8172796
  1. General Background and Overview
willurd /
Last active Nov 16, 2019
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
christophermanning / 50_top_paid_chicago_lobbyists.json
Last active May 3, 2018
Chicago Lobbyists Force-Directed Graph Visualization
View 50_top_paid_chicago_lobbyists.json
You can’t perform that action at this time.