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
assets/js/foundation.js -diff | |
assets/css/foundation.css -diff | |
assets/css/foundation.css.map -diff | |
assets/js/foundation.js merge=ours | |
assets/css/foundation.css merge=ours | |
assets/css/foundation.css.map merge=ours |
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
" Prepare a new PHP class | |
function! s:Class() | |
let name = input('Class name: ') | |
let namespace = input('Any Namespace: ') | |
if strlen(namespace) | |
exec 'normal i<?php namespace ' . namespace . '; x27' | |
else | |
exec 'normal i<?php x27' | |
endif |
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
// Make sure that your conditions inside your for loop are | |
// contained withing brackets | |
for (i = 1; i <= 25; i++) { | |
// what is your goal? Dividing by a boolean will not return | |
// desired results. In other words, (i == hfact) will return a truthy | |
// or falsy value | |
if ((hfact * i) / i == hfact) | |
{ | |
hfact *= 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
<?php | |
echo "\nEnter an integer for its inverted complement: "; | |
/** | |
* Scan input from command-line, make sure the input has value, | |
* send input to accompanying function and output inverted compliment | |
*/ | |
if ( 1 === fscanf(STDIN, '%d', $input)) { | |
$comp = getIntegerComplement($input); |
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 | |
/** | |
* The BinaryNode class defines a node object | |
* | |
* Provides value for current node, left child, and | |
* right child. | |
*/ | |
class BinaryNode | |
{ | |
public $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
<?php | |
/** | |
* The BinaryNode class defines a node object | |
* | |
* Provides value for current node, left child, and | |
* right child. | |
*/ | |
class BinaryNode | |
{ | |
public $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
<VirtualHost *:80> | |
ServerName laravel.dev | |
ServerAlias laravel.dev | |
<Directory /var/www/laravel.dev/laravel/public/> | |
Options FollowSymLinks Indexes MultiViews | |
AllowOverride All | |
Require all granted | |
</Directory> |
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Create The Application | |
|-------------------------------------------------------------------------- | |
| | |
| The first thing we will do is create a new Laravel application instance | |
| which serves as the "glue" for all the components of Laravel, and is | |
| the IoC container for the system binding all of the various parts. |
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 fs = require("fs"); | |
var config = JSON.parse(fs.readFileSync("config.json")); | |
var host = config.host; | |
var port = config.port; | |
var express = require("express"); | |
var mongo = require("mongodb"); | |
var dbHost = "127.0.0.1"; | |
var dbPort = mongo.Connection.DEFAULT_PORT; |
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'), | |
jshint = require('gulp-jshint'), | |
uglify = require('gulp-uglify'), | |
livereload = require('gulp-livereload'); | |
gulp.task('lint', function() { | |
gulp.src('./js/*') | |
.pipe(jshint()) | |
.pipe(jshint.reporter('default')) |
OlderNewer