Skip to content

Instantly share code, notes, and snippets.

View pietergreyling's full-sized avatar

Pieter Greyling pietergreyling

View GitHub Profile
@pietergreyling
pietergreyling / dart_reflection.dart
Last active November 15, 2016 15:34 — forked from anonymous/main.dart
Dart reflection using the 'dart:mirrors' package
import 'dart:mirrors' show
MirrorSystem, ClassMirror, ParameterMirror, DeclarationMirror, MethodMirror, reflectClass;
class SuperClass {
SuperClass(){ /* pass */ }
dummyFunc01(){ /* pass */ }
dummyFunc02(){ /* pass */ }
}
class SelfPrinting

Validating AMP Pages and Enabling Discovery by Google

*v.*2016.04.13


@pietergreyling
pietergreyling / iconcmds.sh
Last active February 16, 2016 11:05
Mac OS X Bash command aliases to manage Google Drive Mac sync Icon files (USE AT OWN RISK!)
#!/bin/bash
alias iconll='find . -name Icon?'
alias iconrm='find . -name Icon? -exec rm -f {} \;'
alias iconfiles='clear && pgiconll && pgiconrm'
@pietergreyling
pietergreyling / mybrew.sh
Last active January 27, 2016 19:53
Mac OS X Homebrew shell script that I use in my war on entropy.
#!/bin/bash
#--
#-- file: mybrew.sh
#-- auth: [@pietergreyling:20151028]
#-- desc: Mac OS X Homebrew shell script that I use in my war on entropy.
#-- exec: To clean up and verify your Homebrew setup, in a terminal run: $ ./mybrew.sh
clear
echo "-- Updating your Homebrew installation at: " && brew --prefix
sudo chown -R $(whoami):admin /usr/local