Skip to content

Instantly share code, notes, and snippets.

View jeremyjs's full-sized avatar

Jeremy Meyer jeremyjs

  • San Francisco, CA
View GitHub Profile
@jeremyjs
jeremyjs / .bashrc
Last active December 30, 2023 03:58
.bashrc
# Core Aliases
alias la="ls -al"
# Git Aliases
alias ga="git add"
alias gaa="git add -A"
alias gb="git branch"
alias gbd="git branch -D"
alias gbv="git branch -vvva"
alias gc="git commit"
@jeremyjs
jeremyjs / notion-vs-markdown.md
Last active November 22, 2023 19:29
notion-vs-markdown

Notion has several features that cannot be directly translated to Markdown due to the inherent limitations of Markdown's simpler syntax. These include:

  • Databases: Notion's powerful database feature allows users to create tables, boards, lists, and more, complete with custom fields and properties. Markdown, being a text formatting language, does not support database functionalities.

  • Page Embedding and Linking: Notion allows for complex page embedding and linking, where entire pages can be nested within each other. Markdown supports hyperlinks but not the embedding of one document within another.

  • Interactive Elements: Notion supports interactive elements like checkboxes, toggles, and date pickers, which are not natively supported in Markdown.

  • Rich Media Embedding: While Markdown supports basic image embedding, Notion goes further by allowing the embedding of videos, web bookmarks, audio files, and other rich media directly within pages.

@jeremyjs
jeremyjs / create_one.md
Last active January 17, 2023 18:31
aup_update_examples
{
  "aupSchemaVersion": "1.0.0",
  "updateMetadata": {
    "aupSchemaVersion": "1.0.0",
    "md5": "e2553049ce7874ce99aa6bd35cc7cb65",
    "sha1": "ac4aa987025edc6c23ee6647011064d199afe7cc",
    "updateData": {
      "updates": [
        {
@jeremyjs
jeremyjs / keybase.md
Created August 22, 2019 20:16
keybase.md

Keybase proof

I hereby claim:

  • I am jeremyjs on github.
  • I am jeremypm (https://keybase.io/jeremypm) on keybase.
  • I have a public key ASChW7129ysozQSF2fvL9QOfdaQYeIzzdlFLChdVK2NsPAo

To claim this, I am signing this object:

@jeremyjs
jeremyjs / npm-debug.log
Created March 20, 2019 04:40
npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/11.12.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'i' ]
2 info using npm@6.7.0
3 info using node@v11.12.0
4 verbose npm-session 323f91fab5437439
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall omnitrade@0.0.0
7 info lifecycle omnitrade@0.0.0~preinstall: omnitrade@0.0.0
@jeremyjs
jeremyjs / das_download.rb
Last active April 10, 2018 20:04 — forked from ckahle33/das.rb
#!/usr/bin/env ruby
#
# requirements:
# gem install mechanize
#
# usage:
# das_download.rb [download_directory]
require 'mechanize'
@jeremyjs
jeremyjs / gist:da844ea6be4c1871f083a52e710bd2d6
Created November 10, 2017 08:14
Blockstack Verification
Verifying my Blockstack ID is secured with the address 16MB6TzJXHTNSr3tvnRBQgpxZrQ7MZffxV https://explorer.blockstack.org/address/16MB6TzJXHTNSr3tvnRBQgpxZrQ7MZffxV
Verifying that "jeremymeyer.id" is my Blockstack ID. https://onename.com/jeremymeyer
#!/bin/bash
set -eo pipefail
# TODO: check and perform stash if needed
# TODO: save current branch and return after release
# git add -A
# git stash
LATEST_TAG="$(git describe --tags `git rev-list --tags --max-count=1`)"
const _ = require('lodash');
const ensureReqHasAttr = (attr) => (
(req, res, next) => {
if (!_.has(req, attr)) {
return res.status(400).json({ error: `Request must contain ${attr}` });
}
next();
}
);