Skip to content

Instantly share code, notes, and snippets.

@epilande
epilande / alfred-workflows.md
Last active January 29, 2021 17:36
List of Alfred workflows

Workflows

@epilande
epilande / README.md
Last active January 29, 2021 17:38
Random Image Generator

Image Generator

Generate images using imagemagick.

This requires imagemagick CLI tools to be installed. If you don't have it installed, run the following:

$ brew install imagemagick
// Create a function to turn a one dimensional array
// into a multi dimensional array that groups every
// two elements and carry over the bigger number
// to the next array every time.
const groupInPairs = (arr: number[]): number[][] =>
arr.reduce(
(acc, _item, index) => {
if (index % 2 === 0) {
acc.push(arr.slice(index, index + 2));

Keybase proof

I hereby claim:

  • I am epilande on github.
  • I am epilande (https://keybase.io/epilande) on keybase.
  • I have a public key ASC2omiokSfZFUlvOacOTtoXlSa0GNay1k_Id9wbkSu6ygo

To claim this, I am signing this object:

// Media Queries
// --------------------------------
@mixin between-breakpoints($min, $max) {
@media (min-width: $min) and (max-width: $max) {
@content;
}
}
@mixin max-breakpoint($point) {
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300,400,700);
$base-font-family: 'Open Sans', sans-serif;
$background-color: #fff;
@import 'media-queries';
// Set a rem font size with pixel fallback
@function calculate-rem($size) {
$rem-size: $size / 16px;
@return $rem-size * 1rem;