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
Retrieving list of available libraries... | |
helm-M-x: Error in nrepl-refactor: clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter, compiling:(mranderson048/http_kit/v2v2v0/org/httpkit/client.clj:1:1) | |
at clojure.lang.Compiler.load (Compiler.java:7391) | |
clojure.lang.RT.loadResourceScript (RT.java:372) | |
clojure.lang.RT.loadResourceScript (RT.java:363) | |
clojure.lang.RT.load (RT.java:453) | |
clojure.lang.RT.load (RT.java:419) | |
clojure.core$load$fn__5677.invoke (core.clj:5893) | |
clojure.core$load.invokeStatic (core.clj:5892) | |
clojure.core$load.doInvoke (core.clj:5876) |
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
~/wp/red-tetris:no-branch*? λ curl http://0.0.0.0/4242 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 768 100 768 0 0 3282 0 --:--:-- --:--:-- --:--:-- 3282<HTML><HEAD> | |
<TITLE>Network Error</TITLE> | |
</HEAD> | |
<BODY> | |
<FONT face="Helvetica"> | |
<big><strong></strong></big><BR> | |
</FONT> |
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
import params from "../../params.js"; | |
import * as server from "./index.js"; | |
server.create(params.server).then(() => console.log("not yet ready")); |
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
import debug from "debug"; | |
import fs from "fs"; | |
const logError = debug("tetris:error"); | |
const logInfo = debug("tetris:info"); | |
const initApp = (app, params, cb) => { | |
const {host, port} = params; | |
const handler = (req, res) => { | |
console.log("handler"); |
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
;; event-db | |
(rf/reg-event-db | |
:auth/ok | |
(fn [db [_ resp]] | |
(assoc db :token (:access_token resp)))) | |
;; event-fx | |
(rf/reg-event-fx | |
:auth | |
(fn [{:keys [db]} _] |
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
(rf/reg-event-fx | |
:auth | |
(fn [{:keys [db]} _] | |
{:POST | |
{:url "https://api.intra.42.fr/oauth/token" | |
:on-success #(assoc db :token (:access_token %)) | |
:on-fail :auth-nok | |
:params | |
{:grant_type "client_credentials" | |
:client_id "secret" |
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
(rf/reg-fx | |
:POST | |
(fn [{:keys [url params on-success on-fail]}] | |
(take! (http/post url {:form-params params}) | |
on-success))) |
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
{ | |
"parser": "babel-eslint", | |
"plugins": [ "react" ], | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"rules": { | |
"consistent-return": [0], |
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
;;; spaceline-segments.el --- Segments for spaceline | |
;; This file is not part of GNU Emacs. | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or | |
;; (at your option) any later version. | |
;; This program is distributed in the hope that it will be useful, |
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
console.log(cache); | |
console.log(cache[0]); | |
console.log([[1], [2]]); | |
/* => [] | |
=> 0: Array[30] | |
length: 1 | |
__proto__: Array[0] | |
=> undefined | |
=> [Array[1], Array[1]]*/ |
NewerOlder