Skip to content

Instantly share code, notes, and snippets.

View dannyfritz's full-sized avatar
🐦
chirping

Danny Fritz dannyfritz

🐦
chirping
View GitHub Profile
@dannyfritz
dannyfritz / wono.js
Last active November 25, 2021 17:46
Rebuild all dependent packages when a package is modified.
#!/usr/bin/env node
import process from "process";
import { spawn } from "child_process";
import chokidar from "chokidar";
import { readPackageUp } from "read-pkg-up";
// import { run } from '@pnpm/plugin-commands-script-runners';
chokidar
.watch(".", {
@dannyfritz
dannyfritz / example.js
Last active January 12, 2018 05:36 — forked from bthesorceror/example.js
Promises
function loadFile(filename) {
let script = ... create script with file
let promise = new Promise()
script.onload = promise.resolve
return promise
}

Keybase proof

I hereby claim:

  • I am dannyfritz on github.
  • I am dannyfritz (https://keybase.io/dannyfritz) on keybase.
  • I have a public key whose fingerprint is 7100 9785 AFE9 05FF 27EF 09E4 BF13 07CC 1754 90CB

To claim this, I am signing this object:

Agile for Teams

Objectives

  • Ariticulate how Agile works in a team
  • List the roles in Scrum

Agile Review

  • Agile Manifesto What are some/all principles of Agile?

Intro to Programming with JavaScript

Standard

Write, mentally evaluate, and store the result of JS expressions

Objectives

  • Describe what a programming language is
  • List reasons for learning JavaScript
@dannyfritz
dannyfritz / setup.md
Last active June 21, 2019 15:07 — forked from w3cj/setup.md
@dannyfritz
dannyfritz / Promise_Patterns.md
Last active August 4, 2021 14:38
Promise Patterns for Happier Relationships 💍

Promises

new Promise()

  • new Promise((resolve, reject) => {})
const getDinosaur = (name) => {
  return new Promise((resolve, reject) => {
    resolve({name})
@dannyfritz
dannyfritz / index.js
Last active June 8, 2021 14:56
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var d3 = require('d3')
var cloud = require('d3-cloud');
var _ = require('lodash');
var stripCommonWords = require('strip-common-words');
var input = 'We’re happy to announce the release of React 0.14 today! This release has a few major changes, primarily designed to simplify the code you write every day and to better support environments like React Native. React React React!';
console.log(input);
@dannyfritz
dannyfritz / index.js
Created March 6, 2015 23:01
requirebin sketch
const _fp = require('lodash-fp');
var sum = _fp.reduce(_fp.add, 0);
document.write(sum([1,2,3]));
@dannyfritz
dannyfritz / index.js
Last active August 29, 2015 14:16
requirebin sketch
const R = require('ramda');
const _ = require('lodash');
var answer = _(_.range(1,10)).reduce(R.multiply, 1);
console.log(answer);
answer = R.product(R.range(1,10));
console.log(answer);