Skip to content

Instantly share code, notes, and snippets.

View catherinemarvin's full-sized avatar

Catherine Marvin catherinemarvin

View GitHub Profile
@catherinemarvin
catherinemarvin / facebook-mass-remove.js
Created November 6, 2015 02:04
Remove every member from a group
// Modified from https://gist.github.com/michaelv/11145168
var deleteAllGroupMembers = (function () {
var deleteAllGroupMembers = {};
// the facebook ids of the users that will not be removed.
// IMPORTANT: add your own facebook id here so that the script will not remove yourself!
var excludedFbIds = ['565194242']; // make sure each id is a string!
var usersToDeleteQueue = [];
var scriptEnabled = false;
@catherinemarvin
catherinemarvin / .slate
Created January 30, 2013 00:28
My .slate config
config defaultToCurrentScreen true
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
bind e:cmd hint ASDFGHJKLQWERTYUIOPCVBN # use whatever keys you want
bind g:cmd grid padding:5 0:10,8 1:10,8
# Abstract positions
//this code console.logs the errors that arise from failing the spec
for (var i = 0; i < list.length; i++) {
var item = list[i];
console.log("");
var description = item.querySelector(".description").innerText;
var resultMessage = item.querySelector(".resultMessage").innerText;
console.log("{ \"errorType\" : \"failedSpec\", \"description\" : \" " + description + "\", \"resultMessage\": \"" + resultMessage + "\" }");
}