This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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! | |
======================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import XCPlayground | |
XCPSetExecutionShouldContinueIndefinitely() | |
/** | |
Paste all the code from the following file | |
- https://github.com/lingoer/SwiftyJSON/blob/master/SwiftyJSON/SwiftyJSON.swift | |
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:application> | |
<aura:handler event="forcelogic2:BlogRequireJSEvent" action="{!c.initJS}"/> | |
<aura:registerEvent type="forcelogic2:BlogRequireJSEvent" name="requireJSEvent"/> | |
<aura:handler name="init" value="{!this}" action="{!c.doInit}" /> | |
<div id="afterLoad">Old value</div> | |
</aura:application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var app = angular.module('app'); | |
app.controller('AccountDetailCtrl', function($scope, $routeParams, Account) { | |
$scope.account = Account.get({id:$routeParams.id}); | |
$scope.mode = 'display'; | |
$scope.edit = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "accessKeyId": "akid", "secretAccessKey": "secret", "region": "us-east-1" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/nimajalali/go-force/force" | |
"github.com/nimajalali/go-force/sobjects" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global with sharing class AngularDemoController { | |
// hardcode an account id for demo purposes | |
static String accountId = '0017000001CwYz9'; | |
global static String getAccount() { | |
return JSON.serialize([select name, billingstreet, | |
billingcity, billingstate, billingpostalcode | |
from account where id = :accountId][0]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestResource(urlMapping='/v.9/member/*/results/*') | |
global with sharing class MemberRestSvc { | |
@HttpGet | |
global static ReturnClass doGet() { | |
String[] uriKeys = RestContext.request.requestURI.split('/'); | |
// get the member name from the uri | |
String memberName = uriKeys.get(uriKeys.size()-3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
private class Test_MemberRestSvc { | |
static { | |
// setup test data | |
} | |
static testMethod void testDoGet() { | |
RestRequest req = new RestRequest(); |