Skip to content

Instantly share code, notes, and snippets.

View jusleg's full-sized avatar
👋

Justin Léger jusleg

👋
View GitHub Profile
require 'pry'
# Extend the Binding class with the loud_pry method
class Binding
def loud_pry()
# Play the sound
`afplay /System/Library/Sounds/Purr.aiff`
# Announce the activation
`say "binding loud pry activated"`

Hey there 👋 This is a demo of our current rendering engine for articles.by. I got sick of medium putting a paywall on every articles. If you ever wrote Markdown on Reddit, Discourse, or GitHub, you are pretty much good to go. We support the basic mardown thing like links, italic, bold, strikethrough, and a mix of all of them.

We got

a

couple

headers

@jusleg
jusleg / loops.rb
Created December 5, 2018 04:55
Draw cool loops in your terminal
POINTS = 10000
PRE_ROTATION = Math::PI * 1
LOOPS = 5
DIMENSION = 101
values = Array.new(DIMENSION){Array.new(DIMENSION)}
middle = DIMENSION/2+1
POINTS.times do |i|
radius = DIMENSION / 2 * i / POINTS
@jusleg
jusleg / 345.md
Last active March 9, 2020 05:22
345 notes

Soen 345

Some definitions

Legacy code: code without tests. Without test, we don't know if the code is getting better of worse

Unit test: tests that run fast and help localize problems. They test a specific part of the code

Integration test: Test that spans across multiple modules. Not fast. Insure that a complete feature is working

Continuous integration: Automatically build, test and analyze software to every change to the source repo. New commit = building, testing and analyzing again. (Ex: Travis CI)

0x503c3B443B66677C4Fe84A9afFcd7B6bbdDbd029

Keybase proof

I hereby claim:

  • I am jusleg on github.
  • I am justinleger (https://keybase.io/justinleger) on keybase.
  • I have a public key whose fingerprint is 751A 4DB6 0646 1B51 F3B7 8EC7 BFFD 2891 2E54 26FC

To claim this, I am signing this object: