Skip to content

Instantly share code, notes, and snippets.

View ThemeDecorator.tsx
import { createMuiTheme } from "@material-ui/core";
import red from "@material-ui/core/colors/red";
import ThemeProvider from "@material-ui/styles/ThemeProvider";
import React from "react";
const themes = {
default: createMuiTheme({}),
red: createMuiTheme({
palette: {
primary: red
View out.json
{"id":"3524079e-02f9-4214-8c3e-6d6b8741a96c","name":"Root","nodes":{"-Ln9m-3BNT4_S--4-EFY":{"text":"My postcode is ","$t":100},"-Ln9m-3BNT4_S--4-EFZ":{"text":"The address of my property is ","$t":100},"-Ln9m-3BNT4_S--4-EF_":{"text":"I want to","$t":100},"-Ln9m-3BNT4_S--4-EFa":{"text":"modify or extend","$t":200},"-Ln9m-3BNT4_S--4-EFb":{"text":"The property is","$t":100,"val":"property.buildingType"},"-Ln9m-3BNT4_S--4-EFc":{"text":"a detached house","$t":200,"val":"houseDetached"},"-Ln9m-3BNT4_S--4-EFd":{"text":"House triage","$t":300},"-Ln9m-3BNT4_S--4-EFe":{"text":"a semi detached house","$t":200,"val":"houseSemiDetached"},"-Ln9m-3BNT4_S--4-EFf":{"text":"a terraced house","$t":200,"val":"houseTerrace"},"-Ln9m-3BNT4_S--4-EFg":{"text":"a flat","$t":200,"val":"flat"},"-Ln9m-3BNT4_S--4-EFh":{"text":"I want to","$t":100,"info":"Adding an extension or an outbuilding to a flat (even if it is located on the ground floor, or has a roof terrace) will require planning permission."},"-Ln9m-3BNT4_S--4-EFi":{"text":"exten
View out.json
{"id":"f300cfe7-6d43-4607-ab25-065972c3e768","name":"Root","nodes":{"-LmyO78dZpe5KrnaxUr_":{"text":"My postcode is ","$t":100},"-LmyO78dZpe5KrnaxUra":{"text":"The address of my property is ","$t":100},"-LmyO78dZpe5KrnaxUrb":{"text":"I want to","$t":100},"-LmyO78dZpe5KrnaxUrc":{"text":"modify or extend","$t":200},"-LmyO78eMEDBjXejcQk7":{"text":"The property is","$t":100},"-LmyO78eMEDBjXejcQk8":{"text":"a detached house","$t":200},"-LmyO78eMEDBjXejcQk9":{"text":"House triage","$t":300},"-LmyO78eMEDBjXejcQkA":{"text":"a semi detached house","$t":200},"-LmyO78eMEDBjXejcQkB":{"text":"a terraced house","$t":200},"-LmyO78eMEDBjXejcQkC":{"text":"a flat","$t":200},"-LmyO78eMEDBjXejcQkD":{"text":"I want to","$t":100},"-LmyO78eMEDBjXejcQkE":{"text":"extend","$t":200,"flag":"EDGE_CASE"},"-LmyO78eMEDBjXejcQkF":{"text":"build an outbuilding","$t":200,"flag":"EDGE_CASE"},"-LmyO78eMEDBjXejcQkG":{"text":"make alterations","$t":200},"-LmyO78eMEDBjXejcQkH":{"text":"Alterations Triage","$t":300},"-LmyO78eMEDBjXejcQkI":{"text":"a
View parsegitmodules.js
const fs = require("fs");
const file = fs.readFileSync(".gitmodules").toString();
function parseGitModules(data, _callback) {
var gitModules = data.split("["),
subModulesCollections = [];
gitModules.forEach(function(submodules) {
if (/^submodule*/.test(submodules)) {
View README
Actions {
:branch
:create_node
:update_node
:remove_node
:create_edge
:remove_edge
}
Action.create(type, actor, at, payload)
View gist:d19a2e65733b832cb1f58088e03a9c75
Scene.near('hackney, london, uk', 50, units: :km).where('data::text ilike ?', '%Building%').map{|s| s.data['url']}.count
View Brewfile
tap "heroku/brew"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-fonts"
tap "homebrew/core"
brew "atomicparsley"
brew "direnv"
brew "ffmpeg"
brew "gnupg"
View Brewfile
tap "heroku/brew"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
brew "gnupg"
brew "hub"
brew "hugo"
brew "yarn"
brew "heroku/brew/heroku"
View info.js
export default [
{
priority: 6,
id: 'LIKELY_FAIL',
name: 'Likely refusal',
icon: 'warning',
color: 'red',
safeColor: 'red',
description:
'Your project will require planning permission. Based on the information you have provided, it does not comply with local planning policies and guidance and is therefore likely to be refused, except in unusual circumstances.',
View vscode.json
{
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.cursorBlinking": "solid",
"editor.cursorStyle": "block",
"editor.fontFamily": "Monoid",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.fontWeight": "400",