Skip to content

Instantly share code, notes, and snippets.

View goody's full-sized avatar
💭
rimraf

Scot Goodhart goody

💭
rimraf
  • Luminix Inc.
  • Chicago/Coachella Valley
View GitHub Profile
@goody
goody / autofill.css
Created June 30, 2021 19:40
Target webkit browsers' autofill styling
/* Removing the autofill gray box; 'transparent' doesn't work for box-shadow */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
@goody
goody / info.js
Created April 10, 2020 16:46
js engine info
function myFunction() {
var x = "User-agent header sent: " + navigator.userAgent;
document.getElementById("demo").innerHTML = x;
}
@goody
goody / regexes.txt
Created February 23, 2020 20:15
all my regexes live in texas
Get entire line that ends with 'a'
.*(?<!a)$
@goody
goody / getTables.sql
Created January 17, 2020 17:45
sqlite table names
SELECT name FROM sqlite_master WHERE type='table'
@goody
goody / TestFactories.apxc
Last active September 16, 2019 21:39
TestFactories.apxc
public class RandomContactFactory {
public static List<Contact> generateRandomContacts(Integer numContacts, String contactLastName) {
List<Contact> contacts = new List<Contact>();
for(Integer i=0;i<numContacts;i++) {
Contact c = new Contact(FirstName='FirstName' + i, LastName=contactLastName);
contacts.add(c);
}
return contacts;
@goody
goody / gist:42b7735d4311c38a724da20030343845
Created March 11, 2019 20:29 — forked from spudbean/gist:1558257
Look of disapproval and other emoticons
ಠ_ಠ
( ͡° ͜ʖ ͡°)
¯\_(ツ)_/¯
(╯°□°)╯︵ ┻━┻
http://www.fileformat.info/convert/text/upside-down.htm
WRTTN http://wrttn.me/30dbfd/
Unicode Emoticons
@goody
goody / api.js
Created December 7, 2018 20:56
js api
https://github.com/json-schema-faker/json-schema-faker
https://github.com/marak/Faker.js/
https://github.com/typicode/json-server
@goody
goody / rn-expo-ip.ps1
Created September 22, 2018 18:58
Setting IP for Expo on windows
$env:REACT_NATIVE_PACKAGER_HOSTNAME = "172.24.73.161"
Case bl = new Case(LastName='Lead', FirstName='Base', Lead_Number__c=1, Company='Base Company');
insert bl;
Test.startTest();
Lead tl = new Lead(LastName='Lead', FirstName='Test', Company='Test Company', Web_to_Lead_Source__c= 'Company Website');
insert tl;
Test.stopTest();
//grab inserted test lead
Lead testLead = [SELECT Lead_Number__c FROM Lead ORDER BY Lead_Number__c DESC LIMIT 1].get(0);
@goody
goody / polyfill-ie11-nodelist-foreach.js
Created May 7, 2018 14:39 — forked from bob-lee/polyfill-ie11-nodelist-foreach.js
Polyfill for IE11 missing NodeList.forEach
if ('NodeList' in window && !NodeList.prototype.forEach) {
console.info('polyfill for IE11');
NodeList.prototype.forEach = function (callback, thisArg) {
thisArg = thisArg || window;
for (var i = 0; i < this.length; i++) {
callback.call(thisArg, this[i], i, this);
}
};
}