Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
// part 1 | |
read_file("Downloads/input.txt") | |
|> List.map(Str.split(Str.regexp("[ \t]+"))) | |
|> List.map(List.map(int_of_string)) | |
|> List.map( | |
(l) => | |
List.fold_left( | |
((mn, mx), cur) => (min(mn, cur), max(mx, cur)), | |
(List.hd(l), List.hd(l)), | |
l |
This file contains hidden or 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
l = require("lodash"); | |
var a = ["Admiring", "Adoring", "Affectionate", "Appreciative", "Approving", "Bemused", "Benevolent", "Blithe", "Calm", "Casual", "Celebratory", "Cheerful", "Comforting", "Comic", "Compassionate", "Complimentary", "Conciliatory", "Confident", "Contented", "Delightful", "Earnest", "Ebullient", "Ecstatic", "Effusive", "Elated", "Empathetic", "Encouraging", "Euphoric", "Excited", "Exhilarated", "Expectant", "Facetious", "Fervent", "Flippant", "Forthright", "Friendly", "Funny", "Gleeful", "Gushy", "Happy", "Hilarious", "Hopeful", "Humorous", "Interested", "Introspective", "Jovial", "Joyful", "Laudatory", "Kind", "Kinky", "Klutzy", "Kitschy", "Kosher", "Light", "Lively", "Mirthful", "Modest", "Nostalgic", "Optimistic", "Passionate", "Placid", "Playful", "Poignant", "Proud", "Reassuring", "Reflective", "Relaxed", "Respectful", "Reverent", "Romantic", "Sanguine", "Scholarly", "Self-assured", "Sentimental", "Serene", "Silly", "Sprightly", "Straightforward", "Sympathetic", "Tender", "Tranquil" |
This file contains hidden or 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 om-transition.core | |
(:require [om.core :as om :include-macros true] | |
[om.dom :as dom :include-macros true])) | |
(enable-console-print!) | |
(def ctg (aget js/React "addons" "CSSTransitionGroup")) | |
(def app-state (atom ["test"])) |
This file contains hidden or 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 friend-oauth | |
(:require | |
[cemerick.friend :as friend] | |
[cemerick.friend.workflows :refer [make-auth]] | |
[clj-http.client :as client] | |
[oauth.client :as oauth] | |
[ring.util.request :as request])) | |
(defn- which-oauth-uri | |
[config request] |