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 browser doesn't recognize attr placeholder change inputs value on focus/blur with the placeholder value */ | |
/* Works for jQuery version > 1.9 were $.browser was deprecated and cannot be used anymore */ | |
function iePlaceholder() { | |
if(document.createElement("input").placeholder == undefined) | |
{ | |
$(':input').each(function() { | |
var input = $(this); | |
$(input).val(input.attr('placeholder')); |
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
/* | |
|-------------------------------------------------------------------------- | |
| XHTML, HTML4, HTML5 Reset CSS | |
|-------------------------------------------------------------------------- | |
*/ | |
a, | |
abbr, | |
acronym, | |
address, |
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
//Create a single custom object | |
var object = { | |
attribute1: 'value1', | |
attribute2: 'value2', | |
method1: function() { | |
return this.attribute1 + ' ' + this.attribute2; | |
} | |
}; |
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
//Create a custom object for multiple instances | |
function object(attribute1, attribute2) { | |
this.attribute1 = attribute1; | |
this.attribute2 = attribute2; | |
this.method1 = function() { | |
return this.attribute1 + ' ' + this.attribute2; | |
}; | |
} |
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 lang="en"> | |
<head> | |
<title>Bootstrap 3.3.2 Template</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" type="text/css" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> |
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 lang="en" ng-app="myApp"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>AngularJS</title> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css"> | |
</head> | |
<body> | |
<script src="http://code.angularjs.org/1.2.5/angular.js"></script> |
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
## HTTP Server | |
server { | |
listen 80; | |
server_name www.mydomain.gr; | |
return 301 http://mydomain.gr$request_uri; | |
} | |
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
API_URL=https://example.com/api/ |
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
"scripts": { | |
"development": "cross-env NODE_ENV=development webpack-dev-server --config ./webpack", | |
"production": "cross-env NODE_ENV=production webpack --config ./webpack", | |
"test": "cross-env NODE_ENV=test jest --config ./jest.config.json" | |
} |
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 (process.env.NODE_ENV === 'production') { | |
module.exports = require('./webpack.production.config'); | |
} else { | |
module.exports = require('./webpack.development.config'); | |
} |