Skip to content

Instantly share code, notes, and snippets.

View L-A's full-sized avatar

Louis-André Labadie L-A

View GitHub Profile
@L-A
L-A / tiny.md
Created January 27, 2012 14:36 — forked from remi/tiny.md
Quebecers with tiny websites
@L-A
L-A / .boto
Last active October 17, 2015 15:09
Boto config to avoid failing cert checks on S3 buckets with a period in their name.
[s3]
calling_format = boto.s3.connection.OrdinaryCallingFormat

Keybase proof

I hereby claim:

  • I am l-a on github.
  • I am lalabadie (https://keybase.io/lalabadie) on keybase.
  • I have a public key whose fingerprint is 1911 7AE1 FC8C 4757 137C E3EA 2C7E 6C83 9BB2 EB80

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am l-a on github.
  • I am lalabadie (https://keybase.io/lalabadie) on keybase.
  • I have a public key whose fingerprint is 1911 7AE1 FC8C 4757 137C E3EA 2C7E 6C83 9BB2 EB80

To claim this, I am signing this object:

@L-A
L-A / challenge.md
Last active December 10, 2015 14:18 — forked from rafbm/challenge.md

CSS Challenge #2

You start with this:

And must end up with this:

@L-A
L-A / design-primer-for-devs.md
Last active December 19, 2015 00:19
[In French] A tiny list of references for developers who like design
@L-A
L-A / .hyper.js
Created November 23, 2016 14:38
Hyper config when getting: Ignored ESC code: "\\"
module.exports = {
config: {
// borderColor: '#555',
fontSize: 13,
fontFamily: '"Input", "DejaVu Sans Mono", "Lucida Console", monospace',
cursorShape: 'UNDERLINE', // `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
// custom css to embed in the main window
css: `
.tab_tab {
@L-A
L-A / fizzbuzz.swift
Created October 6, 2017 01:36
Fizz Buzz
func fizzBuzz (size: Int) {
// An array can be declared like this
var list: Array<Int> = []
// Alternatively, you can instantiate:
// var list = [Int]()
// This array creation is oddly slow in Playgrounds (try it with size: 400).
// Then again, I shouldn't need *two* loops for a fizzbuzz.
@L-A
L-A / scratched-circles.js
Created October 25, 2019 19:44
Sample code to generate scratched circles sketches using canvas-sketch
import canvasSketch from "canvas-sketch";
import randomPalette from "../helpers/goodPalette";
import SimplexNoise from "../helpers/simplex";
import random from "../helpers/random";
// In inches
const width = 8,
height = 8;
// Random inputs
@L-A
L-A / Static.swift
Created July 20, 2020 19:48
Static struct properties in Swift
struct Vehicle {
// Here are four struct properties: Three are
// required when I initialize an instance, and
// the fourth is computed
var name: String
let consumptionInLper100km: Float
let fuelCapacityInL: Float
var autonomy: Float {
return fuelCapacityInL * (100/consumptionInLper100km);
}