Skip to content

Instantly share code, notes, and snippets.

@adambyram
adambyram / genesis_public_key
Created February 21, 2018 15:35
genesis_public_key
04ba45daf1df06ad63d54939106701a1e7d89b4f27d205ef4a96134c3376c4071d1f9ba549e9458fa109450bf868bbca44b773fa7a7ab2ee363a053b34176ecda2
@adambyram
adambyram / reviewDownloader.js
Created September 19, 2015 03:38
Review Downloader
var url = "https://appexchange.salesforce.com/listingDetail?listingId=a0N30000004fnkUEAQ";
var page = require('webpage').create();
var loaded = false;
var currentPage = 1;
// Set this to the highest page of reviews you want to load (e.g. if there are 1000 reviews, that's 100 pages to load)
var maximumPage = 1;
// It takes time to load each page of reviews. If this value is too low, you'll get errors because the data hasn't
// fully loaded. 15 seconds seems to always work, but 5 or 10 seconds may be enough.
//: Playground - noun: a place where people can play
class Account: Hashable {
var accountID: String = ""
var hashValue: Int = 0
}
func ==(lhs: Account, rhs: Account) -> Bool {
return lhs.accountID == rhs.accountID
}
@adambyram
adambyram / C# Template
Created May 18, 2012 04:47
Configuration to support C# (via Mono) for CodeRunner on OSX
using System;
namespace CodeRunner
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
}