Skip to content

Instantly share code, notes, and snippets.

public class Build {
//------------------------------------------------------------------------------
//Account
public class AccountBuilder {
public AccountBuilder withName(String name) {
this.name = name;
return this;
@wwright999
wwright999 / categorial_neural.py
Last active July 6, 2018 18:34
Tensor Flow Example of Neural Network with categorical variable encoding
import random
import pandas
from sklearn.cross_validation import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import accuracy_score
from sklearn.preprocessing import LabelEncoder
from sklearn.utils import check_array
import tensorflow as tf
@BFinc
BFinc / SimpleSalesforceConnection.js
Created December 7, 2017 23:55 — forked from stomita/SimpleSalesforceConnection.js
A Google Apps Script, which simply connects and fetches data from Salesforce RESTful API with OAuth authentication.
/**
* Connect and fetch Salesforce data via OAuth
*/
function queryDataFromSalesforce() {
// Read OAuth consumer key / secret of this client app from script properties,
// which can be issued from Salesforce's remote access setting in advance.
var sfConsumerKey = ScriptProperties.getProperty("sfConsumerKey");
var sfConsumerSecret = ScriptProperties.getProperty("sfConsumerSecret");
if (!sfConsumerKey || !sfConsumerSecret) {
Browser.msgBox("Register Salesforce OAuth Consumer Key and Secret in Script Properties");