Skip to content

Instantly share code, notes, and snippets.

View BideoWego's full-sized avatar
:octocat:
Yarp

Chris Scavello BideoWego

:octocat:
Yarp
View GitHub Profile
@BideoWego
BideoWego / whatIsThisJawn.js
Created April 12, 2024 19:12
Wanna FAFO what a jawn is? Use this javascript function!
/**
* Wanna FAFO what a jawn is? Use this function!
* @param {*} jawn The jawn. Any jawn.
* @returns {string} What the jawn is...
*/
function whatIsThisJawn(jawn) {
let answer = 'Yo this jawn is';
if (jawn === undefined || jawn === null) {
return `${answer} ${jawn}`;
@BideoWego
BideoWego / dictionary.json
Created January 26, 2018 02:28
English dictionary in JSON and words in raw text
This file has been truncated, but you can view the full file.
{
"a": "The first letter of the English and of many other alphabets.The capital A of the alphabets of Middle and Western Europe, as alsothe small letter (a), besides the forms in Italic, black letter,etc., are all descended from the old Latin A, which was borrowed fromthe Greek Alpha, of the same form; and this was made from the firstletter (Aleph, and itself from the Egyptian origin. The Aleph was aconsonant letter, with a guttural breath sound that was not anelement of Greek articulation; and the Greeks took it to representtheir vowel Alpha with the ä sound, the Phoenician alphabet having novowel symbols. This letter, in English, is used for several differentvowel sounds. See Guide to pronunciation, §§ 43-74. The regular longa, as in fate, etc., is a comparatively modern sound, and has takenthe place of what, till about the early part of the 17th century, wasa sound of the quality of ä (as in far).",
"ab": "The fifth month of the Jewish year according to theecclesiastical reckoning, the eleventh by the
@BideoWego
BideoWego / a_rails_rspec_checklist\README.md
Last active January 13, 2022 12:20
Rails Spec setup checklist, helper and support files

Rails RSpec Checklist

  • Ensure turbolinks is disabled for good measure

    • comment out gem
    • remove from javascript asset pipeline
    • remove from application layout
  • Add the following gems to Gemfile in a development, test group

    • hirb
@BideoWego
BideoWego / deploy_react_express_heroku_surge\checklist.md
Last active October 22, 2020 11:26
Deploy React to Surge and Express to Heroku Checklist

Deploy Full-Stack React/Express App to Heroku and Surge

Express/Heroku

CORS Server-Side

  1. Set NODE_ENV to production on Heroku with heroku config:set NODE_ENV=production
  2. This sets the NODE_ENV environment variable on Heroku
@BideoWego
BideoWego / kitchen-sink.html
Last active February 28, 2020 09:42
HTML Kitchen Sink, all of the HTML elements in order for styling, testing, etc..
<h1>HTML Kitchen Sink</h1>
<h2>a</h2>
<a href="#">a</a>
<br>
<h2>abbr</h2>
<abbr title="abbr">Mr. Mrs. Dr.</abbr>
<br>
@BideoWego
BideoWego / model.py
Last active December 16, 2019 16:55
Simple Python Model class for use with SQLite3
import sqlite3
class Model:
def __init__(self, db, table):
self.db = db
self.table = table
self.connection = sqlite3.connect(db + '.db')
self.connection.row_factory = sqlite3.Row
def create(self, row):
@BideoWego
BideoWego / Font Awesome 4.3.0
Last active September 22, 2019 23:50
A full list of Font Awesome 4.3.0 css classes, html entities and css character codes separated 1 space for easy formatting into an array or hash
fa-adjust &#xf042; \f042
fa-adn &#xf170; \f170
fa-align-center &#xf037; \f037
fa-align-justify &#xf039; \f039
fa-align-left &#xf036; \f036
fa-align-right &#xf038; \f038
fa-ambulance &#xf0f9; \f0f9
fa-anchor &#xf13d; \f13d
fa-android &#xf17b; \f17b
fa-angellist &#xf209; \f209
@BideoWego
BideoWego / artful.js
Created April 17, 2019 18:52
Spell `artful` with arrays, logic, and numbers
([[1 == []][0] + []][0][1]) + ([[0 == []][0] + []][0][1]) + ([[0 == []][0] + []][0][0]) + ([[] + [][0]][0][4]) + ([[] + [][0]][0][0]) + ([[1 == []][0] + []][0][2])
@BideoWego
BideoWego / say.js
Created January 11, 2019 21:29
Say something with speech synthesis in the browser or compatible JS APIs
function say(phrase) {
speechSynthesis.speak(new SpeechSynthesisUtterance(phrase));
}
// Ex.
say('Happy Friday :)');
@BideoWego
BideoWego / estimated_time_remaining.js
Last active December 6, 2018 16:20
Calculate and output the estimated time remaining on a large number of batched promises and asynchronous tasks
var NUM_COUNT = 1000;
var _nums;
function _everyFiveWaitASecond() {
var chunk = function(i, results) {
results = results || [];
console.log('chunk(', i, ')');
if (!_nums.length) {