Skip to content

Instantly share code, notes, and snippets.

@23maverick23
23maverick23 / chart011.js
Created August 14, 2020 19:38
NS: Chart 011 (Engagement Trend)
function getData() {
var recordType = "customrecord_sc_request";
var searchId = "customsearch_rcm_dealtracker_timeline";
var results = nlapiSearchRecord(recordType, searchId);
var _data = null;
var categories = [];
if (!results || results.length === 0) { return None; }
@23maverick23
23maverick23 / fix_schedule_exception.js
Created July 17, 2020 22:48
OA: Fix timesheet exception bug (Tampermonkey)
// ==UserScript==
// @name DEMO: Hide OpenAir schedule exception icons (bug workaround; 17 Jul 2020)
// @namespace http://rymo.io/
// @version 0.1
// @description DEMO: Hides all schedule exception icons on the timesheet.
// @author @rymoio
// @match https://demo.openair.com/timesheet.pl?*
// @run-at document-idle
// @grant none
// ==/UserScript==
@23maverick23
23maverick23 / notion_progress_bar.txt
Created June 18, 2020 13:48
Notion: Progress bar
slice("●●●●●●●●●●", 0, floor(prop("Progress") * 10)) + slice("◌◌◌◌◌◌◌◌◌◌", 0, ceil((1 - prop("Progress")) * 10)) + " " + format(prop("Progress") * 100) + "%"
@23maverick23
23maverick23 / notion_due_this_week.txt
Created June 18, 2020 13:48
Notion: Due This Week
(formatDate(prop("Due Date"), "YW") == formatDate(now(), "YW")) ? true : false
@23maverick23
23maverick23 / notion_days_until_due.txt
Last active June 18, 2020 13:47
Notion: Days Until Due
if(empty(prop("Due Date")), "N/A", if(dateBetween(prop("Due Date"), now(), "days") + 1 < 0, "Past Due", if(dateBetween(prop("Due Date"), now(), "days") + 1 == 0, "Today", if(dateBetween(prop("Due Date"), now(), "days") + 1 == 1, "Tomorrow", format(dateBetween(prop("Due Date"), now(), "days") + 1) + " days"))))
@23maverick23
23maverick23 / nodemon_heroku_local.sh
Created January 3, 2020 00:04
Reload Heroku local on any file change
# https://stackoverflow.com/questions/34146236/restart-heroku-local-on-file-change
nodemon --exec "heroku local" --signal SIGTERM
@23maverick23
23maverick23 / hashtags_find.sql
Created November 13, 2019 18:58
NS: Only display hashtags
REGEXP_REPLACE({your_text_field}, '(#\S+\s?)|.', '\1', 1, 0)
@23maverick23
23maverick23 / b-mind.theme
Last active October 16, 2019 13:58
Custom Slack Themes
#1d1d1d,#000000,#0ba8ca,#FFFFFF,#075566,#FFFFFF,#0ba8ca,#EB4D5C
@23maverick23
23maverick23 / randPassGen.py
Last active June 9, 2019 11:27
Python: Random password generator
#!/usr/bin/env python
import string
import random
def password_generator(size=8, chars=string.ascii_letters + string.digits):
"""
Returns a string of random characters, useful in generating temporary
passwords for automated password resets.
@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700);
/* written by riliwan balogun http://www.facebook.com/riliwan.rabo*/
.board{
width: 75%;
margin: 60px auto;
height: 500px;
background: #fff;
/*box-shadow: 10px 10px #ccc,-10px 20px #ddd;*/
}
.board .nav-tabs {