This file contains 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
####################### | |
# Your Domain | |
####################### | |
upstream ghost_upstream_yourDomain { | |
server 127.0.0.1:2323; | |
keepalive 64; | |
} | |
server { |
This file contains 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 is for the commenting system where we can tell SASS to run 'for' loop from 1 to variable $rows | |
// Using nth-child + margin-left to set the styling | |
// Stylus version coming soon(!) | |
// Variable | |
$rows: 10; | |
// For loop | |
@for $i from 1 through $rows { | |
&:nth-child(#{$i}) { |
This file contains 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
Influenced by [jirutka](https://gist.github.com/jirutka/32049196ab75547b7f47) | |
From jirutka: | |
Nested numbered list with correct indentation in CSS | |
Reused the code + added alphabetical listing. |
This file contains 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 myfunc(num) { | |
str=3; | |
return num; | |
} | |
var str=2; |
This file contains 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 you memorised this by heart and complete it in the test interview. Good for you. | |
// It doesn't mean squat! ;-) | |
for(var i = 1; i < 100; i++ ){ | |
if( i % 3 == 0 ){ | |
console.log("Fizz"); | |
} | |
if ( i % 5 == 0 ){ |
This file contains 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
<div class="form-wrapper"> | |
<form action="registered-confirmed.php" novalidate="novalidate" class="registerInterest"> | |
<div class="row account-info"> | |
<fieldset> | |
<label for="Name">Name:</label> | |
<input type="text" title="Name" id="Name" value=""> | |
</fieldset> | |
<fieldset> | |
<label for="Position">Position:</label> | |
<input type="text" title="Position" id="Position" value=""> |
This file contains 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
RegEX - http://www.regexr.com/ | |
jQuery Validate - http://jqueryvalidation.org/ |
This file contains 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
// Using require.js | |
if(has('.fixed-sidebar')) { | |
// Global variable to find the correct value where fixed-sidebar resides at | |
var setGlue = $('.fixed-sidebar').offset().top; | |
$(document).scroll(function(){ | |
// Fetch the value from the browser's window | |
var windowTop = $(window).scrollTop(); |
This file contains 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
$(window).scroll(function(){ | |
// var adjustGlue = $('footer').offset(); | |
// var bottom = $(window).height() - setGlue.top - $('.content .page').height(); | |
// var bottom = $(window).height() + adjustGlue.top; | |
if (setGlue = bottom){ | |
$('.fixed-sidebar').removeClass('glue'); | |
$('.fixed-sidebar').addClass('glue-to-bottom'); | |
console.log('glued to the bottom'); |
OlderNewer