- How do I understand the system of interest?
- Within that system, what phenomena am I interested in?
- What entities do I think are relevant for my model?
- How might I qualitatively describe entity relationships in the model? (Example: predators hunt prey, so predators should have some contribution to the reduction of prey.)
- What simplifications do I know I’m making?
- How can I express expectations of/predictions about the model? (E.g., with one wolf and 10 million rabbits, I don’t think there will be much of a predator effect. Or: here’s a sketch of the path I think this orbiting body might take. Or: based on my experiences with kerbal space program, I figure the object would take a path like this.)
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
<h1 id="thinking-about-learning-objectives-as-a-process-of-modeling">Thinking about learning objectives as a process of modeling</h1> | |
<h2 id="1---modeling-begins-before-you-ever-touch-a-computer">1 - Modeling begins before you ever touch a computer</h2> | |
<ul> | |
<li>How do I understand the system of interest?</li> | |
<li>Within that system, what phenomena am I interested in?</li> | |
<li>What entities do I think are relevant for my model?</li> | |
<li>How might I qualitatively describe entity relationships in the model? (Example: predators hunt prey, so predators should have some contribution to the reduction of prey.)</li> | |
<li>What simplifications do I <em>know</em> I’m making?</li> |
git remote prune origin
prunes tracking branches not on the remote. Run with a -n
flag to do a dry run. Source
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
class WrapperComponent extends React.Component { | |
render() { | |
const style = { border: "solid 1px " + this.props.color }; | |
return <div style={style}>{this.props.children}</div>; | |
} | |
} | |
class HelloMessage extends React.Component { | |
render() { | |
var Wrapper = this.props.wrapper; |
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
# Remove untagged docker images | |
docker rmi (docker images | awk '/<none>/ {print $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
# via https://stackoverflow.com/questions/7726949/remove-local-branches-no-longer-on-remote#28464339 | |
# prunes tracking branches not on the remote. | |
git remote prune origin | |
# lists branches that have been merged into the current branch. | |
git branch --merged | |
# deletes branches listed on standard input. | |
xargs git branch -d |
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
// Assuming the delta is entirely insert operations, | |
// this example wouuld convert bolded text to html bolded text. | |
// The key logic here is mapping over the insert ops, | |
// then joining the resulting array on the empty string | |
html = delta.slice(0, 500).ops.map(function(op) { | |
if (typeof op.insert !== 'string') return ''; | |
let html = op.insert; | |
if (op.attributes.bold) { | |
html = '<strong>' + html + '</strong>'; | |
} |
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
const Quill = require('quill'); | |
// https://github.com/quilljs/quill/blob/develop/formats/link.js | |
const Link = Quill.import('formats/link'); | |
class Timestamp extends Link { | |
static create(value) { | |
let node = super.create(value); | |
value = this.sanitize(value); | |
node.setAttribute('href', value); |