Skip to content

Instantly share code, notes, and snippets.

View warwickgrigg's full-sized avatar

Warwick Grigg warwickgrigg

View GitHub Profile
@warwickgrigg
warwickgrigg / container-queries-grid-flexbox.markdown
Created December 22, 2020 19:02
Container Queries: Grid & Flexbox
@warwickgrigg
warwickgrigg / ie11-recipes-in-css.markdown
Created December 19, 2020 23:02
IE11 recipes in CSS
@warwickgrigg
warwickgrigg / ie11-recipes-in-css.markdown
Created December 19, 2020 13:42
IE11 recipes in CSS
@warwickgrigg
warwickgrigg / raspberry-pi-zero-w-OTG-mode.sh
Created June 12, 2018 20:58 — forked from JulienRobitaille/raspberry-pi-zero-w-OTG-mode.sh
Raspberry pi zero W configure OTG mode script
#!/bin/bash
#This work for a Raspberry pi zero W 2018-04-18-raspbian-stretch-lite.
#Execute this in the boot directory once you've flashed raspbian
#Used in this project https://github.com/ClubCedille/RocketCam
echo "dtoverlay=dwc2" >> config.txt
sed -i 's/rootwait/rootwait modules-load=dwc2,g_ether/' cmdline.txt
touch ssh
@warwickgrigg
warwickgrigg / aws-cognito-authentication-demo.babel.js
Created February 19, 2018 17:27 — forked from kovalev-org/aws-cognito-authentication-demo.babel.js
how to authenticate an aws cognito user in the browser
import AWS from 'aws-sdk/global';
import S3 from 'aws-sdk/clients/s3';
import {
AuthenticationDetails,
CognitoUser,
CognitoUserPool,
} from 'amazon-cognito-identity-js';
const REGION = 'some-string-value';
const USER_POOL_ID = 'some-string-value';
mkdir public src
cat >>public/index.html <<EOF
<!doctype html>
<html>
<head>
<title>My awesome app!</title>
</head>
<body></body>
</html>