Instantly share code, notes, and snippets.

View chippy.json
{
"<start>": "<menu-items>",
"<menu-items>": ["<batter> fish", "<batter> chips", "curry chips", "fried chicken", "<batter> cod", "<batter> haddock", "<batter> plaice", "<batter> skate", "fish cake", "<batter> scampi", "fish fingers", "nuggets", "<big> <batter> <vege> saussage", "<big> <batter> saveloy", "<batter> roe", "<batter> onion rings", "beef burger", "cheeseburger", "chicken burger", "<vege> burger","jacket potato", "<pie-ingredient> pie", "<condiments>", "<mush> peas", "coleslaw", "gravy", "pickled <pickling>", "brown sauce", "<drink>", "<punctuation>"],
"<drink>": ["coke", "orange pop", "irn-bru", "lemonade", "<salad-type> salad"],
"<kebab>": [],
"<salad-type>": ["greek", "prawn", "mixed"],
"<pie-ingredient>": ["steak & kidney", "chicken & mushroom", "beef & onion"],
"<condiments>": ["vinegar", "mayonaise", "ketchup"],
"<batter>": ["", "", "", "", "battered"],
"<mush>": ["", "mushy"],
View main.cpp
#include <iostream>
#include <math.h>
#include <stdint.h>
#include <random>
#include <chrono>
#include <stdlib.h>
using namespace std;
uint64_t gcd(uint64_t a, uint64_t b);
View vertigo-harmonograph.js
// Stop after how many frames
var iterations = 4000;
// The higher the damping the less the pendulum will shift its position
// ie. damping of 1000 or more will just draw concentric spirals
var damping = 400;
function setup() {
// Create canvas
var canvas = createCanvas(500, 500);
// Give canvas an id in order to style it with CSS later
View README.md

Deploy your site with git securely

This gist assumes:

  • you have a local git repo
  • you have an online remote repository (github)
  • you have a server running Apache with git already installed

you should be able to do the same with Java, Perl, RoR, JSP etc. however you'll need to recreate the (rather simple) PHP script