Skip to content

Instantly share code, notes, and snippets.

View piersroberts's full-sized avatar
💭
grokking in the free world

Piers Roberts piersroberts

💭
grokking in the free world
View GitHub Profile

Keybase proof

I hereby claim:

  • I am piersroberts on github.
  • I am piersroberts (https://keybase.io/piersroberts) on keybase.
  • I have a public key ASBuAcTWgWwNjfcfL1w1owOlyHINqRtt3xtksJEkx2OitQo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1DJa9svQb1g3g8uPyJC767YJ1od2tHG3cv https://explorer.blockstack.org/address/1DJa9svQb1g3g8uPyJC767YJ1od2tHG3cv
@piersroberts
piersroberts / googleman.sh
Created December 8, 2016 13:56
read man pages in the browser
googleman(){open "http://www.google.com/search?&sourceid=navclient&btnI=I&q=man $1"} && alias man=googleman
<html>
<head>
<style>
span{
color:black;
font-family:Courier;
text-align:center;
width:2em;
line-height:2em;
float:left;
<html>
<head>
<title>Pizza Calculator</title>
<meta name="viewport" content="width=device-width">
<script src="http://fb.me/react-0.12.2.js"></script>
</head>
<body>
<h1>Pizza Calculator</h1>

Keybase proof

I hereby claim:

  • I am piersroberts on github.
  • I am piersroberts (https://keybase.io/piersroberts) on keybase.
  • I have a public key whose fingerprint is BBC0 FA0F 17AF AED5 0DC9 2383 68F7 F342 8067 B980

To claim this, I am signing this object:

<a href="javascript:function my_bookmarklet()
{alert('Hello World');}
my_bookmarklet();">Hello</a>
@piersroberts
piersroberts / cuemaker.js
Created February 5, 2014 02:31
Snippet to pull album from discogs and generate a .cue file
var url = 'http://api.discogs.com/masters/365003';
function Cue(albumArtist, title, tracks) {
this.PERFORMER = albumArtist;
this.TITLE = title;
this.TRACKS = tracks;
};
function Track(trackNumber, artist, title, offset) {
@piersroberts
piersroberts / dabblet.css
Created January 13, 2014 11:57
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
@viewport {
width: device-width;
max-zoom: 3;
min-zoom: 0.50;
}
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300);
body{
@piersroberts
piersroberts / dabblet.css
Created January 9, 2014 16:39
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body{
margin:0 210px;
font-family:sans-serif;
}
#header{
background-color:silver;
}