(defprofile lagénorhynque
:id @lagenorhynque
:reading "/laʒenɔʁɛ̃k/"
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
class Quadrangle { | |
name: string; | |
width: number; | |
height: number; | |
constructor(name: string, width: number, height: number) { | |
this.name = name; | |
this.width = width; | |
this.height = height; | |
} | |
getArea(): number { |
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 bb | |
(ns list-repositories | |
(:require | |
[babashka.curl :as curl] | |
[cheshire.core :as cheshire] | |
[clojure.pprint :refer [pprint]] | |
[clojure.string :as str])) | |
(def auth-token (System/getenv "AUTH_TOKEN")) |
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 python | |
import os | |
import pprint | |
import requests | |
AUTH_TOKEN = os.getenv('AUTH_TOKEN') | |
GRAPHQL_QUERY = ''' | |
query ($query: String!, $last: Int) { |
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 bb | |
(ns github-graphql-api-client | |
(:require | |
[babashka.curl :as curl] | |
[cheshire.core :as cheshire] | |
[clojure.pprint :refer [pprint]])) | |
(def auth-token (System/getenv "AUTH_TOKEN")) | |
(def graphql-query |
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 bash | |
# npm install -g reveal-md | |
reveal-md the-world-of-labour-law.md --theme night --highlight-theme monokai-sublime -w "$@" |
(defprofile lagénorhynque
:id @lagenorhynque
:reading "/laʒenɔʁɛ̃k/"
(defprofile lagénorhynque
:id @lagenorhynque
:reading "/laʒenɔʁɛ̃k/"
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
dev> (require '[clojure.spec.alpha :as s] | |
'[clojure.spec.test.alpha :as stest]) | |
nil | |
dev> (defn twice [f x] | |
(f (f x))) | |
#'dev/twice | |
dev> (s/fdef twice | |
:args (s/cat :f (s/fspec :args (s/tuple integer?) | |
:ret integer?) | |
:x integer?) |