I hereby claim:
- I am jkxyz on github.
- I am jkxyz (https://keybase.io/jkxyz) on keybase.
- I have a public key ASDHJCdQ0EbGsGG_VSwzDpvWxy9ls1NjRTGTXfWDZaiTMQo
To claim this, I am signing this object:
(ns tailwind | |
(:require | |
[clojure.spec.alpha :as s])) | |
(defn- parse-map [m] | |
(reduce | |
(fn [classes [k v]] | |
(cond | |
;; If v is another collection of classes, we prepend k as the variant | |
;; prefix for all of the classes in v, e.g. |
I hereby claim:
To claim this, I am signing this object:
(ns forth.core | |
"Forth in Clojure" | |
(:require [clojure.test :refer [deftest is are]])) | |
(defn npop | |
"Returns a list without the first n items by applying pop repeatedly." | |
[n coll] | |
((apply comp (repeat n pop)) coll)) | |
(defn ffn |
<!doctype html> | |
<html> | |
<head> | |
<title>Chord Randomiser</title> | |
<style type="text/css"> | |
body, html { margin: 0; padding: 0; background: #fff; font: 19pt serif; } | |
div#outer { width: 300px; margin: 0 auto; padding-top: 50px; text-align: center; } | |
div#key, div#chord, div#type { font-weight: bold; position: absolute; top: 49px; } | |
div#key { margin-left: 125px; } | |
div#chord { margin-left: 230px; } |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
#include <editline/readline.h> | |
#include "mpc.h" | |
typedef enum { |
// Implements a standard library function `atoi` which returns an | |
// int for an input string. Also contains functions to calculate | |
// the length of a string and the value of an exponent expression. | |
#include <stdio.h> | |
unsigned int | |
str_length(const char str[]) | |
{ | |
int len; |
-module(periods). | |
-export([get_periods/1, dummy_data/0]). | |
%% Dummy data for demonstration purposes | |
dummy_data() -> [{1, 3}, {2, 10}, {10, 11}, {20, 23}, {21, 23}, {21, 23}, {50, 51}]. | |
%% Returns a list of continuous periods within a sorted list of periods | |
%% i.e. [{1,4},{3,5},{6,7}] -> [{6,7},{1,5}] | |
%% This was largely written to demonstrate how to solve a problem functionally to my boyfriend | |
get_periods(Periods, Period, []) -> |