###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: |
###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]);
}
| <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> |
| /* | |
| 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; |
| //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(); | |
| } |
| module.exports = (robot) -> | |
| robot.hear /^mimimi$/i, (msg) -> | |
| msg.send "http://videobeta.net/gifs/15963.gif" |
| # 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) | |
| # |
| # 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 |
| # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) | |
| config.assets.precompile += %w( *.css *.js ) |
| var foo = $(this).parent().parent().parent().parent().parent().find("#list-foos").html() |