Skip to content

Instantly share code, notes, and snippets.

Christopher Dieringer cdaringe

Block or report user

Report or block cdaringe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View multiline-format.rs
let queryTemplate = r###"
{
user (login: "{owner}") {
repositoriesContributedTo(first: 5) {
edges {
node {
id
nameWithOwner
}
}
View gatsby-config.js
const markdown = [
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: { maxWidth: 590 }
},
@cdaringe
cdaringe / react-super-hoc-design.md
Last active Aug 15, 2018
react-super-hoc-design
View react-super-hoc-design.md

problem

higher-order components must provide

  • easily extensible layouts
  • good default components
  • mechanisms to control default components
  • easily extensible/swappable components

providing a "free" high-level tree of components whilst offering low-level extensibility can

View gist:2181b72aa7d698e32e03d40da9154324
"cc" "-m64" "-L"
"/Users/cdieringer/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib"
"/Users/cdieringer/node/clipster/native/target/debug/deps/clippy_rust.16u6js6g0l3k1ic6.rcgu.o"
"/Users/cdieringer/node/clipster/native/target/debug/deps/clippy_rust.181cuta0v63atwcm.rcgu.o"
"/Users/cdieringer/node/clipster/native/target/debug/deps/clippy_rust.1im38lueib99jsk0.rcgu.o"
"/Users/cdieringer/node/clipster/native/target/debug/deps/clippy_rust.1jnlhyxj59jycbjv.rcgu.o"
"/Users/cdieringer/node/clipster/native/target/debug/deps/clippy_rust.1mnipzq70fk1uuwb.rcgu.o"
"/Users/cdieringer/node/clipster/native/target/debug/deps/clippy_rust.1rbjies67ajfbn12.rcgu.o"
"/Users/cdieringer/node/clipster/native/target/debug/deps/clippy_rust.1y16o1qfye96o7m0.rcgu.o"
"/Users/cdieringer/node/clipster/native/target/debug/deps/clippy_rust.1zwd8n7bcl3vhvvh.rcgu.o"
@cdaringe
cdaringe / console-terminal-task-graph.js
Created Mar 3, 2018
console-terminal-task-graph.js
View console-terminal-task-graph.js
var simpleTree = {
a: {
dependsOn: [
'b',
'x'
]
},
x: {
dependsOn: [
'y'
View mod.rs
#[get("/thing")]
fn thing<'a>() -> content::Json<&'static str> {
let res : String = SOME_JSON_VALUE.dump();
return content::Json(res.as_str());
}
error[E0597]: `res` does not live long enough
--> src/main.rs:33:26
|
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<title>Form Bugs</title>
</head>
<body>
<form id='wacky-form'>
@cdaringe
cdaringe / my-best-guesser-thing.py
Created Nov 15, 2017
make a model and predict hypothetical max on-the-fly
View my-best-guesser-thing.py
import sys
import json
from sklearn import linear_model
import numpy as np
from scipy.optimize import basinhopping
from sklearn.preprocessing import PolynomialFeatures
from sklearn.pipeline import make_pipeline
class Guess:
View bumpme
Thu Jun 22 19:33:48 UTC 2017
@cdaringe
cdaringe / index.js
Created Feb 3, 2017
vscode-hover-wrong-variable-data.js
View index.js
// install rxjs
// configure vscode to run this file
const Rx = require('rxjs')
const { Observable } = Rx
const EventEmitter = require('events')
const myEmitter = new EventEmitter()
const START_REGISTRATIONS_POLL = 'START_REGISTRATIONS_POLL'
const STOP_REGISTRATIONS_POLL = 'STOP_REGISTRATIONS_POLL'
You can’t perform that action at this time.