Skip to content

Instantly share code, notes, and snippets.

View mtetlow's full-sized avatar

Mike "Mikename" Tetlow mtetlow

  • AscendX
  • Denver CO
View GitHub Profile
@joepie91
joepie91 / .md
Last active January 27, 2018 13:26
Useful modules on NPM

Essential utilities

  • default-value: Returns either the value that's passed in, or a 'default value' if there isn't one. Useful for dealing with options.

Working with data

Type checking

  • is-array: Checks whether a value is an array.
  • is-stream: Checks whether a value is a stream of some sort.
@tstachl
tstachl / DeskSample.java
Created April 13, 2013 02:07
Example talking to the Desk.com API from Salesforce (Apex).
public class DeskSample
{
private static String OAUTH_KEY = 'youroauthkey';
private static String OAUTH_SECRET = 'youroauthsecret';
private static String ACCESS_TOKEN = 'youraccesstoken';
private static String ACCESS_TOKEN_SECRET = 'youraccesstokensecret';
public static String DESK_SITENAME = 'yoursite';
public static Void doRequest()