Skip to content

Instantly share code, notes, and snippets.

View AllPurposeName's full-sized avatar

DJ Greenfield AllPurposeName

View GitHub Profile
@AllPurposeName
AllPurposeName / dj_bottles.rb
Created December 16, 2014 05:29
99 bottles song
bottles = 100
original_bottles = bottles
while bottles > 1
bottles -= 1
case
when bottles > 2
puts "#{bottles} bottles of beer on the wall, #{bottles} bottles of beer.\nTake one down, pass it around, #{bottles - 1} bottles of beer on the wall."
else
puts "#{bottles} bottles of beer on the wall, #{bottles} bottles of beer.\nTake one down, pass it around, #{bottles - 1} bottle of beer on the wall."
card_number = "4929735477250543"
total_number = 0
valid = false
# 4929735477250543
# other numbers when checked are either:
#
# valid1 = "5541808923795240"
# valid2 = "4024007136512380"
# valid3 = "6011797668867828"
# or
@AllPurposeName
AllPurposeName / credit_check.rb
Created December 18, 2014 16:04
DJ's Credit Check and Tester
require 'pry'
class CreditCheck
attr_accessor :input
attr_accessor :numerizer
attr_accessor :multiplier
attr_accessor :sum
attr_accessor :reducables
attr_accessor :validater
attr_accessor :converter
@AllPurposeName
AllPurposeName / lightning-talk-dj-1
Created February 24, 2015 22:11
DJ Lightning Talk Outline
Portrait of a Language as a Young Program
* Brief Intro of Matz
--Why make a new language
--Birth of Coral, err Ruby
--Early days, 3 version updates in 2 days
--Mailing list which persists today
* What Ruby Has
--What did it derive from other languages
@AllPurposeName
AllPurposeName / gist:02cfbd76b8ec0382ca49
Created March 30, 2015 03:17
DJ LT Dark Patterns Outline
Dark Patterns
* Basic Responsibilites of a Developer
--Make clean code: This stuff isn't poorly coded, just evil
--Satisfy your boss
--Don't be a scumbag
* What something should look like
--Ars Technica
--Pretty sign up form
@AllPurposeName
AllPurposeName / gist:1ec0a59a2bfc31648600
Created April 7, 2015 20:58
DJ Lightning Talk Outline Trollin
Trollin' Aint Easy :sunglasses:
* Define Trolling
--Trolling, Trawling, Trowling.
--Everyone's a Troll!
* Why Trolling Isn't Inherently Bad
--Everyone's a Troll! (Chemicals are everwhere, don't be scared kids)
--Harmful Trolling Looks Like This
Ads
* My Story -beginning
--Running a LAN center: Good Game
--Facebook Ads/Adsense... pricey, but couldn't hurt right?
--Fake users whaaa?
* Why Invalid Click Why
--Explain concept of Click Fraud
--Scripters gonna script, Michael Anthony Bradley
@AllPurposeName
AllPurposeName / BIG O
Created April 28, 2015 23:27
Lightning Talk BIG O
BIG O
* Krita's right, DSA
--Landau's Symbol: basically rate of growth == order
--Knowing what we're measuring: Complexity vs Performance
--How to read Big O notation
* Krita's right, DSA
--Landau's Symbol: basically rate of growth == order
--Knowing what we're measuring: Complexity vs Performance
@AllPurposeName
AllPurposeName / BIG O
Created April 28, 2015 23:27
Lightning Talk BIG O
BIG O
* Krita's right, DSA
--Landau's Symbol: basically rate of growth == order
--Knowing what we're measuring: Complexity vs Performance
--How to read Big O notation
* Krita's right, DSA
--Landau's Symbol: basically rate of growth == order
--Knowing what we're measuring: Complexity vs Performance
@AllPurposeName
AllPurposeName / BIG O
Last active August 29, 2015 14:20
Lightning Talk BIG O
BIG O
* Krista's right, DSA
--Landau's Symbol: basically rate of growth == order
--Knowing what we're measuring: Complexity vs Performance
--O vs Theta vs Omega
--Cases for and cases against significance of Big O
--How to read Big O notation
* LLLLLIVE coding