Skip to content

Instantly share code, notes, and snippets.

View no-stack-dub-sack's full-sized avatar

Peter Weinberg no-stack-dub-sack

  • Brooklyn, NY
  • 00:06 (UTC -04:00)
View GitHub Profile
@rapsacnz
rapsacnz / Utilities.cls
Created June 20, 2017 22:01
Apex Utilities
/**
* Created by caspar on 20/05/16.
*/
public without sharing class Utilities {
public static Map<String, List<String>> fieldsForType = new Map<String, List<String>>();
/**
* Retrieves a list of sObjects
@chrissimpkins
chrissimpkins / gist:5bf5686bae86b8129bee
Last active March 6, 2023 00:10
Atom Editor Cheat Sheet: macOS

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
function hash(str) {
var len = str.length;
var hash = 5381;
for (var idx = 0; idx < len; ++idx) {
hash = 33 * hash + str.charCodeAt(idx);
}
return hash;
}