Skip to content

Instantly share code, notes, and snippets.

View NOTtheMessiah's full-sized avatar

B Cohen NOTtheMessiah

View GitHub Profile
@NOTtheMessiah
NOTtheMessiah / analemma.jl
Created March 21, 2022 17:04
Pluto notebook of the Analemma of the Sun at a given point on Earth
### A Pluto.jl notebook ###
# v0.18.1
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end
@NOTtheMessiah
NOTtheMessiah / neovim-gtk-default.nix
Last active July 28, 2021 08:22
Building neovim-gtk with Nix
with import <nixpkgs>{};
rustPlatform.buildRustPackage rec {
name = "neovim-gtk-unstable-${version}";
version = "2018-04-01";
src = fetchFromGitHub {
owner = "daa84";
repo = "neovim-gtk";
rev = "e67e03605d61881180c390dbc44b88430ebbd23d";
@NOTtheMessiah
NOTtheMessiah / webdriver.jl
Created August 31, 2016 07:12
Proof-of-Concept of WebDriver client in Julia, run with interactive tag :> julia -i webdriver.jl
using Requests
using JSON
using PyCall
# Global configuration
myHost = "localhost"
myPort = 4444
myPathPrefix = "/wd/hub"
# Types
@NOTtheMessiah
NOTtheMessiah / SpaceWar test
Created September 19, 2013 22:24
SpaceWar! Originally 40 pages of code written for the PDP-1 and rendered on an oscilloscope, this imitation version, written in Elm, is intended to serve as an example of how Functional Reactive Programming can be used for video games.
-- SpaceWar Elm by NOTtheMessiah (http://twitter.com/N0TtheMessiah)
--
-- Initial Commit
-- Todo: cleanup, graphics, scoreboard, options, respawn delay
--
-- Player 1 uses wasd and shift
-- Player 2 uses arrow keys and space
import Keyboard
import Window
@NOTtheMessiah
NOTtheMessiah / Dr. Krieger's ASCII Bound.ipynb
Created April 30, 2016 05:21
Clue from the Archer Scavenger Hunt
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am notthemessiah on github.
  • I am ntm (https://keybase.io/ntm) on keybase.
  • I have a public key whose fingerprint is B9BE BEF7 1B72 BE56 0D92 F47A 1C13 F5E4 04EA 3BEC

To claim this, I am signing this object:

@NOTtheMessiah
NOTtheMessiah / VerletODEIntegrator
Last active August 29, 2015 14:19
Verlet ODE Integrators
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#Verlet ODE Integrators\n",
"*note: this was transcribed from <http://www.physics.drexel.edu/~valliere/PHYS305/Diff_Eq_Integrators/Verlet_Methods/Verlet/>*\n",
"\n",
"The *Leapfrog integrator* belongs to a class of integrators commonly known as the Verlet ODE integration schemes. They are popular integrators that are widely used in Molecular Dynamics simulations. These are *N-body* simulations to model various systems from solids and gases to proteins. Electrons, atoms or molecules might constitute the building blocks in these models. Often, quantum effects are neglected for simplicity. Newton equations of motion, derived from his laws, are then solved for the motion of the N bodies under the influence of pair-wise (or more complicated) interactions.\n",