###Collections Salas{_id} Reservas{_id, sala_id, data}
###Preciso contar as reservas de cada sala por uma data:
map = function () { emit(this.sala_id, [1]); }
# Show some help to git noobies | |
# | |
# use it as: | |
# git help <topic> | |
# | |
# <topic> can be one of: | |
# create|clone|add|remove|commit|synchronize|branch|merge|tag|restore | |
# | |
# developed by http://github.com/vquaiato - Crafters Software Studio |
# it was based on github-issues.coffee script | |
# | |
# add "date-utils":">=1.2.5" in the hubot-scripts.json file | |
# | |
# add HUBOT_GITHUB_USER to your heroku env | |
# the HUBOT_GITHUB_USER should map to your account, not the bot account | |
# the HUBOT_BOT_GITHUB_USER should map to the bot github username | |
# the HUBOT_BOT_GITHUB_PASS should map to the bot github password | |
# (you do not need to create a bot github account, but doing keeps your account secure) | |
# |
module.exports = (robot) -> | |
robot.hear /^mimimi$/i, (msg) -> | |
msg.send "http://videobeta.net/gifs/15963.gif" |
//http://nuget.codeplex.com/SourceControl/changeset/view/435b2c2e1ddd#src%2fCommandLine%2fCommands%2fInstallCommand.cs | |
private static string GenerateUniqueToken(IPackageManager packageManager, string packageId, SemanticVersion version) { | |
var packagePath = packageManager.FileSystem.GetFullPath(packageManager.PathResolver.GetPackageFileName(packageId, version)); | |
var pathBytes = Encoding.UTF8.GetBytes(packagePath); | |
var hashProvider = new CryptoHashProvider("SHA256"); | |
return Convert.ToBase64String(hashProvider.CalculateHash(pathBytes)).ToUpperInvariant(); | |
} |
/* | |
from: http://www.red-team-design.com/css-ribbons | |
*/ | |
h1{ | |
text-align: center; | |
position: relative; | |
color: #fff; | |
margin: 0 -30px 30px -30px; | |
padding: 10px 0; |
<div class="control-group boolean optional"> | |
<label class="boolean optional control-label" for="user_remember_me">Remember me</label> | |
<div class="controls"> | |
<input name="user[remember_me]" type="hidden" value="0"> | |
<label class="checkbox"> | |
<input class="boolean optional" id="user_remember_me" name="user[remember_me]" type="checkbox" value="1"> | |
</label> | |
</div> | |
</div> |
###Collections Salas{_id} Reservas{_id, sala_id, data}
###Preciso contar as reservas de cada sala por uma data:
map = function () { emit(this.sala_id, [1]); }
#!bash | |
#put in /usr/local/git/contrib/completion/git-completion.bash | |
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: |
vquaiato [~/Desktop/foo] (master) $ rm foo | |
vquaiato [~/Desktop/foo] (master *) $ git add -u | |
vquaiato [~/Desktop/foo] (master +) $ git status | |
# On branch master | |
# Changes to be committed: | |
# (use "git reset HEAD <file>..." to unstage) | |
# | |
# deleted: foo | |
# | |
vquaiato [~/Desktop/foo] (master +) $ git commit -m "removeno foo" |
seq 1 1000000 | xargs -n1 -P100 -I{} curl -d "i_answer=1544512" http://pt.fifa.com/theclub/polls/pollId=1544769/staticvote.htmx | |
# Inspired by https://github.com/vquaiato/better-fifa-raquer |