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
module Main where | |
import Prelude | |
import Control.Monad.Eff.Console (log) | |
-- Define the types of data used by the game. | |
-- `Rock`, a data type, is better than `"Rock"`, a String, | |
-- because the compiler can help us. The number of possible | |
-- values of a String is huuuuuge, but the number of possible | |
-- values of a RpsChoice is only three. Well-defined choices |
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 Dishwasher { | |
public enum StatusCode { READY_TO_WASH, WASHING, READY_TO_EMPTY } | |
public enum Reason { OK, FULL, MUST_REMOVE_DISHES, MUST_EXECUTE_WASH_CYCLE } | |
public Integer capacity {get; set;} // 0 - 100 | |
public StatusCode status {get; set;} | |
public hasSoap {get; set;} | |
public Dishwasher() { |
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
/* | |
Curious about how many people are attending your session? | |
Use this JS scriptlet to find out how many people will be attending your session! | |
Open the DF12 Agenda Builder web app. Open the developer tools for your browser, | |
copy this entire gist into the JS command line, and run it. | |
A list of all sessions for which you are registered will be shown with |
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 ServiceRequestTrigger { | |
private final Map<Id, Service_Request__c> oldMap; | |
private final Map<Id, Service_Request__c> newMap; | |
private final List<Service_Request__c> newObjs; | |
private final Boolean isInsert; | |
private final Boolean isUpdate; | |
private final Boolean isDelete; | |
private final Boolean isBulk; | |
/** |
NewerOlder