Skip to content

Instantly share code, notes, and snippets.

Avatar
🗺️

Sam Giles samgiles

🗺️
View GitHub Profile
View cmake-3.19
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.
View 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:

View weird.java
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 Jan 20, 2017
Initial Postgres (+PostGIS ) Schema for Journey
View schemav2.sql
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,
View test2.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test.geojson
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 Sep 30, 2016
Simple knock/tap detector
View index.html
<html>
<body>
<script>
const state = {
x: 0,
y: 0,
z: 0,
knocked: 0,
};
View index.html
<!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>
View gist:094073d6726d70b85fcbc54be493df33
real 135m58.539s
user 216m42.077s
sys 2m12.026s