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
<aura:component> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}" /> | |
<aura:handler name="change" value="{!v.element}" action="{!c.doInit}"/> | |
<aura:attribute name="items" type="List" /> | |
<aura:attribute name="element" type="String" /> | |
<aura:attribute name="condition" type="Boolean" /> | |
<aura:if isTrue="{!v.condition}"> | |
{!v.body} |
CREATE OR REPLACE FUNCTION haversine(latitude1 numeric(10,6),longitude1 numeric(10,6), latitude2 numeric(10,6), longitude2 numeric(10,6)) | |
RETURNS double precision AS | |
$BODY$ | |
SELECT 3959 * acos( cos( radians(latitude1) ) * cos( radians( latitude2 ) ) * cos( radians( longitude1 ) - radians(longitude2) ) + sin( radians(latitude1) ) * sin( radians( latitude2 ) ) ) AS distance | |
$BODY$ | |
LANGUAGE sql; | |
/* | |
SELECT id, | |
name, |
#!/bin/bash | |
# Source: http://blog.nonuby.com/blog/2012/07/05/copying-env-vars-from-one-heroku-app-to-another/ | |
set -e | |
sourceApp="$1" | |
targetApp="$2" | |
while read key value; do |
DELETE relations.*, taxes.*, terms.* | |
FROM wp_term_relationships AS relations | |
INNER JOIN wp_term_taxonomy AS taxes | |
ON relations.term_taxonomy_id=taxes.term_taxonomy_id | |
INNER JOIN wp_terms AS terms | |
ON taxes.term_id=terms.term_id | |
WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type='product'); | |
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type = 'product'); | |
DELETE FROM wp_posts WHERE post_type = 'product'; |
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
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/
is intended for code that can run as-issrc/
is intended for code that needs to be manipulated before it can be used<script type="text/javascript"> | |
// Case Data preparation | |
var postData = { | |
oid: '00D0b000000xxxx', //Put your ORGID here | |
name:'John Smith', | |
company:'ACME', | |
email:'[email protected]', | |
origin:'Web', | |
subject:'Web2Case using the custom API', |
#!/bin/sh | |
git remote set-url origin https://[TOKEN]@github.com/[Owner]/[REPO_NAME].git | |
# Example | |
# git remote set-url origin https://[email protected]/samuel-alves/dummy-repo.git |