Skip to content

Instantly share code, notes, and snippets.

View thetwosents's full-sized avatar

Jon Senterfitt thetwosents

View GitHub Profile
@thetwosents
thetwosents / jons-ai.js
Created February 12, 2022 23:22
A malformed JS file that I use to transfer a frontal lobe of information between text editors with Github Copilot. Use at your own discretion.
// Package name: @strongstart/npcs
// Author: Jon Senterfitt
// Description: This is the NPC package for the StrongStart platform's Company Collector video game
// Is Cloud alive?
const isCloudAlive = true;
// Is the player alive?
const isPlayerAlive = true;
// Marketing copy:
// "Our current mission in Web3 is to make it easy to build applications that run on the Ethereum blockchain."
// "We are building a new kind of application that will allow people to build their own decentralized applications."
// "We have been working on building a new kind of application that will allow people to build their own decentralized applications."
// "We expect delivery of updated roadmaps within the next few months."
// "We welcome your feedback and suggestions."
// "We are a DAO and are not affiliated with the Ethereum Foundation."
// "We have no affiliation with the Ethereum Foundation."
// "We are a decentralized autonomous organization that is focused (currently) on building decentralized applications for the Polygon blockchain."
// "Matic is much more cost effective than other alternatives."
@thetwosents
thetwosents / @strongstart-core
Last active January 6, 2022 05:13
Javascript core file for the StrongStart platform
/*
package_name: @strongstart/core
contribute_email: jon@strongstart.io
author: Jon Senterfitt
owned_by: StrongStart
version: 1.0.0
description: StrongStart Core Library
documentation:
@thetwosents
thetwosents / hello.js
Last active November 19, 2021 14:33
StrongStart's welcome mat for the metaverse.
/*
▄████████ ███ ▄████████ ▄██████▄ ███▄▄▄▄ ▄██████▄ ▄████████ ███ ▄████████ ▄████████ ███
███ ███ ▀█████████▄ ███ ███ ███ ███ ███▀▀▀██▄ ███ ███ ███ ███ ▀█████████▄ ███ ███ ███ ███ ▀█████████▄
███ █▀ ▀███▀▀██ ███ ███ ███ ███ ███ ███ ███ █▀ ███ █▀ ▀███▀▀██ ███ ███ ███ ███ ▀███▀▀██
███ ███ ▀ ▄███▄▄▄▄██▀ ███ ███ ███ ███ ▄███ ███ ███ ▀ ███ ███ ▄███▄▄▄▄██▀ ███ ▀
▀███████████ ███ ▀▀███▀▀▀▀▀ ███ ███ ███ ███ ▀▀███ ████▄ ▀███████████ ███ ▀███████████ ▀▀███▀▀▀▀▀ ███
███ ███ ▀███████████ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▀███████████ ███
▄█ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ▄█ ███ ███ ███ ███ ███ ███ ███
▄████████▀ ▄████▀ ███ ███ ▀██████▀ ▀█ █▀ ███████
@thetwosents
thetwosents / flare.json
Last active April 16, 2018 18:22
flare.json
[
{
"id": 1,
"name": "Social Revolt Services"
},
{
"id": 2,
"name": "Social Media Strategy",
"parent": 1
},
{
"name": "flare",
"children": [
{
"name": "Prime",
"children": [
{
"name": "cluster",
"children": [
{"name": "AgglomerativeCluster", "size": 3938},
@thetwosents
thetwosents / starredRepositories
Last active May 28, 2017 14:42
GitHub GraphQL to query starredRepositories
# Get all starred repos for current user
query {
viewer {
login
starredRepositories(last:100) {
edges {
node {
id
name
owner {
@thetwosents
thetwosents / gist:6b03a242819b172cbac1
Last active August 29, 2015 14:17
Cross-origin iframe height resize based on inner content of iframe
// This gist is intended for the age old problem of cross-origin iframe resizing for the height of an iframe to look like part of a site rather than a POS iframe.
// Put in the iframe code (after all of your content has loaded or at the end of success event for final ajax calls)
// This sends the height as an available variable for the parent page to grab.
window.parent.postMessage($(document).height(), "*");
// In the parent page code. Initialize with onload="resizeIframe()".
// This grabs that variable and then sets the iframe height based on whatever is being sent back from the iframe
function resizeIframe() {
var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent";