Skip to content

Instantly share code, notes, and snippets.

Jess Szmajda jszmajda

Block or report user

Report or block jszmajda

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 boids.pde
Flock flock;
void setup() {
size(1900, 1000);
flock = new Flock();
// Add an initial set of boids into the system
for (int i = 0; i < 1550; i++) {
flock.addBoid(new Boid(random(0, width), random(0, height)));
}
}
View github-log
This file has been truncated, but you can view the full file.
irbx08x08x08vim repos.json x08x08x08x08x08x08x08x08x08x08x08x08x08x08x08hub api orgs/axioscode/repos > repos.json
Jesss-MacBook-Pro:generator-axios jess$ irb
irb(main):001:0> require 'json'
=> true
irb(main):002:0> JSON.parse(File.read('repos.sx08x27[Kjson'));nilx27[18Gx27[1@dJx08x27[1@aJx08x27[1@tJx08x27[1@=Jx08
=> nil
irb(main):003:0> dat.keys
NoMethodError: undefined method `keys' for #<Array:0x00007fd1fd8fb7f0>
from (irb):3
View keybase.md

Keybase proof

I hereby claim:

  • I am jszmajda on github.
  • I am jszmajda (https://keybase.io/jszmajda) on keybase.
  • I have a public key whose fingerprint is 31BD 2FD8 F4D2 2B00 BBF1 7FAB 7E77 C933 FF4A 472B

To claim this, I am signing this object:

@jszmajda
jszmajda / avro_at_optoro.rb
Created Dec 18, 2017
Showing how we're currently using AVRO in Optoro's ruby projects. This is very very much still subject to change!!
View avro_at_optoro.rb
# Optoro bits of using Avro. Currently with the AvroTurf, but I'm going to refactor away from that.
# this all sits in a rails repo in `app/message_bus`
# `app/message_bus/message_bus.rb`
module MessageBus
module_function
def avro
# Things in the schema folder are `<MessageName>.avsc` files. They're JSON
@jszmajda
jszmajda / sample.elm
Last active Sep 9, 2017
Elm JSON Decoding
View sample.elm
-- So I'm decoding JSON with this pattern, but there has to be a better way
import Json.Decode as JD
type alias User =
{ id : Int
, email : String
, firstName : String
, lastName : String
}
@jszmajda
jszmajda / apocalypse_lullaby.txt
Last active Sep 2, 2017
Apocalypse Lullaby Tablature (Tab)
View apocalypse_lullaby.txt
Apocalypse Lullaby by The Wailin' Jennys
This is an open tuning: CFCFAC
I play it mostly strumming all the strings and only muting the very
occasional one on the 4x0230 chord. I'm sure that's not quite right ;)
I wrote this tab based on Hugo Glanville's youtube video:
https://www.youtube.com/watch?v=RYJ6RQRMa9I
View Exercise.hs
module Y2017.M06.D07.Exercise where
import qualified Data.List as L
{--
So, here's one of the questions Amazon asks developers to test their under-
standing of data structures.
You have a binary tree of the following structure:
View Ruby Retrocession Schedule
Room: 126 | 125
10:00 - 10:40 - Interviewing for RoR Jobs | Immutable Rails Deployments
10:40 - 11:20 - Are Boot Camps Worth It? How do I grow? | Domain Driven Design
11:20 - 12:00 - Remote Teams | Testing & strategies
12:00 - 1:40 LUNCH
@jszmajda
jszmajda / CoderNight.20161013.md
Last active Sep 29, 2016
DCRUG CoderNight 20161013
View CoderNight.20161013.md

tl;dr - Coder Night is to practice development. You write code in pairs or individually and submit the code to me (joshsz @ gmail.com). I post an anonymized repo and you have a few days to look at all the solutions before a friendly night of code review.

The Problem

DNA Encoding! (see DNA.md below)

Submissions Due

Tuesday October 11th at 11:59pm.

@jszmajda
jszmajda / binary_conversion.ex
Created Apr 7, 2016
Binary Conversion in Elixir
View binary_conversion.ex
# Binary conversion: take a number 7, output "111"
defmodule Randori do
def helper(x, s \\ "")
def helper(0, "") do
"0"
end
def helper(0, s) do
s
You can’t perform that action at this time.