Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View matschaffer's full-sized avatar
🧡

Mat Schaffer matschaffer

🧡
View GitHub Profile
@matschaffer
matschaffer / notes.md
Created April 13, 2022 01:58
2022-04-phillyrb-pubnite.txt
  • banking and crypto pains
  • going indy
  • new jobs
  • salary bands & hiring negotiations
  • market hiring data & finding market data
  • Atlanta rb and Tech404
  • Old Philly user group history: philly lambda, algorithmics, ibm
  • Listening and repeating tech stuff - fake it till you make it
  • SinCity Ruby - Vegas, _why talks
  • updated version of the rubykaigi 2021 talk https://rubykaigi.org/2021-takeout/presentations/schwad4hd14.html
@matschaffer
matschaffer / .eslintrc.js
Last active March 19, 2022 22:53
Jest testing examples
module.exports = {
env: {
es2021: true,
node: true,
jest: true,
},
extends: ["standard", "prettier"],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
import React from 'react';
import {componentWithIntl} from '../../helpers/intl-helpers';
import RotationStyles from '../../../src/components/direction-picker/direction-picker';
import DirectionPicker from '../../../src/components/direction-picker/direction-picker';
import PropTypes from 'prop-types';
import {intlShape} from 'react-intl';
describe('DirectionPicker', () => {
const getComponent = function (props = {}) {

Testing clickability:

graph LR
M[Mat Schaffer fa:fa-twitter]
click M "https://matschaffer.com"
graph TD
- Guatemala & Japanese topology
- Rails app for firefighers
- j2ee to rails
- national fire planning standard, building hazards
- Corey Haines connection
- javascript security - https://vulncat.fortify.com/en/detail?id=desc.structural.python.javascript_hijacking_constructor_poisoning#:~:text=Applications%20that%20use%20JavaScript%20notation,engine%20allows%20array%20constructor%20poisoning.
- rails security & attribute checking
- cucumber for performance validation
- apm products https://raygun.com, https://www.elastic.co/observability/application-performance-monitoring
Locations:
Japan
Philly
Massachusettes
- Life in Japan
- New jobs
- Coaching: workflow, scrum, kanban
- Work from home
@matschaffer
matschaffer / morse_generator.ino
Created January 23, 2022 02:51
Circuit Playground Express - Morse generator
#include <Adafruit_CircuitPlayground.h>
void setup() {
CircuitPlayground.begin(10);
CircuitPlayground.clearPixels();
pinMode(A1, INPUT_PULLUP);
}
void loop() {
if (digitalRead(CPLAY_LEFTBUTTON) || !digitalRead(A1)) {
locations:
vancouver
west chester
santa monica
new babies and reaching #3
hashicorp IPO
consulting with nyc companies
@matschaffer
matschaffer / switch_to_main.sh
Last active January 26, 2022 20:29
A bash helper for switching a local clone and a github fork from master to main.
#!/usr/bin/env bash
set -euo pipefail
echo ":: Renaming local master to main"
git branch -m master main || true
git fetch origin
git remote set-head origin -a
if git remote show upstream >/dev/null 2>&1; then
@matschaffer
matschaffer / .env
Created October 20, 2021 04:40
docker-compose.yml
env-hyphens=ok
env.dots=ok