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
#!/usr/bin/env python | |
from subprocess import Popen | |
from subprocess import PIPE | |
import sys | |
import beatbox | |
# credentials to login to salesforce.com with | |
username = "user@example.org" | |
password = "Password[And Security Token If Needed]" |
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
String j = '{ "bob": "bobby" }'; | |
Map<String, String> b = (Map<String,String>) JSON.deserialize(j, Map<String,String>.class); | |
System.debug(b); |
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
public class Data { | |
public Boolean installed; | |
public String id; | |
} | |
public class Paging { | |
public String next; | |
} | |
public class Root { |
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
// | |
// Generated by JSON2Apex http://json2apex.herokuapp.com/ | |
// | |
public class JSON2Apex { | |
public class TagDimensions_Z { | |
public Pro Pro; | |
} |
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
Account a1 = new Account(name = 'woop'); | |
Account a2 = new Account(name = 'woop'); | |
Account a3 = (Account)JSON.deserialize('{"name" : "woop"}', Account.class); | |
Account a4 = (Account)JSON.deserialize(JSON.serialize(a1), Account.class); | |
System.debug( a1 == a2 ); // true | |
System.debug( a1 === a2); // false | |
System.debug( a3 == a1 ); // true | |
System.debug( a4 == a1 ); // false but should be true | |
System.debug( a3 == a4 ); // false but should be true |
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" | |
"io" | |
"net" | |
"os" | |
"path/filepath" | |
"strconv" | |
"time" |
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
Process: Fitbit Connect Menubar Helper [3804] | |
Path: /Applications/Fitbit Connect.app/Contents/MacOS/Fitbit Connect Menubar Helper.app/Contents/MacOS/Fitbit Connect Menubar Helper | |
Identifier: com.fitbit.GalileoMenubar | |
Version: 2.0.1.6761 (2.0.1.6761) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Fitbit Connect Menubar Helper [3804] | |
User ID: 501 | |
Date/Time: 2016-10-15 15:26:02.723 -0700 |
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 ( | |
"bytes" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"sync" | |
"time" |
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
#include <ESP8266WiFi.h> | |
////////////////////// | |
// WiFi Definitions // | |
////////////////////// | |
const char WiFiName[] = "<a network>"; | |
const char WiFiPwd[] = "<a password>"; | |
/////////////////////////// | |
// LED Light Controller // |
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
#include <ESP8266WiFi.h> | |
////////////////////// | |
// WiFi Definitions // | |
////////////////////// | |
const char WiFiName[] = "<network>"; | |
const char WiFiPwd[] = "<password>"; | |
/////////////////////////// | |
// LED Light Controller // |
OlderNewer