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
var minutes = .25;
var theIframeURL = "";
}, 1000 * 60 * minutes);
Emuentes / gist:70ea09f3d6607953a3a5
Last active August 29, 2015 14:25 — forked from girliemac/gist:5279460
Draw On The Kitteh Demo - using the Touch Events V.1, Mouse events, and Pointer Events all together.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width"/>
body {
font-family: "Segoe UI Web Light", "Segoe UI Light", "Segoe UI Web Regular", "Segoe UI", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-size: 1.2rem;
margin: 10px;
Emuentes / Preferences.sublime-settings
Created February 18, 2016 15:11
My current sublime settings
"characters": "<",
"selector": "text.html"
"characters": " ",
"selector": "text.html meta.tag"
Emuentes /
Last active March 2, 2016 19:57
Push all local branches to upstream origin -- handy when migrating to a new git host
# handy when migrating your local branches to a new git host
# git branch prints out each local branch on it's own line
# the grep command excludes the lines that end with master, develop, or HEAD
# it also excludes the currently checked out branch, which begins with an asterisk
# for example:
# if your git branch command returns the following:
# *develop
# master
Emuentes /
Last active March 22, 2016 15:32
GIT checkout ALL remote branches other than "origin/master", "origin/develop", & origin/HEAD which comes up in the git remote branch list.
git branch -r | grep -v -E '(\*|master$|develop$|HEAD$)' | cut -f2- -d '/' | xargs -n 1 git checkout
Emuentes / firebase-graphql-basic.js
Created September 26, 2017 05:24 — forked from brygrill/firebase-graphql-basic.js
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();
// Playing around with the Higher Order Components exercise from the React-Training github!
import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import * as styles from './styles'
const withMouse = (Component) => {
Emuentes /
Last active September 17, 2018 14:26
Delete remote git branches that have been merged into develop
# Breakdown of the process
# NOTE: I am searching for branches merged into Develop because I'm using GiT flow
# 1) git branch -r --merged develop
# Get remote branches that have been merged into develop
# 2) grep -v -E '(\*|master|develop)'
# From those branches returned by the above command,
# exclude: master, develop, & the currently selected branch (the branch name beggining with an asterisk)
Emuentes / index.js
Created October 16, 2019 18:58
Run all files in root folder
// This will automatically import all the files in your repl's root folder that have a file name beginning with "autoAdd"
var files = fs.readdirSync('./');
for(file of files) {
if(file.startsWith("autoAdd")) {
require("./" + file);