Skip to content

Instantly share code, notes, and snippets.

View jamosaur's full-sized avatar
🖤

James Wallen-Jones jamosaur

🖤
View GitHub Profile
@jamosaur
jamosaur / scss.watcher
Created May 7, 2015 13:23
scss watcher
arguments: --no-cache --update $FileName$:../css/$FileNameWithoutExtension$.min.css --style compressed -E "UTF-8"
output paths to refresh: $FileNameWithoutExtension$.min.css
@jamosaur
jamosaur / responsive-height.js
Last active August 29, 2015 13:57
responsive section heights
$(function(){
$('.section').each(function(){
var sectionHeight = $(':first-child', this).height();
if(sectionHeight > $(window).innerHeight())
{
$(this).css('height','auto');
}
else
{
$(this).css({ height: $(window).innerHeight() });
@jamosaur
jamosaur / cam.py
Created March 4, 2014 10:31
Raspi timelapse
import os
# Starting number.
fileNumber = 1
while True:
# Set a file number (00000000)
fileNumberSave = "%08d" % (fileNumber)