This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function theDay () { | |
| var thedate = new Date(); | |
| var weekday = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; | |
| var dayofweek = weekday[thedate.getDay()]; | |
| return dayofweek; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from urllib import urlopen | |
| doc = urlopen("http://www.python.org").read() | |
| print doc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Checkbox Hack */ | |
| input[type=checkbox] { | |
| position: absolute; | |
| top: -9999px; | |
| left: -9999px; | |
| } | |
| label { | |
| -webkit-appearance: push-button; | |
| -moz-appearance: button; |
NewerOlder