Skip to content

Instantly share code, notes, and snippets.

View samgiles's full-sized avatar
🗺️

Sam Giles samgiles

🗺️
  • Citymapper
  • London
View GitHub Profile
class Cmake < Formula
desc "Cross-platform make"
homepage "https://www.cmake.org/"
url "https://github.com/Kitware/CMake/releases/download/v3.19.7/cmake-3.19.7.tar.gz"
sha256 "58a15f0d56a0afccc3cc5371234fce73fcc6c8f9dbd775d898e510b83175588e"
license "BSD-3-Clause"
head "https://gitlab.kitware.com/cmake/cmake.git"
# The "latest" release on GitHub has been an unstable version before, so we
# check the Git tags instead.
@samgiles
samgiles / keybase.md
Created October 14, 2020 15:29
keybase.md

Keybase proof

I hereby claim:

  • I am samgiles on github.
  • I am samgiles (https://keybase.io/samgiles) on keybase.
  • I have a public key whose fingerprint is 931D 1228 A7A1 7D43 991B F823 6AA0 F17C AB7C 7B01

To claim this, I am signing this object:

public static void main(String[] args) {
Integer x = 128;
Integer y = 128;
Integer a = 127;
Integer b = 127;
if (a == b) {
System.out.println("a == b");
} else {
System.out.println("a != b");
@samgiles
samgiles / schemav2.sql
Last active January 20, 2017 15:44
Initial Postgres (+PostGIS ) Schema for Journey
CREATE TABLE poi (
id SERIAL PRIMARY KEY,
location GEOGRAPHY(POINT, 4326),
address TEXT
);
CREATE INDEX poi_location_index ON poi USING gist (location);
CREATE TABLE "user" (
id SERIAL PRIMARY KEY,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@samgiles
samgiles / index.html
Created September 30, 2016 17:30
Simple knock/tap detector
<html>
<body>
<script>
const state = {
x: 0,
y: 0,
z: 0,
knocked: 0,
};
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
real 135m58.539s
user 216m42.077s
sys 2m12.026s