This file contains hidden or 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
| Folio.find().distinct('category', function(err, categories) { | |
| var dadosCategoria = { }; | |
| var cat = []; | |
| var loop = categories.length | |
| categories.forEach(function(category){ | |
| Folio.count({'category' : category}, function(err, c) { | |
| dadosCategoria.name = category; | |
| dadosCategoria.count = c; | |
| cat.push(dadosCategoria); | |
| if(loop-- == 0) |
This file contains hidden or 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 async = require('async'); | |
| Folio.find().distinct('category', function(err, categories) { | |
| async.map(categories, function(category, callback){ | |
| Folio.count({'category' : category}, function(err, cat) { | |
| callback(err, cat) | |
| }); | |
| }, function(err, results){ | |
| if(err) | |
| throw new Error(err) |
This file contains hidden or 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
| query("minha query", function(resultado){ | |
| global["resultado"] = resultado; | |
| }); |
This file contains hidden or 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
| ## This should be places in the plugin directory | |
| ## for more help configuring see the wiki | |
| ## https://github.com/alkarinv/BattleArena/wiki | |
| ## Change this file to customize your match | |
| Paintball: | |
| enabled: true | |
| database: Paintball # or delete if you dont want wins/losses/top, needs BattleTracker | |
| rated: true # if database is enabled | |
| prefix: "&f[Paintball]&e" |
This file contains hidden or 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
| wget http://redis.googlecode.com/files/redis-2.6.10.tar.gz | |
| tar -zxvf redis-2.6.10.tar.gz | |
| cd redis-2.6.10 | |
| make && sudo make install |
This file contains hidden or 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
| PUT http://localhost:8080/api/address | |
| PAYLOAD/BODY: {"id" : "teste", "lat" : "-23.57686", "lon" : "-46.6678"} | |
| GET http://localhost:8080/api/address?id=teste |
This file contains hidden or 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
| curl -XPUT -d '{"id" : "teste", "lat" : "-23.57686", "lon" : "-46.6678"}' http://localhost:8080/api/address | |
| curl -XGET http://localhost:8080/api/address?id=teste |
This file contains hidden or 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
| curl -XGET http://192.81.213.202:8080/api/address?id=teste |
This file contains hidden or 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
| { | |
| "auto_complete": true, | |
| "drag_text": false, | |
| "ensure_newline_at_eof_on_save": true, | |
| "font_face": "Monaco", | |
| "font_size": 11, | |
| "highlight_line": true, | |
| "hot_exit": false, | |
| "ignored_packages": | |
| [ |
This file contains hidden or 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@server:~$ sudo printenv | |
| TERM=xterm | |
| LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli |
OlderNewer