Skip to content

Instantly share code, notes, and snippets.

View PlumpMath's full-sized avatar
๐Ÿ 
Pro

PlumpMath

๐Ÿ 
Pro
View GitHub Profile
@santoshrajan
santoshrajan / server.ls
Created August 11, 2012 05:52
A LispyScript Server example with nodejs, expressjs, twitter bootstrap
;; http://lispyscript.com
;; LispyScript example using nodejs, expressjs and twitter bootstrap
;; LispyScript templates are written in LispyScript!
;; Html5 templates support all html5 tags
;; The express server
(var express (require "express"))
(var app (express))
(app.listen 3000)
@HairyFotr
HairyFotr / gist:4995607
Created February 20, 2013 13:38
Scala Clojure interop wrapper
class ClojureWrap(ns: String, objName: String) {
import clojure.lang.{RT,Var}
import scala.collection.mutable.HashMap
RT.loadResourceScript(objName+".clj")
val obj = ns+"."+objName
val funcs = new HashMap[String, Var]
def /(func: String, a: Any): Object =
funcs.getOrElseUpdate(func, RT.`var`(obj, func)).invoke(a.asInstanceOf[Object])
@weavejester
weavejester / gist:5484183
Created April 29, 2013 19:45
jMonkeyEngine in Clojure example
(ns jme3-example.core
(:import com.jme3.app.SimpleApplication
com.jme3.material.Material
com.jme3.math.Vector3f
com.jme3.scene.Geometry
com.jme3.scene.shape.Box
com.jme3.texture.Texture))
(defn application
"Create an jMonkeyEngine application."
@GanWeaving
GanWeaving / gist:6774583
Last active December 22, 2019 21:32
Orbiting circles
int steps = 40;
Orbiter[] Orb = new Orbiter[steps]; // tmpX, tmpY, tmpOff, tmpDiam, tmpIncr
float r = 0;
float rad, off;
float the = 0;
void setup() {
float x, y;
size(500, 500);
background(0);
@aksakalli
aksakalli / SimpleHTTPServer.cs
Last active July 12, 2025 01:31
SimpleHTTPServer in C#
// MIT License - Copyright (c) 2016 Can Gรผney Aksakalli
// https://aksakalli.github.io/2014/02/24/simple-http-server-with-csparp.html
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;
@leblowl
leblowl / idb.cljs
Created February 13, 2015 02:00
simple clojurescript interface to IndexedDB for github.com/leblowl/lokate
(def db (atom nil))
(defn error [e]
(.error js/console "An IndexedDB error has occured!" e))
(defn new [cb]
(let [version 1
request (.open js/indexedDB "lokate" version)]
(set! (.-onupgradeneeded request) (fn [e]
(reset! db (.. e -target -result))
@sigmadream
sigmadream / install_qt5_for_brew.md
Last active March 26, 2022 06:18
OSX์—์„œ qt5๋ฅผ ์„ค์น˜ํ•˜๋Š” ๊ฐ„๋‹จํ•˜๊ณ  ์•„๋ฆ„๋‹ค์šด ๋ฐฉ๋ฒ•์— ๊ด€ํ•˜์—ฌ..

OSX์—์„œ 'brew'์™€ ํ•จ๊ป˜ํ•˜๋Š” qt5 ์„ค์น˜

0. ์ธํ„ฐ๋„ท์— ์—ฐ๊ฒฐ

  • ์ˆ˜๋‹จ๊ณผ ๋ฐฉ๋ฒ•์„ ๊ฐ€๋ฆฌ์ง€ ๋ง๊ณ  ๋„คํŠธ์›Œํฌ์— ์—ฐ๊ฒฐํ•˜์—ฌ, ์ธํ„ฐ๋„ท์ด ๊ฐ€๋Šฅํ•˜๋„๋ก ํ™˜๊ฒฝ์„ ๊ตฌ์„ฑํ•œ๋‹ค.

1. Xcode ์ตœ์‹ ๋ฒ„์ „

  • 'App Store'์— ๊ฐ€์…”์„œ Xcode ์ตœ์‹ ๋ฒ„์ „์„ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. ๋‹จ์ˆœํ•˜๊ฒŒ ์„ค์น˜๋งŒ ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

2. brew ์„ค์น˜ํ•˜๊ธฐ

  • 'Launchpad' - '๊ธฐํƒ€' - 'ํ„ฐ๋ฏธ๋„'์„ ์‹คํ–‰ํ•œ๋‹ค.
@datakurre
datakurre / .gitignore
Last active December 29, 2022 10:29
Minimal Nix Docker
*.tar.gz
.sentinel.*
@mbbx6spp
mbbx6spp / 00README.adoc
Last active February 8, 2021 01:39
My ${HOME}/.nixpkgs/config.nix to setup my dev and desktop environments the way I like them :)

User env setup

Setup your user environment just the way you want with Nix.

  1. Add packageOverrides to the attrset returned by your ${HOME}/.nixpkgs/config.nix (see my example above).

  2. Then with one command you can setup your whole environment: nix-env -i desktop-mbbx6spp.

Then all you need is a simple ~/.bash_profile script like so:

@postspectacular
postspectacular / canvas.cljs
Created May 1, 2016 23:20
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]