(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| (ns evolvefn) ;; Lee Spector (lspector@hampshire.edu) 20111018 | |
| ;; This code defines and runs a genetic programming system on the problem | |
| ;; of finding a function that fits a particular set of [x y] pairs. | |
| ;; The aim here is mostly to demonstrate how genetic programming can be | |
| ;; implemented in Clojure simply and clearly, and several things are | |
| ;; done in somewhat inefficient and/or non-standard ways. But this should | |
| ;; provide a reasonable starting point for developing more efficient/ | |
| ;; standard/capable systems. |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| render | |
| for each particle | |
| x, y = particle.position | |
| color = sample( colorMap, x, y ) | |
| noise = sample( noiseMap, x, y ) | |
| angle = noise * PI * 2 | |
| particle.velocity.add( cos(angle), sin(angle) ) |
| --[[ | |
| SLURM job submit filter for QOS | |
| Some code and ideas pulled from https://github.com/edf-hpc/slurm-llnl-misc-plugins/blob/master/job_submit/job_submit.lua | |
| --]] | |
| --########################################################################-- | |
| -- |
| #!/bin/bash | |
| # Put into /lib/systemd/system-sleep/suspend-modules | |
| # chmod a+x /lib/systemd/system-sleep/suspend-modules | |
| # Create /etc/suspend-modules.conf | |
| # with one module per line | |
| # credits to: | |
| # https://bbs.archlinux.org/viewtopic.php?pid=1540125#p1540125 |
| #!/bin/sh | |
| # | |
| # Build GCC with support for offloading to NVIDIA GPUs. | |
| # | |
| work_dir=$HOME/offload/wrk | |
| install_dir=$HOME/offload/install | |
| # Location of the installed CUDA toolkit |
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| # Roughly based on: http://stackoverflow.com/questions/11443302/compiling-numpy-with-openblas-integration | |
| from __future__ import print_function | |
| import numpy as np | |
| from time import time |
| // note : if you're on github gist and want to copy paste this code, you can click on the "Raw" button | |
| // and then do Ctrl A, Ctrl C, Ctrl V | |
| // (code below by Kurt Spencer, slightly modified code to run as Processing tab) | |
| // maybe you should rather use this new (improved) version of the noise instead : https://github.com/KdotJPG/OpenSimplex2 | |
| /* | |
| * OpenSimplex Noise in Java. | |
| * by Kurt Spencer | |
| * | |
| * v1.1 (October 5, 2014) |