Skip to content

Instantly share code, notes, and snippets.

View ayoungh's full-sized avatar
:octocat:
Coffee and code

Anthony Young ayoungh

:octocat:
Coffee and code
View GitHub Profile
@ayoungh
ayoungh / day-of-week.js
Created July 1, 2014 14:20
Day Of Week JS
function theDay () {
var thedate = new Date();
var weekday = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var dayofweek = weekday[thedate.getDay()];
return dayofweek;
};
{
"name": "wordpress-starter-theme",
"version": "1.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-compass": "~0.2.0",
"grunt-contrib-imagemin": "~0.1.4",
"grunt-contrib-jshint": "~0.4.3",
"grunt-contrib-uglify": "~0.2.0",
@ayoungh
ayoungh / gist:4636460
Created January 25, 2013 17:51
Preload background images
/* Preload images */
       var images = ['/images/contentbg.jpg','/images/scrollbtn.gif','/images/cross.png','/images/sidebar_top_gradient.jpg','/images/bulletpointdown.gif'],
           image_obj = new Image();
       for (var image=0; image<images.length; image++) {
           image_obj.src = images[image];
       }
@ayoungh
ayoungh / index.html
Created December 13, 2012 13:54
A CodePen by Anthony Young. Awesome textarea - A really nice textarea with a background colour change on focus
<h2>Awesome Textarea</h2>
<textarea placeholder="This is an awesome comment box" rows="20" name="comment[text]" id="comment_text" cols="40" class="ui-autocomplete-input" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"></textarea>
@ayoungh
ayoungh / Python grab page
Created June 21, 2012 15:55
Grab page in python
from urllib import urlopen
doc = urlopen("http://www.python.org").read()
print doc
@ayoungh
ayoungh / dabblet.css
Created February 1, 2012 22:13 — forked from chriscoyier/dabblet.css
Checkbox Hack
/* Checkbox Hack */
input[type=checkbox] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
-webkit-appearance: push-button;
-moz-appearance: button;