Skip to content

Instantly share code, notes, and snippets.

View jeffdonthemic's full-sized avatar
💭
Currently being awesome

Jeff Douglas jeffdonthemic

💭
Currently being awesome
View GitHub Profile
@jeffdonthemic
jeffdonthemic / CustomAccountLookup.page
Last active January 12, 2021 15:17
Roll Your Own Salesforce "Lookup" Popup Window blog post
<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">
@jeffdonthemic
jeffdonthemic / AddToCart.evt
Last active December 29, 2022 17:11
Salesforce1 Lightning Demo for Spring '15
<aura:event type="APPLICATION" description="Add to cart event.">
<aura:attribute name="product" type="Product__c"/>
</aura:event>
@jeffdonthemic
jeffdonthemic / Playground.js
Last active August 29, 2015 14:06
Swift HP IDOL OnDemand
import Foundation
import XCPlayground
XCPSetExecutionShouldContinueIndefinitely()
/**
Paste all the code from the following file
- https://github.com/lingoer/SwiftyJSON/blob/master/SwiftyJSON/SwiftyJSON.swift
**/
@jeffdonthemic
jeffdonthemic / results.txt
Created September 2, 2014 19:44
nforce-tooling runTestsAsync results
$ 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!
========================================
@jeffdonthemic
jeffdonthemic / api-json.playground
Created August 22, 2014 18:29
Swift API call & parsing JSON
import Foundation
import XCPlayground
XCPSetExecutionShouldContinueIndefinitely()
/**
* Paste all the code from the following file
- https://github.com/lingoer/SwiftyJSON/blob/master/SwiftyJSON/SwiftyJSON.swift
**/
@jeffdonthemic
jeffdonthemic / Dockerfile
Created August 7, 2014 16:46
'Cribs' Dockerfile
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
@jeffdonthemic
jeffdonthemic / commands.md
Created August 4, 2014 15:10
Docker snippet

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

@jeffdonthemic
jeffdonthemic / httparty.rb
Last active May 2, 2024 00:45
HTTParty Examples
options = { :body =>
{ :username => 'my',
:password => 'password'
}
}
results = HTTParty.post("http://api.topcoder.com/v2/auth", options)
##
## example for post with papertrail and basic auth
##
@jeffdonthemic
jeffdonthemic / .godir
Created July 24, 2014 16:01
Building Go Web Apps Tutorial
github.com/topcoderinc/cribs
@jeffdonthemic
jeffdonthemic / q-all.js
Created July 19, 2014 11:50
Q snippets
Q.all([
salesforce.getContactByMobile(res.locals.org, '(941) 111-1111'),
twilio.getMessage("MMd3dbafbbde409a109e4c71c7684cec77")
]).then(function(results) {
console.log(results[0]);
console.log(results[1]);
});