Skip to content

Instantly share code, notes, and snippets.

View PlumpMath's full-sized avatar
🏠
Pro

PlumpMath

🏠
Pro
View GitHub Profile
@PlumpMath
PlumpMath / three.cljs
Created April 11, 2017 17:10 — forked from rm-hull/three.cljs
Simple demonstration of using THREE.js with ClojureScript [from a fork of https://gist.github.com/spacemanaki/1157978], now working with thanks to @seabre
(ns three.demo
(:require [THREE :as THREE]))
(def camera
(THREE/PerspectiveCamera.
75
(/ 800 600)
1
10000))
@PlumpMath
PlumpMath / ProcessWrapper.cs
Created April 12, 2017 04:17 — forked from corngood/ProcessWrapper.cs
C# Process wrapper
using System;
using System.Diagnostics;
using System.Linq;
static class Program {
static int Main(string[] args) {
var p = new ProcessStartInfo {
FileName = args[0],
// TODO: quote args
Arguments = String.Join(" ", args.Skip(1).ToArray()),
@PlumpMath
PlumpMath / edit-map.diff
Created April 20, 2017 13:38 — forked from reklis/edit-map.diff
SVG map changes
diff --git a/ElectionMeterDemo/Images/Map.svg b/ElectionMeterDemo/Images/Map.svg
index 46ccbd3..4b73095 100644
--- a/ElectionMeterDemo/Images/Map.svg
+++ b/ElectionMeterDemo/Images/Map.svg
@@ -11,9 +11,10 @@
height="593"
id="svg2"
sodipodi:version="0.32"
- inkscape:version="0.46"
- sodipodi:docname="United States WIP.svg"
#pragma once
// This provides a library for stubbing and mocking C++ code as is. It works by requiring
// explicit hooks to be inserted into the code that is to be mocked. In a regular build,
// these hooks will do nothing. In a testing build, they will expand to calls into the
// framework here to allow the code being executed to be hijacked from outside.
//
// NOTE: Thread-safety! Arranging fakes must be done on a single thread. Using fakes can
// be done from multiple threads concurrently.
//
private IEnumerator UpdateMesh()
{
while (true)
{
Vector3 min = Vector3.zero;
Vector3 max = Vector3.zero;
var filters = mapping.GetMeshFilters();
text.text = "";
@PlumpMath
PlumpMath / django-test-easy-and-fast.md
Created August 27, 2017 18:45 — forked from perhapsspy/django-test-easy-and-fast.md
Django에서 Test 쉽고 빠르게 하기
@PlumpMath
PlumpMath / MyWPFUI.xaml
Created November 9, 2017 14:15 — forked from schuster-rainer/MyWPFUI.xaml
Clojure.Compile a ClojureCLR script with gen-class and a WPF UI into an executable console app
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="My WPF UI" Height="300" Width="300">
<StackPanel Margin="5">
<StackPanel>
<Label Content="Prename:" />
<TextBox x:Name="preName" MinWidth="50"/>
</StackPanel>
<StackPanel>
<Label Content="Surename:" />
@PlumpMath
PlumpMath / canvas.cljs
Created January 31, 2019 16:56 — forked from postspectacular/canvas.cljs
Reagent canvas component
(ns canvas
(:require
[thi.ng.geom.gl.webgl.animator :as anim]
[reagent.core :as reagent]))
(defn canvas-component
[props]
(reagent/create-class
{:component-did-mount
(fn [this]