Skip to content

Instantly share code, notes, and snippets.

View sicknarlo's full-sized avatar

Nick Sarlo sicknarlo

  • Philadelphia, PA
View GitHub Profile
@sicknarlo
sicknarlo / fizzbuzz
Created December 17, 2014 19:32
[CodeEval] Fizz Buzz
#include<iostream>
#include<fstream>
#include<string>
using namespace std;
int main(){
int line_count = 1;
@sicknarlo
sicknarlo / recurrence_relation
Created March 26, 2015 00:55
Prints the recurrence relation to the nth term
# Prints out recurrence relation based on 3 inputs: operations, relation, and term
# get input of operations
operations = input()
#split operations by space into list
op_list = operations.split(' ')
# get initial number
init = input()
@sicknarlo
sicknarlo / preact-google-translate-patch.ts
Created August 11, 2022 16:21
Preact Google Translate Patch
const insertBefore = Element.prototype.insertBefore;
Element.prototype.insertBefore = function <T extends Node>(
newNode: T,
referenceNode: Node | null,
): T {
if (
newNode instanceof Text &&
referenceNode instanceof HTMLElement &&
referenceNode?.localName === 'font'
@sicknarlo
sicknarlo / test_create_no_coo.csv
Created April 3, 2026 17:21
CSV ingest test files for sc-123438 - Optional COO
external_seller_reference inventory title description category designer size condition color price photo_urls shipping_us
test-no-coo-001 1 Test Listing No COO Test description for listing without country of origin tops.button_ups Polo Ralph Lauren xxs gently_used brown 50 https://media-assets.grailed.com/prd/misc/DZCTO0OMXDIIP-HDBNNXHB3MBSQXINFCYWSZUQ 8