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
/** | |
* Gruntfile loading external tasks | |
* | |
* ./Gruntfile.js | |
* | |
* @param grunt | |
* @author Thiago Poiani <[email protected]> | |
*/ | |
module.exports = function (grunt) { | |
'use strict'; |
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
<form> | |
<label for="name">Name</label> | |
<input type="text" name="user[name]" id="name"> | |
<label for="email">Email</label> | |
<input type="email" name="user[email]" id="email"> | |
<label for="description">Description</label> | |
<textarea name="user[description]" id="description"></textarea> |
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>Ways to emulate a click in a link with JavaScript</title> | |
<style> | |
[data-href] { cursor: pointer; } | |
</style> | |
</head> |
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 disciplinas = $('tbody:not(:first) tr'), | |
aluno = $('.tabelaCabecalhoAluno td:first').text(), | |
total = 0, | |
media = 0, | |
count = 0; | |
function isAprovado(disciplina) { | |
return $(disciplina).find(':last').text() === 'Aprovado'; | |
} |
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
options | |
{ | |
static = false; | |
LOOKAHEAD = 2; | |
JDK_VERSION = "1.7"; | |
IGNORE_CASE = false; | |
ERROR_REPORTING = true; | |
} | |
PARSER_BEGIN(AnalisadorLexico) |
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
# Installation | |
$ sudo apt-get update | |
$ sudo apt-get install build-essential python-software-properties git | |
$ sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" | |
$ sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
$ sudo apt-get update && apt-get install docker | |
# Hello, Docker |
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 log --pretty=format:user:%aN%n%ct --reverse --raw --encoding=UTF-8 --no-renames --no-merges > gource-git.log | |
gource \ | |
-1280x720 \ | |
--seconds-per-day 1.5 \ | |
--auto-skip-seconds 0.5 \ | |
--multi-sampling \ | |
--stop-at-end \ | |
--highlight-users \ |
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
public class FeatureOfInterest { | |
private Identifier identifier; | |
private Geometry geometry; | |
public Identifier getIdentifier() { | |
return identifier; | |
} | |
public void setIdentifier(Identifier identifier) { | |
this.identifier = identifier; |
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
# docker build --rm -t vanguarda/project -f Dockerfile | |
FROM vanguarda/lamp | |
MAINTAINER Thiago Henrique Poiani <[email protected]> | |
# copy project | |
COPY app /var/www/html/app | |
RUN mkdir /var/www/html/app/log /var/www/html/app/cache -p \ | |
&& touch /var/www/html/app/log/admin.log /var/www/html/app/log/www.log \ | |
&& chmod 777 /var/www/html/app/log -R |
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
# git submodule add MODULE module | |
# git config --global diff.submodule log | |
git clone SUBMODULE | |
git submodule init | |
git submodule update | |
# or | |
git clone --recursive MODULE | |
git submodule update --remote |