Skip to content

Instantly share code, notes, and snippets.

Erik Pukinskis erikpukinskis

Block or report user

Report or block erikpukinskis

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 Scrum Notes.md

These are just notes I took reading various Scrum documents. I tried to write down every concrete action that someone can take as part of a Scrum process.


BOOTSTRAP

Going in:

  • Company Vision Statement
  • Market Analysis
View node demo.js
javascript-to-ezjs$ node demo
===
NEW LOG for demo-module
function (anExpression) {
anExpression.tree("tree8d")
// begin
}
===
View how-hard-is-programming.js
h1("There is no such thing as \"obvious code chnges\".")
p("You massively under-estimate the skill and experience involved in even the most basic programming tasks. Programming, version control, deployment, database design, systems design, etc. These people have their own professions with their own issues to deal with.")
View scratch.js
global.wtf = function wtf(label, whatnot) {
if (!whatnot){
whatnot = label
label = undefined
}
if (typeof whatnot == "function") {
var out = whatnot.toString()
} else if (typeof whatnot == "object") {
if (Array.isArray(whatnot)) {
@erikpukinskis
erikpukinskis / spell.js
Last active Nov 20, 2016
forming a n-dimensional hypercube of course muahahahahaha
View spell.js
// is-everyone-free
// a-story
// tell-the-universe
// someone-is-a-person
// we-have-people-to-talk-to
tellTheUniverse(
"a-story",
View in-praise-of-callbacks.md

In praise of callbacks

People talk about callbacks as if they are some sort of programming conundrum, because of "callback hell". The Parse blog has a nice example:

Parse.User.logIn("user", "pass", {
  success: function(user) {
    query.find({
      success: function(results) {
        results[0].save({ key: value }, {
View nrtv-demo.coffee
element = require "nrtv-element"
component = require "nrtv-component"
BridgeTie = require "nrtv-bridge-tie"
ServerTie = require "nrtv-server-tie"
ElementTie = require "nrtv-element-tie"
GimmePizza = component(BridgeTie, ServerTie, ElementTie)
server = GimmePizza.server()
View component.js
// Component
// Most people when they want to make something happen with software, need to
// pull together a couple different kinds of things. Maybe you want a button on
// your thing that when people hit it they can sign up for some text messages
// that are going to get sent to them according to some pattern. That's a couple
// different kinds of things: a widget people can interact with, some sort of
// off-line activity that springs to life and sends messages at particular
// times. A thing that remembers the phone numbers, etc.
View request.cache.js
var request = {
values: new HashTable, // https://github.com/BorisKozo/jsHash
cache: function(func) {
if (value = values.get(func)) {
return value
}
var args = Array.prototype.slice(arguments, 1)
var value = func.apply(null, args)
values.set(func, value)
return value
You can’t perform that action at this time.