Skip to content

Instantly share code, notes, and snippets.


René Stalder renestalder

View GitHub Profile
View gulp-patternlab.js
* The gulp wrapper around patternlab-node core, providing tasks to
* interact with the core library and move supporting frontend assets.
import gulp from 'gulp';
import path from 'path';
import browserSyncLib from 'browser-sync';
import minimist from 'minimist';
renestalder / Brewfile
Last active Nov 27, 2018
Brew / Cask packages for Interaction Designers. Use to install.
View Brewfile
cask_args appdir: '~/Applications'
tap 'caskroom/cask'
tap 'homebrew/bundle'
tap 'homebrew/core'
tap 'homebrew/dupes'
tap 'homebrew/php'
tap 'homebrew/versions'
brew 'curl', args: ['with-libssh2']
brew 'gcc'
brew 'git'
renestalder / keybindings.json
Created Aug 22, 2016
Visual Studio Code Keybindings
View keybindings.json
"key": "cmd+s",
"command": "workbench.action.files.saveAll"
"key": "cmd+shift+i",
"command": "editor.action.format",
"when": "editorTextFocus"
renestalder /
Last active Sep 30, 2015
Translate WordPress theme via child theme
  1. Paste the code snipped in the functions.php of the child theme
  2. Add languagesfolder to your child theme and add translated language files
renestalder / wp_gallery_style.css
Created Aug 25, 2015
WordPress Gallery Default Style
View wp_gallery_style.css
View gist:6786d144655db47d4dd2
@echo off
setlocal EnableDelayedExpansion
set fileDir=%~f1
if exist "%fileDir%\config.rb" goto :build
for /r "tokens=* delims=;" %%F in ("%fileDir%\..") do if not exist "%fileDir%\config.rb" (
if "%fileDir%" neq "%%~fF" (
set "fileDir=%%~fF"
renestalder /
Last active Aug 29, 2015
A (cross-browser) CSS utility class for preserving pixels when scaling up images
renestalder /
Last active Nov 20, 2020
Unfollow all on Facebook

Facebook: Unfollow people and pages

  1. Open news feed preferences on your Facebook menu (browser)
  2. Click people or pages
  3. Scroll down (or click see more) until your full list is loaded
  4. Run the script in your browser console

Facebook will block this feature for you while you use it, depending on how much entities you try to unfollow. It automatically unblocks in a couple of hours and you will be able to continue.

See comments section for more up-to-date versions of the script

renestalder / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View groupArray.js
function groupBy( array , f )
var groups = {};
array.forEach( function( o )
var group = JSON.stringify( f(o) );
groups[group] = groups[group] || [];
groups[group].push( o );
return Object.keys(groups).map( function( group )
You can’t perform that action at this time.