Skip to content

Instantly share code, notes, and snippets.

View denzildoyle's full-sized avatar
🎯
Growing

Denzil Doyle denzildoyle

🎯
Growing
View GitHub Profile
@denzildoyle
denzildoyle / basics.md
Last active December 31, 2015 20:48 — forked from dwayne/basics.md

Basics

The best guide for getting up to speed with Android Development that I've come across has to be the Getting Started Training Guide from the Android Developers website. There has to be better and low and behold I found this and this, i.e. How to Program for Android and Android Bootcamp Series 2012 Video Tutorial.

For beginners, the ADT (Android Developer Tools) Bundle is recommended for quickly starting Android development.

If you don't already have the JDK installed on your system you'd need to install it. For Ubuntu users, you can follow the in

/* Original is in LESS and can be found here: https://gist.github.com/gefangenimnetz/3ef3e18364edf105c5af */
@mixin material-shadow($level:1){
@if $level == 1 {
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
@else if $level == 2 {
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
.platform-android4_1 {
/*Any styles for android 4.1*/
}
.platform-android4_3 {
/*Any styles for android 4.3*/
}
.platform-android4_4 {
/*Any styles for android 4.4*/
@denzildoyle
denzildoyle / shake.js
Last active August 29, 2015 14:20 — forked from leecrossley/shake.js
/*
THIS GIST IS OUT OF DATE AND NOT MONITORED
PLEASE SEE https://github.com/leecrossley/cordova-plugin-shake-detection
*/
var shake = (function () {
var shake = {},
watchId = null,
options = { frequency: 300 },
previousAcceleration = { x: null, y: null, z: null },
@denzildoyle
denzildoyle / Change Branch Name.sh
Last active March 29, 2017 14:04 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m new_branch # If on the branch already
git branch -m old_branch new_branch # Rename branch locally. Skip this step if on the branch alread
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@denzildoyle
denzildoyle / gist:1f9014e68b2c6ff20a639a01a14e8547
Created March 29, 2017 14:02 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@denzildoyle
denzildoyle / deploy-static-site-heroku.md
Created August 7, 2018 22:44 — forked from wh1tney/deploy-static-site-heroku.md
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions