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
<!DOCTYPE html> | |
<html ng-app="myApp"> | |
<head> | |
<title></title> | |
</head> | |
<body ng-controller="MainCtrl"> | |
{{ menu }} | |
<div> |
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
#!/bin/bash | |
# create Dev Machine structure | |
function createStructure { | |
# TODO | |
# 1- check existing folders | |
# 2- ask user for overwriting | |
if [ -d manifests ] || | |
[ -d modules ] || | |
[ -d xdebug ] || |
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(window, document, $) { | |
'use strict'; | |
if ( ! String.hasOwnProperty('hashCode') ) { | |
/** | |
* returns a hash code from a base string | |
* @return {string} | |
*/ | |
String.prototype.hashCode = function() { | |
var hash = 0, i, chr, len; |
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
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"*.scssc" | |
], | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/Colorsublime/themes/Boron.tmTheme", | |
"draw_white_space": "all", | |
"fade_fold_buttons": false, |
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 () { | |
var myObject = (function () { | |
var privateMember = 0; | |
// Return public methods | |
return { | |
init: function () { | |
}, |
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 ($) { | |
if ( typeof $ !== 'function' ) { | |
return false; | |
} | |
$.fn.inViewport = function () { | |
// assign this object to local variable. | |
// use raw DOM node, not jQuery objects. |
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($) { | |
$.fn.exists = function() { | |
return this.length > 0; | |
}; | |
}(jQuery)); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> |
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
GET /photos index display a list of photos | |
GET /photos/new new return an HTML form for creating a new photo | |
POST /photos create create a new photo | |
GET /photos/:id show display a specific photo | |
GET /photos/:id/edit edit return an HTML form for editing a new photo | |
PUT /photos/:id update update a specific photo | |
DELETE /photos/:id destroy delete a specific photo |
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
--- | |
The html file "index.html" | |
--- | |
<!DOCTYPE html> | |
<html ng-app> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.1/angular.min.js"></script> |
OlderNewer