This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function TailwindIndicator() { | |
if (process.env.NODE_ENV === 'production') return null | |
return ( | |
<div className="fixed bottom-1 left-1 z-50 flex size-6 items-center justify-center rounded-full bg-gray-800 p-3 font-mono text-xs text-white"> | |
<div className="block sm:hidden">xs</div> | |
<div className="hidden sm:block md:hidden">sm</div> | |
<div className="hidden md:block lg:hidden">md</div> | |
<div className="hidden lg:block xl:hidden">lg</div> | |
<div className="hidden xl:block 2xl:hidden">xl</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please avoid the usage of the following top 100 adjectives proven to be disproportionately used more frequently by AI: | |
- commendable | |
- versatile | |
- fresh | |
- profound | |
- fascinating | |
- intriguing | |
- prevalent | |
- proactive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import random | |
# Initialize variables | |
n_rows = 42 | |
n_cols = 42 | |
total_squares = n_rows * n_cols | |
half_squares = total_squares // 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import libraries | |
import pandas as pd | |
import seaborn as sns | |
import matplotlib.pyplot as plt | |
from dotenv import load_dotenv | |
from alpaca_trade_api import REST, TimeFrame | |
import plotly.graph_objects as go | |
import plotly.express as px | |
import os | |
from datetime import datetime, timedelta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { networkInterfaces } = require('os'); | |
const nets = networkInterfaces(); | |
const results = Object.create(null); // Or just '{}', an empty object | |
for (const name of Object.keys(nets)) { | |
for (const net of nets[name]) { | |
// Skip over non-IPv4 and internal (i.e. 127.0.0.1) addresses |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- orgID --> | |
<script> | |
var orgID = ("9ac76"); | |
var orgIDClasses = document.getElementsByClassName("org-id"); | |
for (var i = 0; i < orgIDClasses.length; i++) { | |
orgIDClasses[i].innerHTML = (orgID); | |
} | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
MemberStack.onReady.then(function(member) { | |
// do things with the member object | |
console.log(member["id"]) | |
console.log(member["email"]) | |
console.log(member["first-name"]) | |
console.log(member["last-name"]) | |
// check if member is logged in | |
member.loggedIn // returns true or false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Enable quick search via Isotope--> | |
<script src="https://npmcdn.com/[email protected]/dist/isotope.pkgd.js"></script> | |
<script> | |
// quick search regex | |
var qsRegex; | |
// init Isotope | |
var $grid = $('.w-dyn-items').isotope({ | |
itemSelector: '.w-dyn-item', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Start of Google Analytics Event tracking code --> | |
<script> | |
$(document).ready(function() { | |
$(document).on('click', '[data-gatrack]', function(e) { | |
var $link = $(this); | |
var commaSeperatedEventData = $link.data('gatrack'); | |
var eventParams = commaSeperatedEventData.split(','); | |
if (!eventParams) { return; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// magical JS snippet | |
$(document).ready(function() { | |
$("[data-gatrack]").each(function(i,item){ | |
var json = JSON.parse($(this).siblings("[ga-track-json]").find('script').text()); | |
var attr = $(this).attr("data-gatrack"); | |
var new_track = attr.replace('{0}',json.provider_name); | |
$(this).attr('data-gatrack', new_track); | |
}); | |
}); |