Skip to content

Instantly share code, notes, and snippets.

@joshsmith
joshsmith / gist:2041454
Created March 15, 2012 02:49
Geoffrey Moore's positioning framework (for products)

Product Positioning Framework

  • For (target customers)
  • Who must (solve a specific problem)
  • Our product is a new (new product category)
  • That provides (key breakthrough benefit vs. current way of doing things – which solves dilemma)
  • Unlike (competitor in new category)
  • We have (whole product most relevant for you)
@joshsmith
joshsmith / social-icons-footer.html
Created March 25, 2013 16:20
tables, tables, tables
@joshsmith
joshsmith / schedule-f.md
Last active January 21, 2025 02:16
Executive Order on Creating Schedule F In The Excepted Service

By the authority vested in me as President by the Constitution and the laws of the United States of America, including sections 3301, 3302, and 7511 of title 5, United States Code, it is hereby ordered as follows:

Section 1. Policy. To effectively carry out the broad array of activities assigned to the executive branch under law, the President and his appointees must rely on men and women in the Federal service employed in positions of a confidential, policy-determining, policy-making, or policy-advocating character. Faithful execution of the law requires that the President have appropriate management oversight regarding this select cadre of professionals.

The Federal Government benefits from career professionals in positions that are not normally subject to change as a result of a Presidential transition but who discharge significant duties and exercise significant discretion in formulating and implementing executive branch policy and programs under the laws of the United States. The heads of executive dep

@joshsmith
joshsmith / powersync-schema.ts
Created January 28, 2024 18:19
Zod schema, Prisma schema, and TypeORM PowerSync schema
// PowerSync TypeORM schema
export const TASK_TABLE = 'task';
export interface TaskRecord {
id: string;
title: string;
description?: string;
completed: boolean;
due_date?: string;
@joshsmith
joshsmith / material-colors.json
Created May 17, 2019 14:35
Material UI colors (500) in JSON, not including greys and browns
{
"red": "#f44336",
"pink": "#e91e63",
"purple": "#9c27b0",
"deeppurple": "#673ab7",
"indigo": "#3f51b5",
"blue": "#2196f3",
"lightblue": "#03a9f4",
"cyan": "#00bcd4",
"teal": "#009688",
@joshsmith
joshsmith / mysqlbackup.php
Created October 30, 2010 22:16
A PHP script for emailing and saving MySQL backups with mysqldump.
<?
// Creates a mysqldump and emails the resulting dump file
// Edit the following values
$dbhost = "DBHOST"; // usually localhost
$dbuser = "DBUSER";
$dbpass = "DBPASS";
$dbname = "DBNAME";
$sendTo = "paranoid.programmer@email.com";
$sendToName = "SEND_TO_EMAIL";
@joshsmith
joshsmith / addon.md
Last active March 9, 2017 01:59 — forked from begedin/addon.md

Including the library

Sadly, elements is not a separate library.

It's just a part of the still in development Stripe.js v3, so the only way to include it is to include the whole script in the page somewhere. There is no bower library, no amd/require/commonjs package of any sort.

This is the only way to include it:

@joshsmith
joshsmith / stripe_states.js
Created December 17, 2016 07:02
Stripe Supported States (as of 12/16/2016)
{ name: "Alabama", id: "AL" },
{ name: "Alaska", id: "AK" },
{ name: "Arizona", id: "AZ" },
{ name: "Arkansas", id: "AR" },
{ name: "California", id: "CA" },
{ name: "Colorado", id: "CO" },
{ name: "Connecticut", id: "CT" },
{ name: "Delaware", id: "DE" },
{ name: "District of Columbia", id: "DC" },
{ name: "Florida", id: "FL" },
import Ember from 'ember';
const {
Component,
computed,
get,
run,
set
} = Ember;
@joshsmith
joshsmith / controllers.application.js
Last active November 24, 2016 05:23
Radio Buttons
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
model: function() {
return {
choices: [
'friend',
'foe'
]