Skip to content

Instantly share code, notes, and snippets.

View howardroark2018's full-sized avatar

What's in a name? howardroark2018

View GitHub Profile
@et4891
et4891 / accelerometer.js
Last active December 30, 2015 05:49
Canvas + Accelerometer *http://www.lonhosford.com/lonblog/* From html and simplified into only js file
var canvas_ctx; // HTML canvas 2d context
var ax = 0; // Acceleration x axis (Accelerometer value adjusted for direction)
var ay = 0; // Acceleration y axis (Accelerometer value adjusted for direction)
var x; // Circle x position
var y; // Circle y position
var vx = 0; // Velocity x axis
var vy = 0; // Velocity y axis
var WIDTH = 320; // Width of canvas
var HEIGHT = 300; // Height of canvas
var RADIUS = 10; // Width of circle object
@Silvenga
Silvenga / dup-backup.sh
Last active February 25, 2023 10:45
For daily systemwide encrypted backups of Ubuntu servers to remote host of Google Drive (free 15GB of storage).
#!/bin/bash
# Place in /usr/share/backup/
# and make executable
# chmod 0744 dup-backup.sh
# install:
# apt-get install duplicity python-gdata python-gobject-2 python-paramiko
## Remeber to change Google drive user name and Google drive folder
## And change Email
# Must run as root for system wide backups
@Angles
Angles / Open-source-iOS-apps.md
Created July 25, 2012 19:21
real iOS apps with GitHub open source repos

Real iOS Apps in AppStore, with source on GitHub:

thanks 4 putting source for a noob to learn a little

I've used these: