Skip to content

Instantly share code, notes, and snippets.

View DServy's full-sized avatar

David Staley DServy

  • Callaway Cloud Consulting
  • Jackson
View GitHub Profile
@DServy
DServy / snake java in code.js
Last active June 6, 2019 15:37 — forked from kpaddock11/snake java in code.org
help with code to make snake die
// Create your variables here
var score = 0;
var lives = 1;
var unitWidth = 17;
var w = 5;
var l = 1;
// Create your sprites here
var line1 = createSprite(401.2, 200, 10, 400);
line1.shapeColor = (rgb(0, 0, 0));
var line2 = createSprite(-1, 200, 10, 400);
@DServy
DServy / helloWorld.js
Created August 1, 2016 19:29
helloWorld in 3 JS flavors
class HelloWorld{
static greeting = "Hello "
constructor(name){
this.name = name
}
greet(){
console.log(HelloWorld.greeting + this.name+'!')
}
}
public with sharing class PostWebservice {
public static String HOST = 'http://jsonplaceholder.typicode.com/';
public static String POST_ENDPOINT = 'posts';
public static String USER_ENDPOINT = 'users';
public static String GET_METHOD = 'GET';
public static List<String> WEBSITE_LIST = new List<String>{'anastasia.net','hildegard.org','ramiro.info'};
//Maps the string website to account id in SF
public Map<String, Id> websiteToAccountId = new Map<String, Id>();
public PostWebservice() {
//QUERY THE ACCOUNT
@DServy
DServy / Delete
Created December 18, 2015 20:28
SF Skillz Challenge
ant deploy -Ddir=/Users/dstaley/Callaway/ccc-ant-scripts/skillz -Dprop=/Users/dstaley/Callaway/ccc-ant-scripts/testbox.properties
Buildfile: /Users/dstaley/Callaway/ccc-ant-scripts/build.xml
deploy:
[input] Deploying to david@something.com Are you sure? (y, n)
y
[echo] Deploying /Users/dstaley/Callaway/ccc-ant-scripts/skillz from david@something.com
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0Afi000000LioJKCAZ
[sf:deploy] Waiting for server to finish processing the request...
33.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
16:01:04.840 (840131125)|EXECUTION_STARTED
16:01:04.840 (840281354)|CODE_UNIT_STARTED|[EXTERNAL]|01pc0000000FrKB|Test_API_V1_REST_CompileTester.runAsTestRunner
16:01:04.841 (841205158)|VARIABLE_SCOPE_BEGIN|[3]|Test_API_V1_REST_CompileTester.site|API_Site__c|true|true
16:01:04.841 (841426901)|HEAP_ALLOCATE|[72]|Bytes:3
16:01:04.841 (841480612)|HEAP_ALLOCATE|[77]|Bytes:152
16:01:04.841 (841523631)|HEAP_ALLOCATE|[342]|Bytes:408
16:01:04.841 (841577783)|HEAP_ALLOCATE|[355]|Bytes:408
16:01:04.841 (841620461)|HEAP_ALLOCATE|[467]|Bytes:48
16:01:04.841 (841661549)|HEAP_ALLOCATE|[139]|Bytes:6
@DServy
DServy / New provider result
Last active August 29, 2015 14:01
Topcon oAuth2 Provider changes
{
"access_token": "riNIdHPmBnQBRaDVEfpRKmdfsrd4vFBR-NYwGcQXKrWmUeblACUgg2bRvy7WoFtGNXcBhUuKQqCfYV0LMFq6egx7xRjdoeFS2eeT5uPWwxgu-d00EDBQntZTGSd3NAD-_uPqs7Di0OILkaKARsWB-CubCGxy0wCAWg1KVg0KyG8Kt9-qSyUGTHuSCBsaJPbKmkMuxWZn-wtSHgtOk94yFvBj1DBlnAk5qIrBbUShIkv3q0-DtWNwrvjxOER58MV",
"user": {
"accountid": "001f000000E2YKuAAN",
"administrator": true,
"billingcity": "City Here",
"billingcountry": "US",
"billingid": null,
"billingpostalcode": "80314",
"billingstate": "WY",