Skip to content

Instantly share code, notes, and snippets.

View yeahsmaggy's full-sized avatar

Andy Welch yeahsmaggy

View GitHub Profile
@yeahsmaggy
yeahsmaggy / values_pointers.go
Created November 23, 2020 19:00 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
@yeahsmaggy
yeahsmaggy / aws_sso.py
Created June 4, 2020 16:54 — forked from sgtoj/aws_sso.py
AWS SSO Credentials File Updater for AWS SDKs
#!/usr/bin/env python3
import json
import os
import sys
from configparser import SafeConfigParser
from datetime import datetime
from pathlib import Path
import boto3
@yeahsmaggy
yeahsmaggy / motion_215.py
Created April 19, 2020 14:20 — forked from piyh/motion_215.py
Motion detection with a circular buffer and file recording in picamera
#!/usr/bin/env python
import io
import time
import picamera
import picamera.array
import numpy as np
from PIL import Image, ImageDraw
<?php
//front end user registration form
$user_details = new_cmb2_box(
array(
'id' => '_cmb_page_player_details_box',
'title' => __('Capture Player Details', 'mnt_custom_content_types'),
'object_types' => ['page'],
'context' => 'normal',
'priority' => 'high',
'show_names' => true,