You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it 😰
error: gpg failed to sign the data
fatal: failed to write commit object
Understand the error (important to solve it later!)
| from elasticsearch import Elasticsearch | |
| import json | |
| es = Elasticsearch('http://localhost:9200') | |
| q = { | |
| "query": { | |
| "match_all": {} | |
| } | |
| } |
| (ns messagepassing.core) | |
| (import [java.util.concurrent LinkedTransferQueue]) | |
| (def m 10000000) | |
| (defn queue-test [] | |
| (defn bounce [in out m] | |
| (let [value (.take in)] | |
| (if (< value m) | |
| (do |
Quick comparison to the cljs.loader recently added to CLJS.
Things shadow-cljs does for you:
enable-console-print! is a config option, you do not need to call itloader/set-loaded! will be injected for you as well| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <sys/mman.h> | |
| #include <unistd.h> | |
| #include <err.h> | |
| #include <sysexits.h> | |
| typedef int32_t (*fptr)(int32_t); |
(A book that I might eventually write!)
Gary Bernhardt
I imagine each of these chapters being about 2,000 words, making the whole book about the size of a small novel. For comparison, articles in large papers like the New York Times average about 1,200 words. Each topic gets whatever level of detail I can fit into that space. For simple topics, that's a lot of space: I can probably walk through a very basic, but working, implementation of the IP protocol.
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
| ;; An exercise in writing #'rest without [0-9a-zA-Z], by Tim McCormack | |
| ;; Note that the input must be a vector, although the code could easily be | |
| ;; modified to vector-ify any input coll. | |
| ;; Let's take this a step at a time... | |
| (#(((% 1) :main) %) ;; call the main method with the input and fns | |
| [[0 1 2 3 4 5] ;; the input is hardcoded here | |
| ;; fns are accessed by static indices into the fn table | |
| {:main #(if (= (% 0) []) |
| /** | |
| * More info? | |
| * [email protected] | |
| * http://aspyct.org | |
| * | |
| * Hope it helps :) | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |