View p3.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Problem 3 | |
#![allow(unused)] | |
extern crate regex; | |
use std::default::Default; | |
use std::collections::HashMap; | |
use std::collections::HashSet; | |
use std::io::BufReader; | |
use std::io::BufRead; |
View MultiLinkedList.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
/* | |
Title: | |
Multiple Linked List Storage | |
Description: | |
Dynamic Storage Contract for storing multiple linked lists each | |
uniquely identified by a key. Implementation allows for |
View byte.cljc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns byte | |
"My own take on byte conversion. `(byte)` doesn't work with unsigneds | |
within clojure, and signed values don't work well within | |
clojurescript. Includes additional bitwise functions for working | |
specifically with bytes.") | |
(defn signed | |
"Signed byte that works between clojure and clojurescript. |
View hiccup2xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env eden | |
local help-message = " | |
hiccup2xml - Hiccup Markup to XML Markup | |
Usage: | |
hiccup2xml read <filename> | |
hiccup2xml eval <string> |
View ChefFactory.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.7; | |
contract ChefFactory { | |
event CreateChef(address _address); | |
struct Chef { | |
uint8 cooking_ability; // Personal Cooking Rating 1-10 | |
uint8 baddaboops; // Acquired Taste Rating 1-10 | |
} | |
View i3-config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! | |
# | |
# This config file uses keycodes (bindsym) and was written for the QWERTY | |
# layout. | |
# | |
# To get a config file with the same key positions, but for your current | |
# layout, use the i3-config-wizard | |
# |
View edn_linter.cljc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns edn-linter | |
;; require name of edn linter | |
(:require [the-name :refer [parse-with-info]] | |
(def input-string "[:a :b | |
{:test 123}]") | |
(def parsed-edn (parse-with-info input-string)) | |
;; {:line 0 | |
;; :type :vector |
View higher-order-fizzbuzz.fif
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; From reddit comments | |
;; https://www.reddit.com/r/Clojure/comments/8lizcb/rclojure_fizz_buzz_contest_hardmode/ | |
$clear-stack | |
doc higher-fizzbuzz | |
"( map seq -- seq ) Returns modified seq with map target factors." | |
fn higher-fizzbuzz | |
*xs <> setl | |
*m <> setl |
View fif-repl.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns website.fif-repl | |
(:require | |
[clojure.string :as str] | |
[rum.core :as rum] | |
[fif.core :as fif] | |
[fif.stack-machine :as stack] | |
[fif.stack-machine.error-handling :refer [set-error system-error]] | |
;; Nothing to see here | |
[website.repl-imports :refer [import-super-secret-words]])) |
View fizzbuzz.fif
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn fizz-buzz | |
*n <> setl | |
n 3 mod zero? | |
n 5 mod zero? and if "FizzBuzz" else | |
n 3 mod zero? if "Fizz" else | |
n 5 mod zero? if "Buzz" else | |
n | |
then then then | |
endfn |
NewerOlder