Skip to content

Instantly share code, notes, and snippets.

View gfarrell's full-sized avatar
👾

Gideon Farrell gfarrell

👾
View GitHub Profile
@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;
<?php
// First we get the variable we want to look at from the $_GET array
$page = $_GET['p'];
// We should never trust the user's input to be safe
// So let's restrict the possibilities with a switch() statement
// If the input is invalid, we return some sort of error
switch($page) {
case 'home':
// show the home page text
@gfarrell
gfarrell / dabblet.css
Created August 28, 2014 09:49
RAVN Preloader
/**
* RAVN Preloader
*/
body {
background: black;
text-align: center;
}
.logo {
@gfarrell
gfarrell / npm-debug.log
Created September 21, 2014 12:54
npm-debug.log for npm install --save gfarrell/state.js
0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save',
1 verbose cli 'gfarrell/state.js~0.1.0' ]
2 info using npm@1.4.10
3 info using node@v0.10.28
4 verbose node symlink /usr/local/bin/node
5 warn package.json PresenceMonitor@0.0.1 No repository field.
$(window).on('load', function() {
var fragment = window.location.hash;
if(fragment != "") {
$('body').animate({
scrollTop: $(fragment).offset().top
});
}
});
@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
##########################################################