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
| from tornado import wsgi | |
| from tornado import web | |
| from tornado import ioloop | |
| import settings | |
| from tornadoapp import urls | |
| from flaskapp.app import initialize_app | |
| from utils.argparser import get_argparser | |
| application_urls = urls.URL_LIST \ |
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
| (function(){ | |
| $.mobile.linkBindingEnabled = false; | |
| $.mobile.hashListeningEnabled = false; | |
| window.ExerciseRouter = Backbone.Router.extend({ | |
| routes: { | |
| 'test': function(){ console.log('Test');}, | |
| 'exercises': 'showExercises', | |
| 'exercises/detail/:pk': 'showExerciseDetail' | |
| }, | |
| showExercises: function(){ |
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 base = 'YWRtaW46YWRtaW4='// $['base64'].encode('admin:admin');// | |
| var req = new XMLHttpRequest(); | |
| req.open("POST",'http://mobcrew.zapix.ru/api/v1/check_login/' ,true ); | |
| req.setRequestHeader("Authorization","Basic "+base); | |
| //this.req.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
| req.setRequestHeader("Content-Type","application/json"); | |
| req.onreadystatechange=function(evt){ | |
| console.log("state::",evt) | |
| console.log(evt.target.responseText); | |
| return; |
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 | |
| Q = require( "q" ), | |
| $ = require( "jquery" ), | |
| btoa = require( "btoa" ), | |
| KanbanerDispatcher = require( "../dispatcher/KanbanerDispatcher" ), | |
| KanbanerConstants = require( "../constants/KanbanerConstants" ), | |
| ActionTypes = KanbanerConstants.ActionTypes; |
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 | |
| React = require( "react" ), | |
| localStorage = require( "localStorage" ), | |
| UserStore = require( "../stores/UserStore" ), | |
| UserActions = require( "../actions/UserActions" ), | |
| LocalStorage = React.createClass({ | |
| componentDidMount: function() { | |
| UserStore.addUserLoggedInListener(this.onUserLogin); | |
| UserStore.addUserLoggedOutListener(this.onUserLogout); |
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
| UserActions = { | |
| /** | |
| * Tries to authorize with current token | |
| * @param token | |
| * @returns {*} | |
| */ | |
| checkToken: function( token ){ | |
| return LoaderActions.showLoader() | |
| .then(function() { |
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
| db: | |
| image: aidanlister/postgres-hstore | |
| volumes_from: | |
| - oblichi-content-volume | |
| redis: | |
| image: redis | |
| rabbitmq: | |
| image: dockerfile/rabbitmq |
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
| (Pdb) data | |
| {'status': 'errors', 'errors': {'email': [u'Free task model with this Email already exists.']}, 'form': u'\n\n<form id="free-task-form" method="post" ><div id="div_id_email" class="form-group has-error"><label for="id_email" class="control-label requiredField">\n\t\t\t\tEmail<span class="asteriskField">*</span></label><div class="controls "><input class="emailinput form-control" id="id_email" maxlength="75" name="email" type="email" value="me@zapix.ru" /> <span id="error_1_id_email" class="help-block"><strong>Free task model with this Email already exists.</strong></span></div></div><div id="div_id_name" class="form-group"><label for="id_name" class="control-label requiredField">\n\t\t\t\tNombre<span class="asteriskField">*</span></label><div class="controls "><input class="textinput textInput form-control" id="id_name" maxlength="255" name="name" type="text" value="oblichi" /> </div></div><div id="div_id_description" class="form-group"><label for="id_description" class="control-label requiredF |
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).parents(".js-reward").find(".js-campaign-rewavval").prop('required', true).val('').parent().removeClass('hidden'); |
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
| #!/usr/bin/env bash | |
| echo "Checking your commit" | |
| cd frontend | |
| npm run lint | |
| RESULT=$? | |
| [ $RESULT -ne 0 ] && exit 1 |
OlderNewer