Skip to content

Instantly share code, notes, and snippets.

View Emuentes's full-sized avatar
Enjoying Life

Edgar Muentes Emuentes

Enjoying Life
View GitHub Profile
malclocke / gist:943565
Created April 27, 2011 01:31 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' |
xargs git push origin --delete
paulirish / rAF.js
Last active June 11, 2024 14:29
requestAnimationFrame polyfill
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
neonichu /
Last active August 28, 2023 18:02
Demo of accessing the Ingress API.
#!/usr/bin/env python
import cookielib
import json
import mechanize
GOOGLE_PASS = 'your-password'
metaist / object-filter.js
Created March 19, 2014 02:32
Add .filter to JavaScript objects.
// Based on:
Object.filter = function(obj, predicate) {
var result = {}, key;
for(key in obj) {
if (obj.hasOwnProperty(key) &&, key, obj[key])) {
result[key] = obj[key];
}//end if: key added to result
}//end for: iterated over the object
return result;


Apple has been creating some amazing scrolling video sites lately and I've been trying to create a simplified plugin to recreate this effect. This is the alpha version of this plugin. You can see an example of the effect I'm recreating here:

This uses requestAnimationFrame and allows you to create multiple custom scrolling videos easily.

A Pen by Mark Teater on CodePen.


brygrill / firebase-graphql-basic.js
Last active August 4, 2020 14:12
Deploying a GraphQL Server with Firebase Functions
// sample graphql server deployed with firebase functions
// minimal server setup
// via
const functions = require('firebase-functions');
const express = require('express');
const graphqlHTTP = require('express-graphql');
const { buildSchema } = require('graphql');
// Init express
const app = express();