a/o 2020-05-29
--
- Restart with Cmd-R or Cmd-D
- Erase drive / 3x if second-hand
- Reinstall MacOS
// This template should ONLY be used for DEVELOPMENT | |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
uniform vec3 color; |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
#define PI 3.14159265358979323 | |
#define POW2(X) X*X | |
#define POW3(X) X*X*X | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
uniform int endx; |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
// General parameters | |
uniform sampler2D from; | |
uniform sampler2D to; | |
uniform float progress; | |
uniform vec2 resolution; | |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
// General parameters | |
uniform sampler2D from; | |
uniform sampler2D to; | |
uniform float progress; | |
uniform vec2 resolution; | |
// Fonts mixin | |
font-url(file) | |
return '../fonts/' + file | |
webfont(family, file, hack-chrome-windows = false, weight = 'normal') | |
@font-face | |
font-family family | |
src url(font-url(file + '.eot')) | |
src url(font-url(file + '.eot?#iefix')) format('embedded-opentype'), | |
url(font-url(file + '.woff')) format('woff'), |
Class Rectangle | |
val rectWrites = ( | |
(__ \ 'width).write[Long] and | |
(__ \ 'height).write[Long] and | |
(__ \ 'x).write[Long] and | |
(__ \ 'y).write[Long] | |
)( (r: Rectangle) => (r.width, r.height, r.x, r.y) ) |
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
<!DOCTYPE html> | |
<canvas id="game" width="600" height="400"></canvas> | |
<script id="fragment" type="x-shader/x-fragment"> | |
precision mediump float; | |
uniform vec2 resolution; | |
uniform float time; | |
struct Ball { |
(use '[clojure.core.logic]) | |
(require '[clojure.core.logic.fd :as fd]) | |
(defn simple [] | |
(run* [x y] | |
(fd/in x y (fd/interval 0 9)) | |
(fd/eq | |
(= (+ x y) 9) | |
(= (+ (* 4 x) (* 2 y)) 24)))) |