Skip to content

Instantly share code, notes, and snippets.

View StanLindsey's full-sized avatar

Stan Lindsey StanLindsey

View GitHub Profile
@StanLindsey
StanLindsey / config.ts
Last active August 13, 2020 09:02
Request Abstraction
// Default Headers, you may want to split this out for authed requests also.
const defaultHeaders = {
"content-type": "application/json"
};
// BaseURL
const baseURL = `${ENV_VAR_FOR_BASE_PATH}/my/lovely/api`;
// Routes
const routes = {
{
"date": {
"id": 99,
"type": "FieldtypeDatetime",
"flags": 0,
"name": "date",
"label": "",
"dateOutputFormat": "l, j F Y g:i a",
"collapsed": 0,
"size": 25,
{
"event": {
"id": 30,
"name": "event",
"fieldgroups_id": "event",
"flags": 0,
"cache_time": 0,
"useRoles": 0,
"noInherit": 0,
"childrenTemplatesID": 0,
{
"type": "ProcessWire:PageArray",
"created": "2017-08-29 04:37:53",
"version": "3.0.73",
"user": "admin",
"host": "",
"pages": [
{
"type": "ProcessWire:Page",
"path": "/",
#include <stdio.h>
#include <cs50.h>
#include <math.h>
int main(void)
{
printf("How Much Change?\n");
float change;
change = GetFloat();
@StanLindsey
StanLindsey / gist:6254680
Created August 17, 2013 00:47
Enable macbook 2 finger right click + right click in bottom corner.
defaults -currentHost write -g com.apple.trackpad.enableSecondaryClick -bool YES

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.