Skip to content

Instantly share code, notes, and snippets.

View GloryFish's full-sized avatar

Jay Roberts GloryFish

View GitHub Profile
@GloryFish
GloryFish / watering-system.ino
Created November 22, 2022 20:41
Timer control software for an Arduino-based automatic plant watering system.
//
// Automatic Watering System mkII
//
// Copyright Jay Roberts 2022
//
// Toggle switch pins
const int pinWaterManual = 8;
const int pinWaterAuto = 9;
module(...)
-- This file is for use with Love2d and was generated by Zwoptex (http://zwoptexapp.com/)
--
-- The function getSpriteSheetData() returns a table suitable for importing using sprite.newSpriteSheetFromData()
--
-- Usage example:
-- local zwoptexData = require "ThisFile.lua"
-- local data = zwoptexData.getSpriteSheetData()
-- local spriteSheet = sprite.newSpriteSheetFromData( "Untitled.png", data )
@GloryFish
GloryFish / drushrc.php
Created June 1, 2012 20:59 — forked from kostajh/drushrc.php
Abandon install profile
// Site specific options
$options['destination'] = 'sites/all/modules/contrib';
@GloryFish
GloryFish / tiled-test.lua
Created July 16, 2011 00:27
Tiled loading code
--
-- scene_tiled.lua
-- The-Road
--
-- Created by Jay Roberts on 2011-07-15.
-- Copyright 2011 GloryFish.org. All rights reserved.
--
require 'logger'
require 'level'
@GloryFish
GloryFish / minimal-particles.lua
Created December 30, 2010 04:37
Minimal example of particles in love
function love.load()
local particleImage = love.graphics.newImage('particle.jpg')
particles = love.graphics.newParticleSystem(particleImage, 300)
particles:setPosition(love.graphics.getWidth() / 2, love.graphics.getHeight() / 2)
particles:setSpeed(10, 50)
particles:setColor(255, 255, 255, 255, 255, 255, 255, 0)
particles:setParticleLife(1, 3)
particles:start()