Skip to content

Instantly share code, notes, and snippets.

View gfarrell's full-sized avatar
👾

Gideon Farrell gfarrell

👾
View GitHub Profile
@gfarrell
gfarrell / remote_backup.sh
Created October 22, 2012 17:20
Backs up database and files to given remote server via scp
#!/bin/bash
##########################################################
# Remote Backup Script
#
# FILE: remote_backup.sh
# RUN: Daily 00h00
#
# author: Gideon Farrell me@gideonfarrell.co.uk
##########################################################
1) No custom signatures
2) Spam now shows up in my inbox
3) If I archive something on my computer, mailbox doesn't have it archived; it's still in my inbox
4) No label support (I use labels to categorise EVERYTHING, and it's really important to my organisation)
... I'll add to this as I go along
@gfarrell
gfarrell / dabblet.css
Created August 21, 2013 15:29
Untitled
.clear { clear: both; }
.authenticationWidget {
position: relative;
font-family: Helvetica Neue;
font-size: 0.9em;
}
h2 {
margin: 30px 0 0 10px;
@gfarrell
gfarrell / enum.js
Last active December 24, 2015 00:29
Create Enums in Javascript (immutable dictionaries of string:int pairings).
/* global define */
/**
* Enums in Javascript
*
* Makes an immutable dictionary with string:int pairings to emulate Enums.
* Usage example: Colours = Enum('RED', 'GREEN', 'BLUE');
*
* @author Gideon Farrell <me@gideonfarrell.co.uk>
*
*/
@gfarrell
gfarrell / dabblet.css
Created October 4, 2013 17:33
Untitled
select {
padding: 0.5em;
}
@gfarrell
gfarrell / bibliography.bib
Created March 31, 2014 13:56
Example of Biber problem
@ARTICLE{savcheva2007,
author = {Savcheva, A. and Cirtain, J. and Deluca, E.~E. and Lundquist, L.~L. and
Golub, L. and Weber, M. and Shimojo, M. and Shibasaki, K. and
Sakao, T. and Narukage, N. and Tsuneta, S. and Kano, R.},
title = {A Study of Polar Jet Parameters Based on Hinode XRT Observations},
journal = {Publications of the ASJ},
keywords = {Sun: activity, Sun: corona, Sun: magnetic field},
year = 2007,
month = nov,
volume = 59,
@gfarrell
gfarrell / dabblet.css
Created May 11, 2014 20:46
Animated activity indicator
/**
* Animated activity indicator
*/
html, body {
width: 100%;
height: 100%;
}
.activity-indicator {
width: 10px;
@gfarrell
gfarrell / dabblet.css
Created May 12, 2014 12:09
Round progress indicator
/**
* Round progress indicator
*/
.round-progress-indicator {
width:150px;
height: 150px;
}
.round-progress-indicator span {
@gfarrell
gfarrell / dabblet.css
Created May 13, 2014 17:35
Quattro progress indicator
/**
* Quattro progress indicator
*/
.quattro-progress {
border: #CCC 10px solid;
border-radius: 50%;
width: 100px;
height: 100px;
transform: rotate(45deg);
/**
* Octagon
*/
.octagon {
width: 100px;
height: 100px;
position: absolute;
top: 0;
bottom: 0;