Skip to content

Instantly share code, notes, and snippets.

View mlncn's full-sized avatar

Benjamin Melançon mlncn

View GitHub Profile
@BriSeven
BriSeven / get on my lawn .md
Last active October 28, 2022 02:58
Get On My Lawn Software

Get ON my lawn is a software philosophy that believes good software grows better with time.

Get on my lawm shuns trends and salesmen disguised as programmers.

Get on my lawn shuns the fancy new framework.

@sahava
sahava / customTaskMonster
Last active August 6, 2020 20:58
One customTask to rule them all.
var _customTask = function () {
// customTask Builder by Simo Ahava
//
// More information about customTask: https://www.simoahava.com/analytics/customtask-the-guide/
//
// Change the default values for the settings below.
// clientIdIndex: The Custom Dimension index to where you want to send the visitor's Client ID.
// https://bit.ly/2Ms0ZcC
var clientIdIndex = 1;
@emily-wasserman
emily-wasserman / README.md
Last active September 13, 2017 00:32
Project Hope + Cliff Effects Onboarding

Project Hope + Cliff Effects Team

What we're trying to solve:

Imagine that you are a person on government benefits, and you get a raise. You're making more money, and that's great! But there's an income cutoff for the benefits you receive, and now that your income is higher, you don't make the cutoff. Even though you're making more money, your situation is worse. Some of your benefits drop to nothing, or almost nothing. You've fallen off "the cliff".

Cliff effect

@lyoshenka
lyoshenka / coding_maxims.md
Last active August 23, 2023 21:18
Keep this in mind
@jmolivas
jmolivas / readme.md
Last active June 10, 2019 22:18
Automate DrupalConsole release process

Automate DrupalConsole release process

This script run the following tasks on multiple repos from the CLI.

  • Creates a new tag.
  • Push new created tag.
  • Create a new release.
  • Build the phar file. (only for drupal-console-launcher)
  • Upload the phar file (only for drupal-console-launcher)

To execute this proces is required to install

@mlncn
mlncn / togglefontsloadedclass.js
Last active December 8, 2016 13:32
Toggle fonts-loaded class
// ==UserScript==
// @name Toggle fonts-loaded
// @namespace agaric
// @description Toggle fonts loaded
// @include *.local
// @version 1
// @grant none
// ==/UserScript==
(function(){
@joshkoenig
joshkoenig / spiderme.sh
Last active May 23, 2018 22:50
Spider-based Benchmarking with wget
#!/bin/sh
# Spiderme - quick and clean benchmarking for website performance on Pantheon.
#
# This script uses wget to "spider" your website to provide a good set of data
# on site performance. It will automatically bypass Pantheon's edge cache, and
# skip images, javascript, css, etc. It will also only spider links that are
# under the multidev environment you are spidering.
#
#
@jmurty
jmurty / django-proxy-delete-hack.py
Created February 3, 2016 23:06
Django Proxy Delete Hack: monkey patch Django 1.7 / 1.8 deletion collectors to include proxy ancestors
# USAGE: To apply to your project, call the appropriate APPLY_ method for your
# version of Django at the start of your project's `AppConfig.ready` method:
# - APPLY_hack_django_17_collector_collect
# - APPLY_hack_django_18_get_candidate_relations_to_delete
#
# See comment notes below for references to related Django issues.
# The underlying issue is fixed in Django 1.9+
#
# This gist is intended to help others encountering this issue, and as a
# placeholder until a better work-around and/or a more easily installed
@jerbob92
jerbob92 / MyModuleMenuLinkDerivative.php
Created October 27, 2015 13:29
Drupal 8 Derative Menu Link Example
<?php
/**
* @file
* Contains \Drupal\mymodule\Plugin\Derivative\MyModuleMenuLinkDerivative.
*/
namespace Drupal\mymodule\Plugin\Derivative;
use Drupal\Component\Plugin\Derivative\DeriverBase;