Skip to content

Instantly share code, notes, and snippets.

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

PlumpMath

๐Ÿ 
Pro
View GitHub Profile
@mfikes
mfikes / polyglot.md
Created April 30, 2018 03:02
Polyglot Graal from ClojureScript

You need to first install GraalVM, and then set your PATH so that you get the GraalVM binaries (incluing the GraalVM version of node).

You can then install R and Ruby via

gu -c install org.graalvm.r
gu -c install org.graalvm.ruby
@edolstra
edolstra / nix-lang.md
Last active October 23, 2025 06:51
Nix language changes

This document contains some ideas for additions to the Nix language.

Motivation

The Nix package manager, Nixpkgs and NixOS currently have several problems:

  • Poor discoverability of package options. Package functions have function arguments like enableFoo, but there is no way for the Nix UI to discover them, let alone to provide programmatic ways to
@TeMPOraL
TeMPOraL / config.scm
Created November 4, 2017 20:20 — forked from mbakke/config.scm
GuixSD with custom kernel
(define-module (my packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages linux)
#:use-module (guix build-system trivial)
#:use-module (gnu)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix packages))
(define (linux-nonfree-urls version)
@bellbind
bellbind / index.html
Last active March 30, 2023 22:25
[threejs] simplified gltf2 loader example
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script src="https://unpkg.com/three"></script>
<script
src="https://unpkg.com/three/examples/js/loaders/GLTF2Loader.js"
></script>
<script src="script.js" defer="defer"></script>
</head>
@wall72
wall72 / install_TensorFlow_on_Windows_10_Bash.md
Last active December 31, 2021 20:12
install TensorFlow on Windows 10 Bash (include graphiclib)

install TensorFlow on Windows 10 Bash (include graphiclib)

1. install packages

sudo apt-get update
sudo apt-get install -y --no-install-recommends \
        build-essential \
        libfreetype6-dev \
        libpng12-dev \
        libzmq3-dev \
@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]
@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:

@datakurre
datakurre / .gitignore
Last active December 29, 2022 10:29
Minimal Nix Docker
*.tar.gz
.sentinel.*
@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' - '๊ธฐํƒ€' - 'ํ„ฐ๋ฏธ๋„'์„ ์‹คํ–‰ํ•œ๋‹ค.
@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))