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
var gulp = require('gulp'), | |
livereload = require('gulp-livereload'), | |
open = require('open'), | |
express = require('express'), | |
port = 80; | |
gulp.task('server', function(next){ | |
var server = express().use(express.static( __dirname + '/public' )).listen(port, next); | |
var portStr = port == 80 ? '' : ':' + port; | |
open("http://localhost" + portStr, "chrome"); |
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 statement vs variable ****/ | |
function myFunc(){} | |
// vs | |
var myFunc = function(){}; | |
/***** Argument signature *****/ |
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
<html> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
// $('.nav').sticky({$navWrap: $('.main')}); | |
// $('.sidebar1').sticky({$boundingBox: $('.main')}); | |
//$('.sidebar2').sticky({$boundingBox: $('.main')}); |
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
<?php | |
class Base { | |
function bse(){ echo "base <br />"; } | |
} | |
/* You would have to make a dependency-based loader | |
* to keep track of class names. Here, I'm just hard | |
* coding to show that it could work... | |
*/ |