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 system = require('system'); | |
var casper = require('casper').create({ | |
clientScripts : [ 'jquery.min.js' ], | |
waitTimeout : 30000, // ms | |
logLevel : 'debug', // info, debug, warning, or error | |
verbose : system.args.indexOf('-v') >= 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
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
# Change these settings to your own preference | |
indent_style = space |
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
{ | |
// Documentation: http://www.jshint.com/docs/options/ | |
// Predefined globals who JSHint will ignore. | |
"browser": true, // Standard browser globals e.g. `window`, `document`. | |
"node": true, | |
"rhino": false, | |
"couch": false, | |
"wsh": false, // Windows Scripting Host. |
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
sudo forever start -l /path/to/forever.log -o /path/to/out.log -e /path/to/err.log -c node app.js |
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 express = require('express'); | |
var app = express(); | |
var app2 = express(); | |
app.use(express.vhost('app1.example.com', require('./app1').app)); | |
app.use(express.vhost('app2.example.com', app2)); | |
app2.get('/', function(req, res) { | |
res.send('app 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
.declaration-order { | |
content: ''; | |
/* Positioning */ | |
position: relative; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 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
.hide-text { | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} | |
// antigua tecnica | |
.hide-text{ | |
text-indent: -9999px; | |
} |
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
.element { | |
position: fixed; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 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
.centrar { | |
width: 300px; | |
height: 200px; | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
margin-left: -150px; /*(width/2)*/ | |
margin-top: -100px; /*(height/2)*/ | |
} |
OlderNewer