- JavaScript review (arrays, objects/maps)
- Corrections/Ommisions: script end tag required
- Array.size -> length
| (ns net.thegeez.advent.spec-parsing | |
| (:require [clojure.string :as str] | |
| [clojure.spec :as s] | |
| [clojure.spec.gen :as gen] | |
| [clojure.test.check.generators :as tgen])) | |
| ;; Dependencies: | |
| ;; [org.clojure/clojure "1.9.0-alpha14"] | |
| ;; [org.clojure/test.check "0.9.0"] | |
| ;; Advent of Code is a series of code challenges in the form of an advent |
| (require '[clojure.math.combinatorics :refer [combinations]]) | |
| (defn ∩-prob | |
| [a & more] | |
| (reduce * a more)) | |
| (defn ∪-prob [a b & more] | |
| "https://en.wikipedia.org/wiki/Inclusion%E2%80%93exclusion_principle#In_probability" | |
| (let [ps (concat [a b] more) | |
| n (count ps)] |
I wanted to enumerate the macros of cljs.core in ClojureScript. In general, it would not be needed for everyday ClojureScrit programming but I need it to author my debux library.
At first, I asked a question about this problem in Google Clojure Group but got no answers.
I decided to find the way by myself and finally found a way to enumerate the macros of cljs.core in Clojure REPL, so I want to share the exprerience with others here.
The functions of cljs.core are defined in src/main/cljs/cljs/core.cljs and the macros of cljs.core are defined in src/main/clojure/cljs/core.cljc. So you have to evaluate the src/main/clojure/cljs/core.cljc file in Clojure REPL, not in ClojureScript REPL, to get a list of the macros of cljs.core.
#Every Single Option Under The Sun
- optimization level options
- automatic crashing options
- debug info options
- swift internal options
- swift debug/development internal options
- linker-specific options
- mode options
All preferences for the DNS-over-HTTPS functionality in Firefox are located under the "network.trr" prefix (TRR == Trusted Recursive Resolver). The support for these are targeted for shipping in release Firefox 62.
set which resolver mode you want.
0 - Off (default). use standard native resolving only (don't use TRR at all)
1 - Race native against TRR. Do them both in parallel and go with the one that returns a result first.
| // Copyright(c) 2019 Nick Klingensmith (@koujaku). All rights reserved. | |
| // | |
| // This work is licensed under the terms of the MIT license. | |
| // For a copy of this license, see < https://opensource.org/licenses/MIT > | |
| #pragma once | |
| #include <stdio.h> | |
| #include <stdint.h> |
There are so many great GIFs out there and I want to have copies of them. Twitter makes that harder than it should be by converting them to MP4 and not providing access to the source material. To make it easier, I made a bash pipeline that takes a tweet URL and a filename, extracts the MP4 from that tweet and uses ffmpeg to convert back to GIF.
- ffmpeg
- macOS:
brew install ffmpeg - Ubuntu/Debian:
apt install ffmpeg
- macOS: