Language | Url |
---|---|
https://repl.it | |
https://ideone.com/ | |
https://dotnetfiddle.net/ | |
Scala | https://scastie.scala-lang.org |
ScalaJS | https://scalafiddle.io/ |
Elm | http://elm-lang.org/try |
Elixir | http://elixirplayground.com |
R | http://www.r-fiddle.org |
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 common.astar | |
(:require [clojure.data.priority-map :refer [priority-map]])) | |
;; Based on: https://www.redblobgames.com/pathfinding/a-star/implementation.html#python-astar | |
(defn- build-path | |
"Returns the reconstructed path from the start to the goal." | |
[goal came-from] | |
(loop [path [], node goal] | |
(if-let [parent (came-from node)] |
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
<canvas id="$"></canvas><script> | |
// alias -1 (writing m is shorter than -1) | |
m=-1 | |
// resize canvas to screen through its global variable (created from its id) | |
w=$.width=innerWidth,h=$.height=innerHeight | |
// create image data for rendering | |
d=new ImageData(w,h) |
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
body, input, button { | |
color: #0a0a29; | |
font-family: 'Avenir Next','Lato','Helvetica Neue',Helvetica,Arial,sans-serif; | |
} | |
.navbar .navbar-inner { | |
background: white; | |
color: #0a0a29; | |
font-weight: 500; | |
padding: 8px; |
Reproducing types/sequelize/120. Run npm test
to see compile errors.
index.ts(14,3): error TS2345: Argument of type '{ scopes: { human: { slack_id: { $ne: string; }; }; }; }' is not assignable to parameter of type 'InitOptions'.
Property 'sequelize' is missing in type '{ scopes: { human: { slack_id: { $ne: string; }; }; }; }'.
index.ts(25,1): error TS2684: The 'this' context of type 'typeof Model' is not assignable to method's 'this' of type '(new () => Model) & typeof Model'.
Type 'typeof Model' is not assignable to type 'new () => Model'.
Cannot assign an abstract constructor type to a non-abstract constructor type.
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
function range(x) { | |
var xs = []; | |
for (var i = 0; i < x; i++) { | |
xs[i] = i; | |
} | |
return xs; | |
} | |
function distance(a, b) { | |
return ( |
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
@controls { | |
bottom { | |
filter { | |
target: connection; | |
default: select-all; | |
option { | |
label: "Marriages"; | |
selector: ['connection type'='marriage']; | |
} |
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
node_modules | |
*.log |
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 3.
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
name position state stance_1 date_1 quote_1 notes_1 link_1 stance_2 date_2 quote_2 notes_2 link_2 stance_3 date_3 quote_3 notes_3 link_3 image | |
Alexander, Lamar Senator TN voteForNominee 05/05/2016 politico asserts http://www.politico.com/story/2016/05/donald-trump-gop-endorsements-222894 a000360.jpg | |
Ayotte, Kelly Senator NH voteForNominee 04/05/2016 As she's said from the beginning, Kelly plans to support the nominee." Later Wednesday morning, however, spokeswoman Johnson added: "As a candidate herself, she hasn't and isn't planning to endorse anyone in this cycle." http://www.wmur.com/politics/wmur-first-after-trump-win-ayotte-plans-to-support-him-spokeswoman-says/39373086 antiTrump 08/10/2016 I will not vote for Donald Trump. https://twitter.com/KellyAyotte/status/784779876796665857 a000368.jpg | |
Barrasso, John Senator WY voteForNominee 05/05/2016 "No matter who we nominate, they're going to be better for Wyoming than Hillary Clinton or whoever the Democrats nominate." Also: "I'm going to c |
I hereby claim:
- I am danprince on github.
- I am danprince (https://keybase.io/danprince) on keybase.
- I have a public key whose fingerprint is DF59 9A8B EF34 8008 1598 FEE1 9C42 D72F 9BAF CEB4
To claim this, I am signing this object:
NewerOlder