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
| /** | |
| * Created by Alexander Nielsen. alex@hitecherik.site11.com | |
| * 2 January 2013 | |
| */ | |
| /** | |
| * Returns the last item in an array | |
| * @param {Array} arr Array to return last of | |
| * @return {var} The last item in the array | |
| */ |
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
| * * ********** * * ******** | |
| * * * * * * * | |
| * * * * * * * | |
| * * * * * * * | |
| ********** ********** * * * * | |
| * * * * * * * | |
| * * * * * * * | |
| * * * * * * * | |
| * * ********** ********** ********** ******** |
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
| import time | |
| def is_prime(n): | |
| if n is 0 or n is 1: | |
| return False | |
| else: | |
| for x in range(2, n): | |
| if n % x == 0: | |
| return False | |
| return True |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Espresso Html Document</title> | |
| <meta name="viewport" content="width=device-width"><!-- To better adapt your page to mobile devices screen --> | |
| <meta name="author" content="Espresso Html"> | |
| <meta name="description" content="A simple web page I made to test out my ideas"> | |
| <link rel="stylesheet" href="style.css"><!-- You can create and link files within Espresso Html --> | |
| <!-- // IE fixes including html5 enabler // --> |
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
| <!-- | |
| Created by Alexander Nielsen. alex@hitecherik.site11.com | |
| --> | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="author" content="Alexander Nielsen" /> | |
| <title>Testing plugin...</title> | |
| </head> |
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
| def monty(): | |
| hello = (1 + 2 + 3) ** (6 % 3) | |
| print "The variable hello demonstrates that sonething to the power of 0 is 1." | |
| print "So - 6 to the power of 0 is 1: " + hello + ". No cheating! Honest!" | |
| return hello | |
| print monty() |
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
| <!-- | |
| Created by Alexander Nielsen. alex@hitecherik.site11.com | |
| --> | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="author" content="Alexander Nielsen" /> | |
| <title>Lorem Ipsum - Home Page</title> | |
| <style> |
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
| if(ie === 6){ | |
| alert("You are in IE 6."); | |
| } else if(ie === 7){ | |
| alert("You are in IE 7."); | |
| } else if(ie === 8){ | |
| alert("You are in IE 8"); | |
| } else if(ie > 8){ | |
| alert("You are in IE 9 or above."); | |
| } |
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
| <!-- | |
| Created by Alexander Nielsen. alex@hitecherik.site11.com | |
| --> | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="author" content="Alexander Nielsen" /> | |
| <title>Hello!</title> | |
| <style> |