Great cheatsheet!! and this is a good article as well.
Start virtualbox and the vm
boot2docker start
Pull down the google go image
docker pull google/golang
Find the ip attached to the container
boot2docker ip
<apex:page controller="CustomAccountLookupController" | |
title="Search" | |
showHeader="false" | |
sideBar="false" | |
tabStyle="Account" | |
id="pg"> | |
<apex:form > | |
<apex:outputPanel id="page" layout="block" style="margin:5px;padding:10px;padding-top:2px;"> | |
<apex:tabPanel switchType="client" selectedTab="name1" id="tabbedPanel"> |
<aura:event type="APPLICATION" description="Add to cart event."> | |
<aura:attribute name="product" type="Product__c"/> | |
</aura:event> |
import Foundation | |
import XCPlayground | |
XCPSetExecutionShouldContinueIndefinitely() | |
/** | |
Paste all the code from the following file | |
- https://github.com/lingoer/SwiftyJSON/blob/master/SwiftyJSON/SwiftyJSON.swift | |
**/ |
$ node examples/runTests.js | |
*** Running tests asynchronously. I know. This is awesome!! *** | |
Inserted ApexClass ToolingTest1 | |
Inserted ApexClass ToolingTest2 | |
Inserted ApexClass ToolingTest2_Test | |
Inserted ApexClass ToolingTest1_Test | |
Started async runTests job 707o000000AmuQD | |
Checking status of runTests job 707o000000AmuQD repeatedly until all tests complete. | |
All tests have completed! W00t! | |
======================================== |
import Foundation | |
import XCPlayground | |
XCPSetExecutionShouldContinueIndefinitely() | |
/** | |
* Paste all the code from the following file | |
- https://github.com/lingoer/SwiftyJSON/blob/master/SwiftyJSON/SwiftyJSON.swift | |
**/ |
FROM google/golang | |
WORKDIR /gopath/src/github.com/topcoderinc/cribs | |
ADD . /gopath/src/github.com/topcoderinc/cribs/ | |
# go get all of the dependencies | |
RUN go get github.com/codegangsta/martini | |
RUN go get github.com/codegangsta/martini-contrib/render | |
RUN go get github.com/codegangsta/martini-contrib/binding | |
RUN go get labix.org/v2/mgo |
Great cheatsheet!! and this is a good article as well.
Start virtualbox and the vm
boot2docker start
Pull down the google go image
docker pull google/golang
Find the ip attached to the container
boot2docker ip
options = { :body => | |
{ :username => 'my', | |
:password => 'password' | |
} | |
} | |
results = HTTParty.post("http://api.topcoder.com/v2/auth", options) | |
## | |
## example for post with papertrail and basic auth | |
## |
github.com/topcoderinc/cribs |
Q.all([ | |
salesforce.getContactByMobile(res.locals.org, '(941) 111-1111'), | |
twilio.getMessage("MMd3dbafbbde409a109e4c71c7684cec77") | |
]).then(function(results) { | |
console.log(results[0]); | |
console.log(results[1]); | |
}); |