Skip to content

Instantly share code, notes, and snippets.

View denzildoyle's full-sized avatar
🎯
Growing

Denzil Doyle denzildoyle

🎯
Growing
View GitHub Profile

Change the size of a checkbox

/* Double-sized Checkboxes */
input[type=checkbox]{
  -ms-transform: scale(2); /* IE */
  -moz-transform: scale(2); /* FF */
  -webkit-transform: scale(2); /* Safari and Chrome */
  -o-transform: scale(2); /* Opera */
 padding: 10px;
.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 / index.html
Created April 26, 2015 22:16
Waypoint Test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
<script src="noframework.waypoints.min.js"></script>
</head>
<style>
@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 },
-webkit-filter:blur(10px);
@denzildoyle
denzildoyle / removeDuplicates.js
Created October 6, 2015 17:38
Remove duplications from array in JavaScript
function removeDuplicates(array) {
var newArray = []; //create new array to store no duplicates
var isDuplicated = false; //track duplicate indexes
newArray.push(array[0]); //add first index to new array
for (i=1; i <= array.length; i++) { //loop over entered array
for (var x = newArray.length - 1; x >= 0; x--) { // loop over new array
if (newArray[x] == array[i]){ //compare newArray to entered array to see if the current index value already exist in the array
isDuplicated = true; //current array index has a duplicate value
@denzildoyle
denzildoyle / Like Animation — Jumpy Hearts.markdown
Created May 12, 2016 18:45
Like Animation — Jumpy Hearts
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.32.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.32.1/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@denzildoyle
denzildoyle / angular-domain-filter.js
Last active March 11, 2017 19:51
Create filter to filter out domain only from url
app.filter( 'domain', function () {
return function ( input ) {
var parser = document.createElement('a');
parser.href = input;
return parser.hostname;
};
});