Skip to content

Instantly share code, notes, and snippets.

View StevenACoffman's full-sized avatar

Steve Coffman StevenACoffman

View GitHub Profile
@StevenACoffman
StevenACoffman / MineFieldMapper.java
Created August 30, 2016 17:59
MineSweeper Kata 45-minute Randori Result at Ithaka
import java.util.*;
public class MineFieldMapper {
public List<String> map(List<String> mineField) {
if (mineField.size() == 3) {
return Arrays.asList("1", "*", "1");
}
String s = mineField.get(0);
import java.util.AbstractMap.SimpleEntry;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
class Balance {
String hello = "hello";
List<String> beginnings = Arrays.asList("[", "(", "{");
Map<String, String> endingsToBeginnings = Collections.unmodifiableMap(Stream.of(
new SimpleEntry<>("]", "["),

Notes from experienced React developers at Khan Academy and Symphono

Configuring the tooling for React is the biggest hurdle.

create react app is the easiest entry point to getting the tooling correct for a react app. You can eject later if you want advanced configuration.

npm install -g create-react-app
@StevenACoffman
StevenACoffman / github.sh
Last active May 4, 2021 02:31
Jenkins Scripts For Build Status to Github Pull Request
#!/bin/bash
#Jenkins provides:
#GIT_COMMIT like ce9a3c1404e8c91be604088670e93434c4253f03
#GIT_BRANCH like origin/master
#BUILD_URL like http://jenkins.test.cirrostratus.org/job/Article_View_c20n_Full_Non_Destructive_Full_Suite/1334/
# per https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin
# The jenkins pull request builder plugin (if configured) will provide these:
#ghprbPullId

Code Reviews: A Controversial Policy

How I Will Perform Code Reviews
  • We Code Review after each story, and I use them as a place to have discussions where we have the opportunity to learn from one another.

  • I trust the other developers on my team, especially since they will have more context on their own work, so anything I suggest is merely a suggestion, and so I always "Approve" my github review. I give them the benefit of the doubt that if I point out something, it is more than likely I misunderstood.

  • It is entirely reasonable for people to use their discretion to disagree with or defer my suggestions for improvement.

Browser Type Clean Clean Suspect Suspect
PerimeterX Mode Monitor Blocking Monitor Blocking
Excelsior Restarts 1 1? 2 3(+?)
PerimeterX Restarts 0 0? 1 0
@StevenACoffman
StevenACoffman / CodeMash Best Presentations.md
Last active January 18, 2017 18:31
CodeMash 2017 Best Presentations
@StevenACoffman
StevenACoffman / s3walk.py
Created February 9, 2017 23:36
Recursively walk S3 file contents from root url
#!/usr/bin/env python
import boto3
from datetime import datetime
import json
import sys
import re
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""