Skip to content

Instantly share code, notes, and snippets.

View dreamalligator's full-sized avatar
🐊

Tom dreamalligator

🐊
View GitHub Profile
@dreamalligator
dreamalligator / sensor_tower_logo.css
Created January 20, 2015 06:19
A pure CSS version of the Sensor Tower logo.
/*
A pure CSS version of the Sensor Tower Logo
by Tom Spalding
https://github.com/digitalvapor
*/
/* spacer */
a:before {
background-color: #20aa9c;
border-style: solid;
@dreamalligator
dreamalligator / post-commit
Created November 3, 2014 19:38
post-commit hook used to sync the readme to https://digitalvapor.github.io/PySkyAlmanac/
#!/bin/bash
###
### The following block runs after commit to "master" branch
### https://stackoverflow.com/questions/15214762/how-can-i-sync-documentation-with-github-pages/16389663#16389663
###
if [ `git rev-parse --abbrev-ref HEAD` == "master" ]; then
# Layout prefix is prepended to each markdown file synced
###################################################################
LAYOUT_PREFIX='---\r\nlayout: index\r\n---\r\n\r\n'
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=latex 2014.10.29) 29 OCT 2014 16:26
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**tmpjiwL6e
(./tmpjiwL6e.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 10 languages loaded.
)
*\scrollmode
@dreamalligator
dreamalligator / BananaBattery.fzpz
Last active August 29, 2015 14:07
Fritzing Banana Battery Pack
@dreamalligator
dreamalligator / .gitignore
Last active April 27, 2017 07:01
Script to import your Google calendar into Orage.
url.txt
*.pyc
/*
* Dan Kirshner - [email protected]
*
* You are welcome to make free use of this software. Retention of my
* authorship credit would be appreciated.
*
* Version 1.3. 2013-12-01 Correct loop over turns -- don't have early cut-off
* Version 1.2. 2012-09-09 Use discrete polyhedra rather than linear_extrude()
* Version 1.1. 2012-09-07 Corrected to right-hand threads!
*/
@dreamalligator
dreamalligator / server.js
Last active August 29, 2015 14:00
My server file. `node server.js`
//change mywebdir to the folder you wish to serve
var port = 80
var mywebdir = 'myoutput'
var connect = require('connect')
connect().use(connect.static(mywebdir)).listen(port);
console.log('Server running on port '+port);
@dreamalligator
dreamalligator / post-receive
Created April 28, 2014 19:54
My current Git hooks.
#!/bin/sh
WEB_DIR=~/digitalvapor
# remove any untracked files and directories
git --work-tree=${WEB_DIR} clean -fd
# force checkout of the latest deploy
git --work-tree=${WEB_DIR} checkout --force
# if need to exclude some files from being cleaned
@dreamalligator
dreamalligator / aot.ahk
Created April 25, 2014 18:43
A basic Autohotkey script to make windows always on top..
; Always on Top
; https://gist.github.com/digitalvapor
; press CTRL+Space to toggle a window to always on top.
; Winset: http://ahkscript.org/docs/commands/WinSet.htm
; WinSet, Attribute, Value [, WinTitle, WinText, ExcludeTitle, ExcludeText]
; If you are going to make another window on-top that was 'ran as admin', then you'll want to run your autohotkey script as admin too.
^SPACE:: Winset, AlwaysOnTop, Toggle, A
@dreamalligator
dreamalligator / planets.ipynb
Created April 4, 2014 06:25
To test the Pelican Liquid Tags plugin.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.