Skip to content

Instantly share code, notes, and snippets.

View bentok's full-sized avatar

Ben Copeland bentok

View GitHub Profile
@bentok
bentok / all_aws_managed_policies.json
Created May 7, 2022 20:20 — forked from bernadinm/all_aws_managed_policies.json
A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
{
"AWSAccountActivityAccess": {
"Arn": "arn:aws:iam::aws:policy/AWSAccountActivityAccess",
"AttachmentCount": 0,
"CreateDate": "2015-02-06T18:41:18+00:00",
"DefaultVersionId": "v1",
"Document": {
"Statement": [
{
"Action": [
@bentok
bentok / angle-between-points.js
Last active March 11, 2018 17:25 — forked from conorbuck/angle-between-points.js
JavaScript: Find the angle between two points
var p1 = {
x: 20,
y: 20
};
var p2 = {
x: 40,
y: 40
};
@bentok
bentok / angle-between-points.js
Created March 11, 2018 17:23 — forked from conorbuck/angle-between-points.js
JavaScript: Find the angle between two points
var p1 = {
x: 20,
y: 20
};
var p2 = {
x: 40,
y: 40
};
@bentok
bentok / observe.js
Created September 2, 2017 22:46
Object observe with proxy
class Observer {
static get TypeNewConst() {
return 'New';
}
static get TypeUpdateConst() {
return 'Update';
}
static get TypeDeleteConst() {
return 'Delete';
}
@bentok
bentok / gist:59045fb30818c1ed24ba51abff1256f5
Last active July 12, 2019 14:15
Visual Studio Code Settings
{
// -------- General editor settings -------
"editor.insertSpaces": true,
"explorer.openEditors.visible": 25,
"search.exclude": {
"**/.tmp": true,
"**/node_modules": true,
"**/dist": true,
},
"explorer.autoReveal": true,
@bentok
bentok / Contract Killer 3.md
Created December 21, 2015 21:45
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post