Skip to content

Instantly share code, notes, and snippets.

View minikomi's full-sized avatar
🍕
I like pizza

Adam Moore minikomi

🍕
I like pizza
View GitHub Profile
fzbz: {$[0=(15!x) ; "fizzbuzz";
0=(3!x) ; "fizz" ;
0=(5!x) ; "buzz" ;
$x]}
fizzbuzz: {[n] fzbz ' ( 1 + !n)}

Keybase proof

I hereby claim:

  • I am minikomi on github.
  • I am minikomi (https://keybase.io/minikomi) on keybase.
  • I have a public key ASAwYgq8nFEK2pJUzhTjhxk8yvoI-rqrOZwUlD4nPJn_wAo

To claim this, I am signing this object:

;;; blue-theme.el --- Emacs theme with a light background.
;; Copyright (C) 2014 , adam
;; Author: adam
;;
;; Version: 0.1
;; Package-Requires: ((emacs "24"))
;; Created with emacs-theme-generator, https://github.com/mswift42/theme-creator.
(ns fractal.core
(:require [arcadia.core :as a]
[arcadia.linear :as l])
(:import
[UnityEngine Mesh
Material Time MeshFilter WaitForSeconds
MonoBehaviour
Color
MeshRenderer Shader]
[System.Collections IEnumerator]
@minikomi
minikomi / How-to-Win-Friends-and-Influence-People.md
Created October 19, 2016 02:57 — forked from justincampbell/How-to-Win-Friends-and-Influence-People.md
Principles of How to Win Friends and Influence People

How to Win Friends and Influence People

Fundamental Techniques in Handling People

  1. Don't criticize, condemn, or complain.
  2. Give honest and sincere appreciation.
  3. Arouse in the other person an eager want.
  4. Never show others that you are not interested in what they have to say.
@minikomi
minikomi / split.j
Created April 19, 2016 07:53
split string on "changes" in j
((1,(,/@(2 ({:~:}:)\]))) <;.1 ]) '12234334444'
┌─┬──┬─┬─┬──┬────┐
│1│22│3│4│33│4444│
└─┴──┴─┴─┴──┴────┘
#!/usr/bin/python
# -*- coding: utf-8 -*-
import glob
from tempfile import mkstemp
from shutil import move
from os import remove, close
import re
def replace(file_path, pattern, subst):
fh, abs_path = mkstemp()
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
if (p < 0.5)
return 0.5 * pow(2*p, g);
// by d whyte
int[][] result;
float t;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
/radius 0 def
/currentgray 1 def
/pagewidth currentpagedevice /PageSize get 0 get def
/pageheight currentpagedevice /PageSize get 1 get def
/incRadius {
/radius radius 6 add def
} def