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
| func (gcToolchain) pack(b *Builder, a *Action, afile string, ofiles []string) error { | |
| var absOfiles []string | |
| for _, f := range ofiles { | |
| absOfiles = append(absOfiles, mkAbs(a.Objdir, f)) | |
| } | |
| // ... | |
| } |
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
| func (p *printer) addWhitespace(kind ctrlSymbol, text string) { | |
| p.pending = append(p.pending, whitespace{p.lastTok, kind /*text*/}) | |
| switch kind { | |
| case semi: | |
| p.lastTok = _Semi | |
| case newline: | |
| p.lastTok = 0 | |
| // TODO(gri) do we need to handle /*-style comments containing newlines here? | |
| } | |
| } |
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
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } | |
| server { | |
| listen 80; | |
| server_name ws.disaev.ru; | |
| location / { |
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
| #search/templates/search/search.html | |
| {% extends 'app/base.html' %} | |
| {% block content %} | |
| <div class="row"> | |
| <div class="col-md-12"> | |
| <form method="get" action="."> | |
| <table> | |
| {{ form.as_table }} | |
| <tr> |
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
| #static/js/answers_subscribe.js | |
| function subscribe_to_new_answers() { | |
| var $info = $('#answers-cent-data'); | |
| var centrifuge = new Centrifuge({ | |
| url: $info.data('cent-url'), | |
| user: $info.data('cent-user').toString(), | |
| timestamp: $info.data('cent-ts').toString(), | |
| info: $info.data('cent-info'), | |
| token: $info.data('cent-token'), | |
| debug: false, |
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 https://raw.githubusercontent.com/centrifugal/centrifuge-js/master/centrifuge.js -O static/js/centrifuge.js | |
| ./manage.py collectstatic |
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 https://github.com/centrifugal/centrifugo/releases/download/v1.4.5/centrifugo-1.4.5-linux-amd64.zip | |
| unzip centrifugo-1.4.5-linux-amd64.zip | |
| cd centrifugo-1.4.5-linux-amd64/ | |
| ./centrifugo -h |
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
| # memcached default config file | |
| # 2003 - Jay Bonci <jaybonci@debian.org> | |
| # This configuration file is read by the start-memcached script provided as | |
| # part of the Debian GNU/Linux distribution. | |
| # Run memcached as a daemon. This command is implied, and is not needed for the | |
| # daemon to run. See the README.Debian that comes with this package for more | |
| # information. | |
| -d |
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 is default tarantool initialization file | |
| -- with easy to use configuration examples including | |
| -- replication, sharding and all major features | |
| -- Complete documentation available in: http://tarantool.org/doc/ | |
| -- | |
| -- To start this example just run "sudo tarantoolctl start example" or | |
| -- use init scripts provided by binary packages. | |
| -- To connect to the instance, use "sudo tarantoolctl enter example" | |
| -- Features: | |
| -- 1. Database configuration |
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 -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| # echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
| # sudo apt-get update | |
| # sudo apt-get install –y openjdk-7-jre-headless elasticsearch | |
| # pip install elasticsearch |