Skip to content

Instantly share code, notes, and snippets.

View cliveb's full-sized avatar
:octocat:

clive boulton cliveb

:octocat:
View GitHub Profile
Last login: Thu May 8 01:31:34 on console
You have new mail.
clive-boultons-macbook-pro:~ seebe$ top -l 1 -n 10 -o mreg -S -stats command,purg,mreg,mem,rprvt,vsize,vprvt,kprvt,kshrd
Processes: 174 total, 3 running, 7 stuck, 164 sleeping, 1030 threads
2014/05/08 01:32:45
Load Avg: 4.06, 1.57, 0.62
CPU usage: 21.5% user, 31.57% sys, 47.36% idle
SharedLibs: 15M resident, 13M data, 0B linkedit.
MemRegions: 19706 total, 1250M resident, 116M private, 523M shared.
PhysMem: 3324M used (486M wired), 770M unused.
@cliveb
cliveb / FivePartGo
Last active August 29, 2015 14:00
Five part Go series by Mark Summerfield via Dr. Dobb’s Journal
* Getting Going with Go *
How to set up Go and build programs. It then walks through code examples that highlight some of the language’s interesting features.
http://www.drdobbs.com/open-source/getting-going-with-go/240004971?queryText=%2BMark%2BSummerfield
* Go Tutorial: Object Orientation and Go’s Special Data Types *
We explore Go’s unusual approach to object orientation, its special built-in object types, the syntax for multiple return valu,and how Go handles exceptions.
http://www.drdobbs.com/open-source/go-tutorial-object-orientation-and-gos-s/240005402?queryText=%2BMark%2BSummerfield
* Go Introduction: How Go Handles Objects *
Go’s unique approach to OO steps around many problems found in other languages by preferring composition to inheritance.
@cliveb
cliveb / SetupTourOfGoOnMac
Last active August 29, 2015 14:00
Setup Tour of Go on Mac
/**
* Setup Go on a Macbook to complete online Tour of Go locally http://tour.golang.org
*
* Use Terminal program in Macbook to get a bash $ prompt
* Type the following:
*/
$ export GOPATH=$HOME/godev
$ echo “Creating Go Dev Environment at $GOPATH”
$ mkdir -p $GOPATH
@cliveb
cliveb / html5VideoEmbed
Last active August 29, 2015 13:59
Responsive youtube video embed / passes html 5 validator
!The following CSS is what does the magic;
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px; height: 0; overflow: hidden;
}
.video-container iframe,
.video-container object,
@cliveb
cliveb / use_case_template
Last active August 12, 2021 11:23
Use case template
/**
* We developed this document to stop functional bugs entering our software development. Saving time and money on rework.
* What we shipped before using use cases, always looked great, but after 6-8 weeks customers found the designs had flaws.
* The caused us to stop working on our new projects and spend days, weeks, months reworking what was already shipped.
*
* A use case defines the interactions between external actors and the system under consideration to accomplish a goal.
*
* Answer the questions inside <...>
*
* Write in terse clear style. Add math, logic, the best use cases are 1 or 2 pages long. Break down longer use case into