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
use <../lib/roundedcube.scad> | |
WALL_WIDTH = 1.5; | |
REMOTE_DEPTH = 16.5; | |
REMOTE_WIDTH = 35.5; | |
REMOTE_HEIGHT = 90; | |
REMOTE_LIP = 2; | |
SWITCH_WIDTH = 11; |
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
#!/bin/bash | |
pihole -w android.clients.google.com | |
pihole -w reminders-pa.googleapis.com firestore.googleapis.com | |
pihole -w googleapis.l.google.com | |
pihole -w dl.google.com | |
pihole -w www.msftncsi.com | |
pihole -w outlook.office365.com products.office.com c.s-microsoft.com i.s-microsoft.com login.live.com login.microsoftonline.com | |
pihole -w g.live.com | |
pihole -w dl.delivery.mp.microsoft.com geo-prod.do.dsp.mp.microsoft.com displaycatalog.mp.microsoft.com |
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
/** | |
* Sleep at least a second | |
* | |
* Found at: http://boards.developerforce.com/t5/Apex-Code-Development/Best-way-to-delay-until-time-changes-in-a-test/td-p/389619 | |
* | |
*/ | |
public static void waitAtLeastASecond() { | |
Integer msPerS = 1000; | |
Datetime start = Datetime.now(); | |
Datetime current = Datetime.now(); |
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
require 'restforce' | |
require 'faye' | |
Restforce.log = true | |
Restforce.configure do |config| | |
config.logger = Logger.new("/tmp/restforce.log") | |
config.log_leve = :info | |
end |
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
#!/bin/bash | |
readyn() { | |
read -n1 yn | |
} | |
loopyn() { | |
readyn | |
while [[ "$yn" != "y" && "$yn" != "n" ]] |
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
trigger MaxCases on Case (before insert) { | |
Integer maxCases = null; | |
CaseSettings__c settings = CaseSettings__c.getValues('default'); | |
if (settings != null) { | |
maxCases = Integer.valueOf(settings.MaxCases__c); | |
} | |
if (maxCases != null) { | |
Set<Id> userIds = new Set<Id>(); |
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 FootballAPI { | |
public class GameWeather { | |
public String humidity {get;set;} | |
public String temp_celsius {get;set;} | |
public String temp_farenheit {get;set;} | |
public String wind_speed {get;set;} | |
public String description {get;set;} | |
} | |
public class GameTeam { |
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
/** This class is a utility class for WebServices and other API classes */ | |
global with sharing class APIUtils { | |
/** Return codes to for returnCdoe */ | |
global final static Integer STATUS_OK = 200; | |
global final static Integer STATUS_CREATED = 201; | |
global final static Integer STATUS_ACCEPTED = 202; | |
global final static Integer STATUS_BAD = 400; | |
global final static Integer STATUS_FORBIDDEN = 403; | |
global final static Integer STATUS_NOTFOUND = 404; | |
global final static Integer STATUS_NOTALLOWED = 405; |
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
if [ -f $HOME/.bashrc_local ]; then | |
. $HOME/.bashrc_local | |
fi |
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
pmd -dir src/ -f text -language apex -R path/to/pmd.xml -cache path/to/cache/dir |
NewerOlder