Skip to content

Instantly share code, notes, and snippets.

View rkwofford's full-sized avatar

Richard Wofford rkwofford

  • Ringoes, New Jersey, USA
View GitHub Profile
@ityonemo
ityonemo / algebra.jl
Last active October 9, 2017 16:29
AST-fun with julia
function simplify(e::Expr)
if e.head == :call
if e.args[1] == :+
simplify_add(e)
end
end
end
function simplify_add(e::Expr)
terms = Dict{Symbol, Int}()
@randyzwitch
randyzwitch / punchcard.json
Created April 29, 2016 20:50
Vega GitHub-style punchcard
{"name":"Vega Visualization","height":300,"padding":"auto","marks":[{"properties":{"enter":{"shape":{"value":"circle"},"x":{"field":"x","scale":"x"},"size":{"mult":30,"field":"y2"},"fill":{"field":"group","scale":"group"},"y":{"field":"y","scale":"y"}}},"from":{"data":"table_dcsw3"},"type":"symbol"}],"axes":[{"layer":"front","offset":20,"properties":{"axis":{"strokeWidth":{"value":0}},"title":{"fontSize":{"value":14}}},"title":"","grid":false,"type":"x","scale":"x","tickSize":0},{"layer":"front","offset":20,"properties":{"axis":{"strokeWidth":{"value":0}},"title":{"fontSize":{"value":14}}},"title":"","grid":false,"type":"y","scale":"y","tickSize":0}],"data":[{"name":"table_dcsw3","values":[{"x":0,"y2":0,"group":1,"y":"Sunday"},{"x":1,"y2":0,"group":1,"y":"Sunday"},{"x":2,"y2":0,"group":1,"y":"Sunday"},{"x":3,"y2":0,"group":1,"y":"Sunday"},{"x":4,"y2":0,"group":1,"y":"Sunday"},{"x":5,"y2":17,"group":1,"y":"Sunday"},{"x":6,"y2":2,"group":1,"y":"Sunday"},{"x":7,"y2":16,"group":1,"y":"Sunday"},{"x":8,"y2":7,"grou
@jasongilman
jasongilman / atom_clojure_setup.md
Last active May 11, 2024 02:25
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

@baraldilorenzo
baraldilorenzo / readme.md
Last active January 14, 2025 11:07
VGG-16 pre-trained model for Keras

##VGG16 model for Keras

This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition

K. Simonyan, A. Zisserman

(require 'cljs.repl)
(require 'cljs.closure)
(require 'cljs.repl.browser)
(require 'cljs.repl.node)
(defonce target (first *command-line-args*))
(defonce action (second *command-line-args*))
(defonce build (if (= action "watch")
cljs.closure/watch
@kevindavenport
kevindavenport / 35-hour_workweek_with_python.ipynb
Created February 1, 2015 00:06
35-hour_workweek_with_python.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dannyko
dannyko / README.md
Last active September 14, 2015 13:01
Inner-Product Visualization (2D)

Inner-product Visualization (2D)

This is a visualization of the inner (dot) product of two vectors in two-dimensional Euclidean space.

See this page on LinkedIn for a longer description.

It shows the geometric definition of the inner product of two vectors

(a, b) = |a| |b| cos θ

@runexec
runexec / Clojure Does Objects Better.clj.md
Last active June 17, 2020 03:47
Clojure Does Objects Better

Clojure does Objects Better

A hopefully short and concise explanation as to how Clojure deals with Objects. If you already write Clojure, this isn't for you.

You know what an Interface is if you write/read Java or PHP 5+. In Clojure it might be called defprotocol.

user> (defprotocol IABC
        (also-oo [this])
        (another-fn [this x]))

IABC

@scientific-coder
scientific-coder / FizzBuzz.cxx
Created October 24, 2014 15:34
FizzBuzz in C++ with some influence ☺
#include <iostream>
#include <iterator>
#include <string>
#include <tuple>
#include <functional>
#include "transducers.hxx"
#include "tuple_reader.hxx"
// usage: seq 1 20 |./FizzBuzz 3 Fizz 5 Buzz
(ns biology.core
(:use hard.core hard.input hard.tween unity.messages)
(:require unity.core))
(defn scene-spermwhale [_]
(add [(find-name "Main Camera") :y] -3000 3 (fn [_] (load-scene "spermwhale"))))
(defn scene-options [_]
(add [(find-name "Main Camera") :x] -20 1 (fn [_] (load-scene "spermwhale"))))