git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
#!/bin/bash | |
################################################################################ | |
# | |
# This script automates the installation of the UniFi controller software on the | |
# Raspberry Pi. | |
# | |
# http://www.technologist.site/ubnt | |
# | |
################################################################################ |
# Using flickr_api to search and download images | |
# https://github.com/alexis-mignon/python-flickr-api/wiki/Tutorial | |
import flickr_api as f | |
f.set_keys(api_key = 'xxxxxxxxxxxxxxxxxxxxxxx', | |
api_secret = 'xxxxxxxxxxx') | |
auth = f.auth.AuthHandler() | |
w = f.Walker(f.Photo.search, tags="sumo") |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
var nodemailer = require("nodemailer"); | |
// create reusable transport method (opens pool of SMTP connections) | |
var smtpTransport = nodemailer.createTransport({ | |
service: "Gmail", | |
auth: { | |
user: "*******************", | |
pass: "*******************" | |
} | |
}); |
<?php | |
require 'tmhOAuth.php'; // Get it from: https://github.com/themattharris/tmhOAuth | |
// Use the data from http://dev.twitter.com/apps to fill out this info | |
// notice the slight name difference in the last two items) | |
$connection = new tmhOAuth(array( | |
'consumer_key' => '', | |
'consumer_secret' => '', | |
'user_token' => '', //access token |
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-instagram/0.2.2/jquery.instagram.min.js"></script> | |
</head> | |
<body> | |
<h1>jQuery Instagram Demo</h1> |
function parse_message( &$tweet ) { | |
if ( !empty($tweet['entities']) ) { | |
$replace_index = array(); | |
$append = array(); | |
$text = $tweet['text']; | |
foreach ($tweet['entities'] as $area => $items) { | |
$prefix = false; | |
$display = false; | |
switch ( $area ) { | |
case 'hashtags': |
<?php | |
/** | |
* Code should be placed in your theme functions.php file. | |
*/ | |
add_filter( 'woocommerce_loop_add_to_cart_link', 'quantity_inputs_for_woocommerce_loop_add_to_cart_link', 10, 2 ); | |
function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) { | |
if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) { | |
$html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">'; | |
$html .= woocommerce_quantity_input( array(), $product, false ); |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
from HTMLParser import HTMLParser | |
import urllib2 | |
class GetTitle(HTMLParser): | |
def __init__(self): | |
HTMLParser.__init__(self) | |
self.title_flag = False | |
def handle_starttag(self, tag, attrs): | |
if tag == 'title': |