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
| class Elections.View.Test extends Elections.View.Base | |
| el: ".js-test-popup" | |
| initialize: -> | |
| @sections = | |
| index: this.$( ".js-st-step-0" ) | |
| test: this.$( ".js-st-step-1" ) | |
| result: this.$( ".js-st-step-2" ) |
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
| <?php | |
| $url = "https://api.vk.com/method/wall.post?owner_id={$user['vkid']}&message={$object['description']}.&uid={$user['vkid']}&access_token={$user['vktok']}&attachments={$object['link2site']}"; | |
| $spost = file_get_contents($url); | |
| ?> |
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
| class App < Sinatra::Base | |
| register Sinatra::AssetPack | |
| assets { | |
| serve '/js', :from => 'app/js' # Optional | |
| serve '/css', :from => 'app/css' # Optional | |
| serve '/img', :from => 'app/img' # Optional | |
| # The second parameter defines where the compressed version will be served. |
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
| require 'rubygems' | |
| require 'sinatra' | |
| require "#{File.dirname(__FILE__)}/db" | |
| class App < Sinatra::Base | |
| configure do | |
| set :environment, :development |
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
| # Номрмальная ширина шрифта в сублиме - http://chrissilich.com/blog/sublime-text-font-smoothing-anti-aliasing-issues-in-mountain-lion/ | |
| defaults -currentHost write -globalDomain AppleFontSmoothing -int 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
| package edu.workspace; | |
| import java.util; | |
| import java.io.InputStream; | |
| class SquareEquation { | |
| public static void findSquareEquationRoots(String[] args) { | |
| print("Решим квадратное уравнение"); | |
| if (args.length < 3) { | |
| println("Введите параметры уравнения(a, b, c) в командной строке"); |
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
| # Модуль инициализирующий приложение | |
| window[ "Elections" ] = Elections = window[ "Elections" ] or {} | |
| class window[ "Elections" ][ "Loader" ] | |
| constructor: -> | |
| # расширяем будущее приложение событиями из Backbone | |
| @app = _.extend {}, window[ "Backbone" ][ "Events" ] |
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
| # Список всех модулей для работы страницы авторизации | |
| # [ [ {} ... {} ] [ {} ... {} ] [ {} ... {} ] ] | |
| # Каждый масив модулей грузиться последовательно | |
| # порядок загрузки пачки модуле опредиляется позициеей в массиве | |
| # | |
| # Модули внутри массива могут быть асинхроными и грузиться не последовательно | |
| window[ "Elections" ] = Elections = window[ "Elections" ] or {} | |
| window[ "Elections" ][ "page" ] = "auth" |
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
| page: | |
| auth: | |
| defult: [ "ban_authorization", "ban_registration" ] | |
| allow_login: [ "signin", "signup", "restore", "openid", "lj", "ban_registration", "restore_mail", "confirm", "activation", "error" ] | |
| allow_registration: [ "ban_authorization", "signup" ] | |
| allow_openstat: [ "openstat" ] | |
| set_password: | |
| defult: [ "ban_authorization" ] | |
| allow_login: [ "set_password" ] | |
| allow_openstat: [ "openstat" ] |