Skip to content

Instantly share code, notes, and snippets.

View adsgray's full-sized avatar
🎸
workin for the weekend

Andrew Gray adsgray

🎸
workin for the weekend
View GitHub Profile
@adsgray
adsgray / wisdom.md
Last active December 9, 2021 18:13 — forked from merlinmann/wisdom.md
The Wisdom Project (Draft)

The Wisdom Project

Or: “Everybody likes being given a glass of water.”

By Merlin Mann.

It's only advice for you because it had to be advice for me.

(Link to this page)

@adsgray
adsgray / fridaythe13th.diary
Last active January 16, 2017 22:19
Emacs Friday the 13th diary/calendar reminder
&%%(let ((dayname (calendar-day-of-week date))
(day (cadr date)))
(and (= day 13) (memq dayname '(5)))
) Friday the 13th!
@adsgray
adsgray / torontobluejays2017.diary
Created January 12, 2017 17:42
Toronto Blue Jays 2017 Schedule for emacs diary
2/25/2017 10:05-13:05 Toronto Blue Jays vs. Atlanta Braves
Desc: Toronto Blue Jays vs. Atlanta Braves
First pitch: 1:05:00 PM EST
Champion Stadium, Lake Buena Vista
Buy Tickets: http://mlb.mlb.com/ticketing/index.jsp?c_id=atl&affiliateId=iCal-SGT-tor
Click below for a full game preview plus video, photos, stats, gameday and more!
http://www.mlb.com/r/game?gid=2017_02_25_tormlb_atlmlb_1
@adsgray
adsgray / keybase.md
Created January 12, 2015 18:54
Keybase proof

Keybase proof

I hereby claim:

  • I am adsgray on github.
  • I am adsgray (https://keybase.io/adsgray) on keybase.
  • I have a public key whose fingerprint is 131C E0BF 2E5B 2BBF 18F5 9EAB 3ECB 1557 C198 BB2E

To claim this, I am signing this object:

@adsgray
adsgray / .classpath
Created January 17, 2014 14:54
Eclipse .classpath for Scala Android project
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
@adsgray
adsgray / .gitattributes
Created January 15, 2014 16:40
.gitattributes file to encrypt Jekyll drafts
_drafts/* filter=git-crypt diff=git-crypt
@adsgray
adsgray / _confg.yml
Created January 15, 2014 03:23
Jekyll _config.yml to turn off SmartyPants smart quotes.
markdown: kramdown
kramdown:
smart_quotes: 39,39,quot,quot
@adsgray
adsgray / _config.yml
Last active January 3, 2016 07:29
Jekyll _config.yml
markdown: kramdown
kramdown:
smart_quotes: lsquo,rsquo,ldquo,rdquo
@adsgray
adsgray / spawn_detached_thread.c
Created January 10, 2014 23:19
My favourite C function ever.
int
spawn_detached_thread(thread_func_t func, void *arg)
{
pthread_attr_t attr;
pthread_t throw_away;
/* this is a throwaway thread, so we won't bother
reaping its exit code when it pthread_exit()s */
pthread_attr_init(&attr);