A command line API for getting leaderboard data about the PGA Masters Tournament.
Based on http://www.espn.com/golf/leaderboard
Requirements:
var gulp = require('gulp'); | |
var babel = require('gulp-babel'); | |
var uglify = require('gulp-uglify'); | |
var sass = require('gulp-sass'); | |
var sourcemaps = require("gulp-sourcemaps"); | |
var postcss = require('gulp-postcss'); | |
var autoprefixer = require('autoprefixer'); | |
var cssnano = require('cssnano'); | |
var nodemon = require('gulp-nodemon'); | |
var path = require('path'); |
jQuery(document).ready(function ($) { | |
$('#navquote').on('click', function() { | |
ga('send', 'event', 'Quick Quote Call To Action', 'click', 'Launch Lightbox Form'); | |
}); | |
$('#headerphone').on('click', function() { | |
ga('send', 'event', 'Phone Number Touch/Click', 'click', 'Header'); | |
}); | |
$('#footerphone').on('click', function() { | |
ga('send', 'event', 'Phone Number Touch/Click','click', 'Footer'); | |
}); |
#!/usr/bin/env python | |
# This is a simple Twitter bot which listens to a track stream for a comma delimited | |
# list of terms/tags (PRIMARY_TRACK_LIST). From this stream, it will retweet any | |
# tweet that matches the secondary regex (SECONDARY_REGEX_FILTER). | |
# | |
# This example is a #Haiti & #Chile Twitter stream listener for TweakTheTweet syntax. | |
# | |
# Requires Python 2.6 | |
# Requires Tweepy http://github.com/joshthecoder/tweepy | |
# |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Oct 3 12:24:41 2013 | |
@author: cheesinglee | |
""" | |
import praw | |
from csv import DictWriter |
<?php | |
// This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker | |
// somewhere in your theme. | |
?> | |
<header class="banner navbar navbar-default navbar-static-top" role="banner"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | |
<span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span> |
import os | |
import pytest | |
from alembic.command import upgrade | |
from alembic.config import Config | |
from project.factory import create_app | |
from project.database import db as _db | |
from PIL import Image, ImageDraw | |
def main(): | |
# Open the original image | |
main = Image.open("12voltm.jpg") | |
# Create a new image for the watermark with an alpha layer (RGBA) | |
# the same size as the original image | |
watermark = Image.new("RGBA", main.size) | |
# Get an ImageDraw object so we can draw on the image |
var AWS = require('aws-sdk'), | |
fs = require('fs'); | |
// http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html#Credentials_from_Disk | |
AWS.config.loadFromPath('./aws-config.json'); | |
// assume you already have the S3 Bucket created, and it is called ierg4210-shopxx-photos | |
var photoBucket = new AWS.S3({params: {Bucket: 'ierg4210-shopxx-photos'}}); | |
function uploadToS3(file, destFileName, callback) { |
A command line API for getting leaderboard data about the PGA Masters Tournament.
Based on http://www.espn.com/golf/leaderboard
Requirements:
Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.