Skip to content

Instantly share code, notes, and snippets.

@kopasetik
kopasetik / OBJECTIVES.MD
Last active September 6, 2017 22:07
Tinker Tailor Coder Spy - Breaking down the dev down into... less pretentious roles

Objectives by the end of this talk you'll be able to...

  • List off the pretentious roles that comprise a dev position
  • Identify where you are an engineer/inventor
  • Identify where you're a scientist
  • Identify where you're a detective
  • Identify where you're an academic
  • Identify where you're a philosopher
  • Identify where you're a rockstar/ninja/guru (and cut that mess out!)
  • List off the unpretentious roles that comprise a dev position
  • Identify where you are a plumber
@kopasetik
kopasetik / .gitignore
Last active April 21, 2017 04:47
dotfiles
.DS_Store
*.iml
.bundle/
.idea/
# ruby
.ruby-version
binstubs/
vendor/bundle/
@kopasetik
kopasetik / functionalSegmentation.js
Last active March 16, 2017 23:32
JS Array Segmentation
function fSegment(arr, maxLength){
return arr.reduce((acc, curr, idx, artie) => {
if(idx * maxLength >= artie.length) return acc
var upperLimit = (maxLength > artie.length) ? artie.length: (idx + 1) * maxLength
acc[idx] = artie.slice(idx * maxLength, upperLimit)
return acc
}, [])
}
@kopasetik
kopasetik / streamishExample.js
Last active December 19, 2016 01:30
Make something streamlike out of an asynchronous call
function makeStreamyThing(array, delayInterval){
var newStreamyThing = array.map((element, index) => {
return callback => setTimeout(() => {
callback(element)
}, (index + 1) * delayInterval)
})
return newStreamyThing
}
fetch('https://www.omdbapi.com/?s=batman')
@kopasetik
kopasetik / cube.js
Last active April 21, 2016 18:33
PT 3 - April 2016 Sample Teach pt 3 (notes)
function getCube (n){
var result = n;
result *= n * n;
return result;
}
@kopasetik
kopasetik / functionCallOrExpression1.js
Last active April 21, 2016 18:34
PT 1 - April 2016 Sample Teach pt 1
function joinWordsWithAnd(string1, string2){
return string1 + ' and ' + string2;
}
@kopasetik
kopasetik / function1.js
Last active April 21, 2016 18:33
PT 2 - April 2016 Sample Teach pt 2
function joinWordsWithAnd(string1, string2){
return string1 + ' and ' + string2;
}
// for the above function, create a call that returns 'Macaroni and Cheese'
@kopasetik
kopasetik / vernacular_shibboleths.md
Last active April 9, 2016 19:48
Vernacular Spectacular

Mr Walé’s Inclusion Fusion Vernacular Spectacular!
or Decoupling from (Bad) Shibboleths in the Developer Community
Link to Slides

A problem with developers is that we often say and do things that are esoteric and treat them as criteria for being a “developer.” This conflicts with the fact that a developer can come any background.

Today I’m going to talk about shibboleths. What’s a shibboleth? A shibboleth is a proverbial line in the sand that determines who belongs and who is an outsider. Many are in programming. Text editors, paradigms, languages, type systems, are all topics of… um…, “vigorous conversation.”

If you want to think about it in terms of middle school Venn Diagrams, the developer community does not do enough to encourage seeing different developer groups as unions instead of as intersections. This can have a lot of different manifestations. Say you're working on a pr

@kopasetik
kopasetik / category.js
Created March 2, 2016 17:31
ReactJS Parent with Identical Child Components
const Category = React.createClass({
handleTaskDelete(taskId){
this.props.onListTaskDelete(taskId)
},
handleTaskChange(taskId, categoryId){
this.props.onListTaskChange(taskId, categoryId)
},
render(){
let opts = {}
function predicate(condition, test){
@kopasetik
kopasetik / async_options.js
Last active February 22, 2016 01:57
Mapping across an async array response
'use strict'
const async = require('async')
const a = [0,1,2,3,4,5,6,7,8,9]
/*
async.mapLimit(a, 2, fancy, (err, result) => {
console.log(`err: ${err}, result: ${result}`)
})
*/