Skip to content

Instantly share code, notes, and snippets.

View divmgl's full-sized avatar

Dexter Miguel divmgl

  • San Francisco, CA
  • 01:35 (UTC -05:00)
  • X @divmgl
View GitHub Profile
@divmgl
divmgl / perm_missing_elem.py
Created March 24, 2017 00:16
Codility.com PermMissingElem 100%/100%
def solution(A):
total = sum(A)
diff = sum(range(1, len(A) + 2))
return abs(diff - total)
@divmgl
divmgl / vpc.js
Created February 22, 2022 14:12
Smitten VPC Arc Plugin
const aws = require("aws-sdk")
const iam = new aws.IAM()
const ec2 = new aws.EC2()
const securityGroupNames = [
"allow-internal-ingress",
"allow-internal-egress",
"allow-external-egress"
]