Skip to content

Instantly share code, notes, and snippets.

Ron Scott-Adams tohuw

Block or report user

Report or block tohuw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View css3-fancylists.scss
// A demonstration of how to write SASS styling for multi-level lists
// List types vary per level, and list counters are styleable
// Owes greatly to this: http://stackoverflow.com/a/15253672/316733
ol {
counter-reset: li;
margin-left: .5em;
li {
counter-increment: li;
View Get-MailboxLocationPermission.ps1
[CmdletBinding (SupportsShouldProcess = $false)]
param (
$Mailboxes = @(),
[switch]$FormatTable = $true
)
begin {
$MailboxesLocationsPermissions = @()
$LocationsPermissions = @()
}
@tohuw
tohuw / material-design-colour-palette-variables.scss
Last active Aug 29, 2015 — forked from brandonhimpfen/material-design-colour-palette-variables.scss
Material Design colour palette made into Sass variables.
View material-design-colour-palette-variables.scss
// Material Design Colour Palette
// by Brandon Himpfen http://www.himpfen.com/
// Red
$md-red-50: #ffebee;
$md-red-100: #ffcdd2;
$md-red-200: #ef9a9a;
$md-red-300: #e57373;
$md-red-400: #ef5350;
$md-red-500: #f44336;
View gist:da46eddccb9c552746ae
"*":
"exception-reporting":
userId: "fcfca3bd-4ecf-a3fe-00d2-f35a2ce52b59"
welcome:
showOnStartup: false
core:
audioBeep: false
projectHome: "/Users/tohuw/Projects"
themes: [
"unity-ui"
View jekyll-readtime.rb
# jekyll-readtime
# 2015 Ron Scott-Adams, Licensed under MIT:
# https://tldrlegal.com/license/mit-license
# Original work: https://gist.github.com/zachleat/5792681
# Outputs the estimated time the average person might take to read the content.
# 200 is a round figure based on estimates gathered from various studies.
# http://www.ncbi.nlm.nih.gov/pubmed/18802819
# Usage: {{ page.content | readtime }}
@tohuw
tohuw / Fun with 'Find'
Last active Aug 29, 2015
Fun with 'Find'
View Fun with 'Find'
#! /bin/bash
## Fun with 'Find':
## A small collection of one-liners demonstrating the power of find.
# Find all files larger than a given size
find /foo/bar -type f -size +1024k
# Recursively rename files matching a pattern
find -name '*.JPG' -exec rename .JPG .jpg {} \;
@tohuw
tohuw / Sublime 3 Config
Last active Oct 7, 2016
My Sublime Text 3 Config
View Sublime 3 Config
{
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 500,
"auto_indent": true,
"auto_match_enabled": true,
"binary_file_patterns":
[
"*.woff",
"*.eot",
"*.ttf",
You can’t perform that action at this time.