Skip to content

Instantly share code, notes, and snippets.

🌵

Maxx Crawford maxxcrawford

🌵
Block or report user

Report or block maxxcrawford

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View monica.css
* {box-sizing: border-box}
[hidden] {display: none !important}
[disabled] {pointer-events:none; opacity: 0.3}
.horizontal {display: flex; flex-direction: row; justify-content: space-between}
.vertical {display: flex; flex-direction: column}
.center {justify-content: center; align-items: center}
.flex {flex: 1}
html {
--spacing-xs: 8px;
--spacing: 24px;
@maxxcrawford
maxxcrawford / normandyDohTestScript-Enable-120.js
Created Dec 17, 2019
Run to simulate enrollment in v3 Doh Add-on study, and receive the v1.2.0 of the DoH Rollout add-on ENABLED
View normandyDohTestScript-Enable-120.js
{
"id": 883,
"last_updated": "2019-11-28T04:32:58.623288Z",
"name": "DoH US Engagement Study V3",
"enabled": true,
"is_approved": true,
"revision_id": 2853,
"action": "branched-addon-study",
"arguments": {
"branches": [
@maxxcrawford
maxxcrawford / normandyDohTestScript-Disable.js
Last active Dec 10, 2019
Run to simulate enrollment in v3 Doh Add-on study, and receive the v1.1.0 of the DoH Rollout add-on DISABLED
View normandyDohTestScript-Disable.js
{
"id": 883,
"last_updated": "2019-11-28T04:32:58.623288Z",
"name": "DoH US Engagement Study V3",
"enabled": true,
"is_approved": true,
"revision_id": 2853,
"action": "branched-addon-study",
"arguments": {
"branches": [
@maxxcrawford
maxxcrawford / normandyDohTestScript-Enable-110.js
Last active Dec 17, 2019
Run to simulate enrollment in v3 Doh Add-on study, and receive the v1.1.0 of the DoH Rollout add-on ENABLED
View normandyDohTestScript-Enable-110.js
{
"id": 885,
"last_updated": "2019-12-10T20:09:30.699438Z",
"name": "DoH US Engagement Study V4",
"enabled": true,
"is_approved": true,
"revision_id": 2857,
"action": "branched-addon-study",
"arguments": {
"slug": "addon-doh-us-engagement-study-v4-release-70-72-bug-1599650",
@maxxcrawford
maxxcrawford / normandyDohTestScript.js
Created Dec 5, 2019
Run to simulate enrollment in v2 Helped add-on study, and receive the v1.0.4 of the DoH Rollout add-on
View normandyDohTestScript.js
{
"id": 875,
"last_updated": "2019-11-15T21:49:09.103837Z",
"name": "DoH US Engagement Study V2 - Add-on helper",
"enabled": true,
"is_approved": true,
"revision_id": 2821,
"action": "branched-addon-study",
"arguments": {
"branches": [
View CMSFormScript.js
const arrayStartHour = [
"TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_0__StartHour", "TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_1__StartHour", "TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_2__StartHour", "TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_3__StartHour", "TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_4__StartHour"
];
for (day of arrayStartHour) {
document.getElementById(day).value=9
}
const arrayFinishHour = [
"TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_0__FinishHour", "TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_1__FinishHour", "TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_2__FinishHour", "TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_3__FinishHour", "TimesheetUkWeeklyOnlineModel_TimesheetDetailModels_4__FinishHour"
View mozconfig-2019
# Define where build files should go. This places them in the directory
# "obj-ff-dbg" under the current source directory
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg
# Enable debug builds
# ac_add_options --enable-debug
# Get the macOS 10.13 SDK
# ac_add_options --with-macos-sdk=$HOME/SDK-archive/MacOSX10.13.sdk/
View keybase.md

Keybase proof

I hereby claim:

  • I am maxxcrawford on github.
  • I am maxxcrawford (https://keybase.io/maxxcrawford) on keybase.
  • I have a public key ASAx6UxPYEkWSJ1k2Ag_sR16mqzrrwMCKQ-c82mATfObrgo

To claim this, I am signing this object:

@maxxcrawford
maxxcrawford / netflix-fba-id-response.html
Created Apr 1, 2019
Example script of FB Ad ID implimentation on Netflix.com
View netflix-fba-id-response.html
<!DOCTYPE html>
<html>
<head>
<script>
module = {};
module.exports=function(){var e={tags:{fb_simplicity_cancelConfirm:{tagHtml:'<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=829253787145710&amp;ev=Cancel" />',logOnly:!(window.onerror=function(e,t,n,o,a){r("object"==typeof i?i:{},void 0,{msg:e,url:t,line:n,col:o,err:a})}),throttle:"none"},fb_simplicity_homeScreen:{tagHtml:'<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=829253787145710&amp;ev=ViewContent" />',logOnly:!1,throttle:"once_per_day"},fb_simplicity_nmLanding:{tagHtml:'<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=829253787145710&amp;ev=NM_landing" />',logOnly:!1,throttle:"once_per_visitor"},fb_simplicity_orderFinal:{tagHtml:'<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=829253787145710&amp;ev=Purchase&amp;cd[Group_status]=Nantucket" />',logOnly:!1,throttle:"once_per_sess
@maxxcrawford
maxxcrawford / grid-color.js
Created Apr 1, 2019
Color selector based on column count
View grid-color.js
const colors = ['yellow', 'pink', 'blue', 'orange', 'teal']
function colorRows (colCount) {
for (let i = 0; i < items.length; i++) {
const item = items[i]
const row = Math.floor(i / colCount)
const col = i % colCount;
const index = (row + col) % colors.length
item.style.background = colors[index]
}
You can’t perform that action at this time.