Skip to content

Instantly share code, notes, and snippets.

View gorork's full-sized avatar
🏠
Working from home

gorork

🏠
Working from home
View GitHub Profile
@gorork
gorork / gist:fccd1222969f70b2b9e2
Last active August 29, 2015 14:10
P2: JavaScript Challenge #2
var moonWalkers = [
"Neil Armstrong",
"Buzz Aldrin",
"Pete Conrad",
"Alan Bean",
"Alan Shepard",
"Edgar Mitchell",
"David Scott",
"James Irwin",
"John Young",
@gorork
gorork / gist:b18c07205cf862291a64
Last active August 29, 2015 14:10
P2: JavaScript Challenge #1
var getRelationship = function(x, y) {
// If both arguments are numbers
if ( !isNaN(x) && !isNaN(y) ) {
if ( x == y ) { // if they are equal, return '='
return '=';
} else { // if not, return comparison operator
return x < y ? '<' : '>';

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@gorork
gorork / gist:8f455475c808198ab2b7
Created October 18, 2014 17:46
Basic logic of script tag
<body>
<h1>Day 10</h1>
<h2><a href="">Script tag logic example</a></h2>
<script>
alert('This is JavaScript alert. Look around your screen and note that there is no image right now.');
</script>
<img src="http://js.ework.me/code/d10-script-tag/bateaumatineeFA.jpg">