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
exports.flight = function(req, res){ | |
var number = req.param("number"); | |
if (typeof flights[number] == "undefined") { | |
res.status(400).json({status: "error", msg: "this is undefined flight"}); | |
} | |
else { | |
res.json(flights[number].getInformation()); | |
} | |
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
a=$(curl -s ipogre.com/linux.php); a=${a##* }; echo ${a%%<*} |
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/sh | |
GIT_WORK_TREE=/var/www/nginx/danielmelo git checkout -f | |
# http://toroid.org/ams/git-website-howto |
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
server { | |
listen 80; | |
server_name domain.tk; | |
access_log logs/danielmelo.access.log ;# main; | |
location / { | |
try_files $uri $uri/ index.php index.html =404; | |
root /var/www/nginx/danielmelo; | |
index index.php index.html index.htm; |
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
<!-- IMPRIME, mas so se marcar o ultimo ele vai pra propriedade do bean --> | |
<ui:repeat value="#{local.obsService.obsDefault}" var="obsDefault"> | |
<h:selectManyCheckbox value="#{local.obsForm}" id="obstaculos"> | |
<f:selectItem itemLabel="#{obsDefault.nome}" itemValue="#{obsDefault.nome}" /> | |
</h:selectManyCheckbox> | |
</ui:repeat> | |
<!-- NÃO IMPRIME--> |
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
<h:selectManyCheckbox id="obstaculos" value="local.obsForm"> | |
<f:selectItem value="#{local.obsService.obsDefault}" itemValue="#{local.obsService.obsDefault}" /> | |
</h:selectManyCheckbox> |
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
/* | |
Referência: -16.78024 -49.15648 | |
*/ | |
WITH referencia as ( | |
SELECT ST_Geomfromtext('POINT(-16.78024 -49.15648)', 4326)::geography as point | |
) | |
SELECT l.nome, l.lat, l.lon, ST_Distance( |
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" encoding="UTF-8"?> | |
<classpath> | |
<classpathentry kind="src" path="src/main/java"/> | |
<classpathentry kind="src" path="src/test/java"/> | |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> | |
<attributes> | |
<attribute name="owner.project.facets" value="java"/> | |
</attributes> | |
</classpathentry> | |
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> |
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 http = require("http"), | |
fs = require("fs"); | |
var server = http.createServer(function(request, response) { | |
var content = fs.readFileSync("./meu-conteudo.txt"); | |
response.end(content); | |
}); | |
server.listen(3000); |
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 | |
montar() { | |
mount -t vboxsf "$1" "$2" | |
} | |
desmontar() { | |
umount -t vboxsf "$1" | |
} |
OlderNewer