Skip to content

Instantly share code, notes, and snippets.

@andrewshell
andrewshell / lime-fluff.md
Last active November 18, 2023 15:51
Lime Fluff Recipe
  • 1 (6 ounce) package lime flavored Jell-O® mix
  • 1 (8 ounce) container frozen whipped topping, thawed
  • 1 (20 ounce) can crushed pineapple with juice
  • 1 (16 ounce) container sour cream
  • 1 (16 ounce) package miniature marshmallows

In a large bowl, mix together gelatin, pineapple with juice, and sour cream.

Fold in whipped topping and marshmallows.

@andrewshell
andrewshell / README.md
Created December 7, 2022 04:27
Debugging rssCloud on WordPress.com

I have a test application running at test.rsscloud.io on ports 80 and 9876.

The following code works:

curl --location --request POST 'https://brokenriverbooks.com/?rsscloud=notify' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'domain=test.rsscloud.io' \
--data-urlencode 'port=80' \
--data-urlencode 'path=/feedupdated-s8759' \
--data-urlencode 'registerProcedure=' \
@andrewshell
andrewshell / Graph.edn
Created June 28, 2021 20:52
Output of script that converts Roam EDN file to OPML
#datascript/DB {:schema {:create/user {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/one}, :plugin/id {:db/unique :db.unique/identity}, :node/subpages {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :vc/blocks {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :edit/seen-by {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :window/id {:db/unique :db.unique/identity}, :attrs/lookup {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :node/windows {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :d/v {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/one}, :block/clone {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/one}, :node/sections {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :harc/v {:db/valueType :db.type/ref, :db/cardinality :db.cardinality/many}, :node/title {:db/unique :db.unique/identity}, :block/refs {:db/valueType :db.type/ref, :db/cardinality :db.car
  1. I'm in Little Outliner (using Google Chrome) and I have previously configured it to use my personal nodeStorage server.

I did this by opening the Chrome console and running:

switchServer(http://storage.shll.me:1229/);
  1. I create a new outline using "File > New..." named demo.opml
@andrewshell
andrewshell / testRedisPubSub.js
Created June 29, 2015 17:55
River4 addToRiver callback to publish itemFromParser to Redis pub/sub
var redis = require("redis"),
client = redis.createClient();
client.publish('river4.itemFromParser', JSON.stringify(itemFromParser));

Keybase proof

I hereby claim:

  • I am andrewshell on github.
  • I am andrewshell (https://keybase.io/andrewshell) on keybase.
  • I have a public key whose fingerprint is 4A4D 2023 2355 6527 437C 2ED8 0892 CD38 F63F 6708

To claim this, I am signing this object:

@andrewshell
andrewshell / UtcModel.php
Last active August 29, 2015 14:20
Laravel UTC Model
<?php namespace App\Database;
use Config;
use DateTime;
use DateTimeZone;
use Illuminate\Database\Eloquent\Model;
/**
* Always store DateTime in database as UTC
*/
@andrewshell
andrewshell / config.json
Last active August 29, 2015 14:19
MyWord: Minimum Viable Homepage
{
"urlTwitterServer": "https://storage.geekity.com/",
"urlDefaultImage": "http://scripting.com/2015/03/21/gratefulDead.png",
"googleAnalyticsAccount": "UA-39531990-1",
"templates": {
"Default": "http://myword.geekity.com/templates/handlebars.html"
},
"startupCode": "bootstrapHomepage();"
}
{
"urlTwitterServer": "https://storage.geekity.com/",
"urlDefaultImage": "http://scripting.com/2015/03/21/gratefulDead.png",
"googleAnalyticsAccount": "",
"templates": {
"Default": "http://myword.geekity.com/templates/default.html",
"Handlebars": {"urlTemplate": "http://myword.geekity.com/templates/handlebars.html", "templateEngine": "renderHandlebars"},
"Plain": "http://myword.io/templates/plain/template.html"
}
}
@andrewshell
andrewshell / action.php
Last active August 29, 2015 14:02
Idea on how to use specifications
<?php
class QueryLocationsAction
{
protected $repository;
// Probably need to break up repositories by "select, insert, update and delete"
// Extra bonus, we can choose to populate them with a read or write connection.
public function __construct(PdoLocationSelectRepository $repository)
{
$this->repository = $repository;