Skip to content

Instantly share code, notes, and snippets.

View joallard's full-sized avatar

Jonathan Allard joallard

View GitHub Profile
@joallard
joallard / RequestIndicator.vue
Created July 4, 2021 23:06
Vue Request Indicator
<template lang="pug">
.request-indicator
.sending(v-if="inProgress")
.response-message(v-else)
</template>
<script>
const http = window.fetch
export default {
cask "cf-keylayout" do
version :latest
sha256 :no_check
homepage "https://github.com/ergosteur/cf-keylayout"
url "https://github.com/ergosteur/cf-keylayout/archive/master.zip"
name "Clavier Français (Canada)"
desc ""
artifact "cf-keylayout-master/cf.keylayout", target: "#{ENV["HOME"]}/Library/Keyboard Layouts/cf.keylayout"
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pouchdbLiveFind=e()}}((function(){return function e(t,n,r){function o(u,s){if(!n[u]){if(!t[u]){var a="function"==typeof require&&require;if(!s&&a)return a(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[u]={exports:{}};t[u][0].call(f.exports,(function(e){return o(t[u][1][e]||e)}),f,f.exports,e,t,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,t,n){var r=Object.create||function(e){var t=function(){};return t.prototype=e,new t},o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},i=Function.prototype.bind||function(e){var t=this;return function(){return t.apply
[user]
name = Jonathan Allard
email = jonathan@allard.io
[alias]
children = "!git rev-list HEAD..master | tail"
co = checkout
cp = cherry-pick
cpc = cherry-pick --continue
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
@joallard
joallard / bulma_dereset.sass
Last active May 20, 2020 22:57
Bulma Dereset - Set, reset... dereset!
html
background: unset
li + li
margin-top: 0.25em
// Block
p,
dl,
ol,
@joallard
joallard / Gemfile
Last active June 8, 2019 20:34
My standard gems for a Rails app
gem "haml"
gem 'kramdown'
gem 'premailer-rails'
group :development, :test do
gem 'pry-rails'
gem "pry-rescue"
gem "pry-stack_explorer"
@joallard
joallard / super_with_modified_args.rb
Last active July 26, 2018 17:48
Does a bare call to super take into account modified arguments? Also see: https://stackoverflow.com/questions/27981314/calling-super-without-arguments
class A
def foo(**opts)
opts.merge(a: true)
end
end
class B < A
def foo(**opts)
opts[:b] = true
super
@joallard
joallard / postgres-cheat-sheet.md
Created March 20, 2018 20:40
Postgres Cheat Sheet

Postgres Stuff Cheat Sheet

Regex

Match

Use the ~ operator.

9.7.3. POSIX Regular Expressions

#!/usr/bin/python
import sys
a, b = sys.argv[1:]
a = int(a, 16)
b = int(b, 16)
x = a ^ b
@joallard
joallard / carte2011simple.geojson
Last active May 14, 2017 19:24
Carte électorale Québec 2011
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.