This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var minutes = .25; | |
var theIframeURL = "http://dashboard.corp.priceline.com/views/MoversShakers/HeatMapUSA?:embed=y&:from_wg=true"; | |
setInterval(function(){ | |
document.querySelectorAll('#viewerFrame')[0].src=theIframeURL; | |
}, 1000 * 60 * minutes); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width"/> | |
<style> | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": "<", | |
"selector": "text.html" | |
}, | |
{ | |
"characters": " ", | |
"selector": "text.html meta.tag" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -r | grep -v -E '(\*|master$|develop$|HEAD$)' | cut -f2- -d '/' | xargs -n 1 git checkout | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urlBase = location.protocol + '//' + location.host; | |
var hasNonEmptyHrefAttr = ':not([href=""])'; | |
var doesNotBeginWithUrlBase = ':not([href^="' + urlBase + '"])'; | |
var isNotRelativeUrl = ':not([href^="/"])'; | |
var isNotAnAnchor = ':not([href^="#"])'; | |
var isNotJavascriptLink = ':not([href^="javascript:")'; | |
var externalLinkSelector = 'a' + hasNonEmptyHrefAttr + doesNotBeginWithUrlBase + isNotRelativeUrl + isNotAnAnchor + isNotJavascriptLink; | |
var externalLinks = jQuery(externalLinkSelector); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sample graphql server deployed with firebase functions | |
// minimal server setup | |
// via http://graphql.org/graphql-js/running-an-express-graphql-server/ | |
const functions = require('firebase-functions'); | |
const express = require('express'); | |
const graphqlHTTP = require('express-graphql'); | |
const { buildSchema } = require('graphql'); | |
// Init express | |
const app = express(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Playing around with the Higher Order Components exercise from the React-Training github! | |
// https://github.com/ReactTraining/react-workshop/tree/master/subjects/HigherOrderComponents | |
// FUN FUN FUN!!! | |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import PropTypes from 'prop-types' | |
import * as styles from './styles' | |
const withMouse = (Component) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
} | |
} |
OlderNewer