Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Dieringer cdaringe

View GitHub Profile
View json-compactor.ts
import * as fs from 'fs'
function isPrimitive (v: any) {
const tOfV = typeof v
if (tOfV === 'object') return false
if (v === null || tOfV === 'boolean' || tOfV === 'bigint' || tOfV === 'number' || tOfV === 'string' || tOfV === 'undefined') {
return true
}
return false
}
View path-demo.html
<style>
path {
stroke-dasharray: 100;
animation: dash 1.8s linear infinite;
}
@keyframes dash {
to {
stroke-dashoffset: 200;
}
}
View dummy.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ink-svg-woes.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw-web-output.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View svg-inkscape-debug.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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"
You can’t perform that action at this time.