code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
frontend-workflow- ================== frontend workflow, using git, require, requireJS, Bower, Compass, csslint, grunticon, svg-optimization, LiveReload, Imagemin and YUIDoc. ##################### Environment setup ############################## You'll need the following tools to get the full advantages of this workflow: ###Ruby ###Sass and Compass [gem update --system, then, sudo gem install sass, then, sudo gem install compass] ###Node.js [use installer then sudo npm install n -g] ###Bower [npm install -g bower] ###csslintrc [npm install -g csslint] ###MongoDB (see below - i dont use it) ###Grunt [npm uninstall -g grunt , then, npm install -g grunt-cli ###grunticon [npm install grunt-grunticon --save-dev, then add to gruntfile; grunt.loadNpmTasks('grunt-grunticon');] ###SVG-optomization [npm install grunt-svgmin --save-dev , then add to gruntfile this; grunt.loadNpmTasks('grunt-svgmin');]
puginabox/frontend-workflow-
README.md
Markdown
mit
997
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("RT PL-SQL Backend")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("RT PL-SQL Backend")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("b68e3228-55cb-4cc6-8372-9d2d1c7b36f9")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.0.*")] [assembly: AssemblyFileVersion("3.0.0.0")]
millo-coog/rt-plsql
RT/Backend/Properties/AssemblyInfo.cs
C#
mit
1,408
package com.jeff.game.castlesmack.util.data; public class ThreadLocalRandom { public static int nextInt(int min, int max) { return Math.abs(min + (int)(Math.random() * ((max - min) + 1))); } }
CSC-455-Group/CastleSmack
core/src/com/jeff/game/castlesmack/util/data/ThreadLocalRandom.java
Java
mit
211
if [[ ! -o interactive ]]; then return fi compctl -K _dev dev _dev() { local word words completions read -cA words word="${words[2]}" if [ "${#words}" -eq 2 ]; then completions="$(dev commands)" else completions="$(dev completions "${word}")" fi reply=("${(ps:\n:)completions}") }
hmarcelino/dev-utils
completions/dev.zsh
Shell
mit
311
require 'spec_helper' # Rename this file to classname_spec.rb # Check other boxen modules for examples # or read http://rspec-puppet.com/tutorial/ describe 'astah_community' do it { should contain_class('astah_community') } it { should contain_package('astah_community').with_provider('appdmg_eula') } it { should contain_package('astah_community').with_source('http://cdn.change-vision.com/files/astah-community-6_8_0-35584d-MacOs.dmg')} end
jszod/puppet-astah_community
spec/classes/astah_community_spec.rb
Ruby
mit
449
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations def default_settings(apps, schema_editor): Setting = apps.get_model('appsettings', 'Setting') default_settings = [ Setting(title='Site Name', slug='site-name', value='ZWiki'), Setting(title='Site Webmaster Email', slug='site-webmaster-email', value='[email protected]'), ] for setting in default_settings: setting.save() class Migration(migrations.Migration): dependencies = [ ('appsettings', '0001_initial'), ] operations = [ migrations.RunPython(default_settings), ]
williamscales/zwiki
zwiki/appsettings/migrations/0002_default_settings.py
Python
mit
670
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <link rel="shortcut icon" href="favicon.ico?6"> <title>Aqua</title> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- BootFlat --> <link href="css/bootflat.min.css" rel="stylesheet"> <!-- TimeLine --> <link href="css/timeline.css" rel="stylesheet"> <!-- Animations --> <link href="css/animate.css" rel="stylesheet"> <!-- Bootstrap datetimepicker --> <link href="css/bootstrap-datetimepicker.min.css" rel="stylesheet"> <!-- Morris --> <link href="css/morris.css" rel="stylesheet"> <!-- Full Calendar --> <link href="css/fullcalendar.css" rel="stylesheet"> <!-- Zabuto Calendar --> <link href="css/zabuto_calendar.min.css" rel="stylesheet"> <!-- jQuery DataTables --> <link href="css/bootstrap-datatables.css" rel="stylesheet"> <!-- fancyBox --> <link href="css/jquery.fancybox.css" rel="stylesheet"> <!-- Styles --> <link href="css/aqua.css" rel="stylesheet"> <!-- Fonts --> <!-- <link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet"> --> <link href="http://brick.a.ssl.fastly.net/Open+Sans:300,400,600,700" rel="stylesheet"> <link href="css/ionicons.min.css" rel="stylesheet"> <link href="css/font-awesome.min.css" rel="stylesheet"> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script> <![endif]--> </head> <body> <div id="wrapper"> <nav class="navbar navbar-default navbar-aqua navbar-fixed-top" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="dashboard.html" title="Dashboard"><i class="ion ion-waterdrop"></i> <span class="visible-inline-xs">Aqua</span></a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav side-nav"> <li> <div class="user-info-wrap"> <div class="user-image"> <img src="img/avatar.jpg" class="img-circle" width="65" height="65"> </div> <div class="user-info"> <div class="username">John <strong>Doe</strong></div> <div class="status text-uppercase"><i class="fa fa-circle color-green"></i> Online</div> </div> </div> </li> <li><a href="dashboard.html" title="Dashboard"><i class="fa fa-dashboard primary"></i>Dashboard</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-desktop success"></i>UI Elements <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="general.html" title="General">General</a></li> <li><a href="buttons.html" title="Buttons">Buttons</a></li> <li><a href="panels.html" title="Panels">Panels</a></li> <li><a href="font-awesome.html" title="Font Awesome">Font Awesome</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cogs info"></i>Components <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="grid.html" title="Grid">Grid</a></li> <li><a href="calendar.html" title="Calendar">Calendar</a></li> <li><a href="gallery.html" title="Gallery">Gallery</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-book warning"></i>Extra Pages <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="sign-in.html" title="Sign In" data-type="out">Sign In</a></li> <li><a href="sign-up.html" title="Sign Up" data-type="out">Sign Up</a></li> <li class="active"><a href="pricing-tables.html" title="Pricing Tables">Pricing Tables</a></li> <li><a href="blank-page.html" title="Blank Page">Blank Page</a></li> <li><a href="404.html" title="404 Error">404 Error</a></li> <li><a href="500.html" title="500 Error">500 Error</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-tasks danger"></i>Forms <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="form-components.html" title="Form Components">Form Components</a></li> <li><a href="advanced-components.html" title="Advanced Components">Advanced Components</a></li> <li><a href="form-validation.html" title="Form Validation">Form Validation</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-th primary"></i>Data Tables <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="normal-pagination.html" title="Normal Pagination">Normal Pagination</a></li> <li><a href="2-button-pagination.html" title="2 Button Pagination">2 Button Pagination</a></li> <li><a href="4-button-pagination.html" title="4 Button Pagination">4 Button Pagination</a></li> <li><a href="full-pagination.html" title="Full Pagination">Full Pagination</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bar-chart-o info"></i>Charts <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="morris.html" title="Morris">Morris</a></li> <li><a href="chartjs.html" title="Chartjs">Chartjs</a></li> <li><a href="flot.html" title="Flot">Flot</a></li> </ul> </li> </ul> <ul class="nav navbar-nav"> <li class="hidden-xs aqua-search"> <form class="navbar-form navbar-left" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search.."/> <div class="input-group-btn"> <button type="submit" class="btn btn-inverse"><i class="ion ion-search"></i></button> </div> </div> </form> </li> </ul> <ul class="nav navbar-nav navbar-right navbar-top-links"> <li class="dropdown dropdown-aqua"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" title="Messages"> <i class="ion ion-ios7-chatbubble ion-2x"></i> <span class="visible-inline-xs">Messages</span> <span class="badge notify-badge">4</span> </a> <ul class="dropdown-menu"> <li class="dropdown-header"> <p>You have 4 new messages</p> </li> <li> <a href="#"> <img width="38" height="38" src="img/avatar.jpg" class="img-circle" /> Lorem ipsum dolor sit amet... <span class="time small italic">15 mins</span> </a> </li> <li> <a href="#"> <img width="38" height="38" src="img/avatar.jpg" class="img-circle" /> Duis aute irure dolor in reprehenderit... <span class="time small italic">45 mins</span> </a> </li> <li> <a href="#"> <img width="38" height="38" src="img/avatar.jpg" class="img-circle" /> Cum sociis natoque penatibus et magnis... <span class="time small italic">5 hrs</span> </a> </li> <li> <a href="#"> <img width="38" height="38" src="img/avatar.jpg" class="img-circle" /> Cum sociis natoque penatibus et magnis... <span class="time small italic">5 hrs</span> </a> </li> <li> <a href="#">See all messages</a> </li> </ul> </li> <li class="dropdown dropdown-aqua"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" title="Notifications"> <i class="ion ion-ios7-bell ion-2x"></i> <span class="visible-inline-xs">Notifications</span> <span class="badge notify-badge">3</span> </a> <ul class="dropdown-menu"> <li class="dropdown-header"> <p>You have 3 new notifications</p> </li> <li> <a href="#"> <span class="label label-danger"><i class="fa fa-bolt"></i></span> Lorem ipsum dolor sit amet. <span class="time small italic">5 mins</span> </a> </li> <li> <a href="#"> <span class="label label-warning"><i class="fa fa-bell"></i></span> Duis aute irure dolor in reprehenderit. <span class="time small italic">30 mins</span> </a> </li> <li> <a href="#"> <span class="label label-danger"><i class="fa fa-bolt"></i></span> Cum sociis natoque penatibus et magnis. <span class="time small italic">2 hrs</span> </a> </li> <li> <a href="#">See all notifications</a> </li> </ul> </li> <li> <a href="#" title="Full screen" class="fullscreen visible-md visible-lg"> <i class="ion ion-arrow-expand ion-2x"></i> </a> </li> <li class="dropdown user-dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="ion ion-ios7-person ion-2x"></i> <span class="visible-inline-xs">Profile</span> </a> <ul class="dropdown-menu"> <li><a href="#"><i class="ion ion-ios7-person"></i> Profile</a></li> <li><a href="#"><i class="ion ion-ios7-gear"></i> Settings</a></li> <li class="divider"></li> <li><a href="sign-in.html" data-type="out"><i class="ion ion-log-out"></i> Sign Out</a></li> </ul> </li> </ul> </div><!-- /.navbar-collapse --> </nav> <div id="content" class="container-aqua animated"> <div class="row row-aqua"> <div class="col-md-12"> <h1 class="section-title">Pricing Tables</h1> </div> <div class="col-md-4"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="text-center"> Free Plan </h4> </div> <div class="panel-body text-center"> <p class="lead"> <strong>$0 / month</strong></p> </div> <ul class="list-group list-group-flush text-center"> <li class="list-group-item"><i class="icon-ok text-danger"></i>1 Account</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>1 Project</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>100MB Storage</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>Personal use</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>24/7 support</li> </ul> <div class="panel-footer"> <a class="btn btn-lg btn-block btn-warning" href="#">Register now!</a> </div> </div> </div> <div class="col-md-4"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="text-center"> Basic Plan </h4> </div> <div class="panel-body text-center"> <p class="lead"> <strong>$10 / month</strong></p> </div> <ul class="list-group list-group-flush text-center"> <li class="list-group-item"><i class="icon-ok text-danger"></i>3 Account</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>15 Project</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>2000MB Storage</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>Commercial use</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>24/7 support</li> </ul> <div class="panel-footer"> <a class="btn btn-lg btn-block btn-warning" href="#">Order now!</a> </div> </div> </div> <div class="col-md-4"> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="text-center"> Pro Plan </h4> </div> <div class="panel-body text-center"> <p class="lead"> <strong>$20 / month</strong></p> </div> <ul class="list-group list-group-flush text-center"> <li class="list-group-item"><i class="icon-ok text-danger"></i>15 Account</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>Unlimited Projects</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>5000MB Storage</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>Commercial use</li> <li class="list-group-item"><i class="icon-ok text-danger"></i>24/7 support</li> </ul> <div class="panel-footer"> <a class="btn btn-lg btn-block btn-warning" href="#">Order now!</a> </div> </div> </div> </div> </div><!-- /.container-aqua --> </div><!-- /#wrapper --> <!-- JavaScript - Placed at the end of the document so the pages load faster --> <!-- jQuery --> <script src="js/jquery-1.11.0.min.js"></script> <!-- Bootstrap core JavaScript --> <script src="js/bootstrap.min.js"></script> <!-- Bootstrap datetimepicker --> <script src="js/moment.min.js"></script> <script src="js/bootstrap-datetimepicker.min.js"></script> <!-- Raphael --> <script src="js/raphael-min.js"></script> <!-- Raphael & Chartjs --> <script src="js/Chart.min.js"></script> <!-- Morris --> <script src="js/morris.min.js"></script> <!-- Flot Chart --> <script src="js/flot/jquery.flot.js"></script> <script src="js/flot/jquery.flot.resize.js"></script> <script src="js/flot/jquery.flot.stack.js"></script> <script src="js/flot/jquery.flot.crosshair.js"></script> <!-- Full Calendar --> <script src="js/fullcalendar.min.js"></script> <!-- Zabuto Calendar --> <script src="js/zabuto_calendar.min.js"></script> <!-- jQuery DataTables --> <script src="js/jquery.dataTables.min.js"></script> <script src="js/bootstrap-datatables.js"></script> <!-- fancyBox --> <script src="js/jquery.fancybox.pack.js"></script> <!-- miniNotification --> <script src="js/miniNotification.js"></script> <!-- Aqua specific JavaScripts --> <script src="js/aqua.js"></script> <!-- Page specific JavaScripts --> </body> </html>
project-store/theme
backend/aqua/pricing-tables.html
HTML
mit
16,918
(function () { 'use strict'; angular .module('password.mfa') .factory('bowser', config); function config($window) { return $window.bowser; } })();
silinternational/idp-pw-ui
app/mfa/bowser.service.js
JavaScript
mit
185
/*! * Ebru v0.1.0 * http://www.boldoutlook.com/ebru/ * Copyright 2015 Bold Outlook, Brandon Himpfen * Licensed under MIT (http://boldoutlook.mit-license.org) */ html { overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; font-size: 16px; line-height: 1.5em; } body { margin: 0; padding: 0; font-size: 14px; font-size: 0.875rem; line-height: 1.5em; } body, button, input, select, textarea { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #222; } ::-moz-selection { background: #12C2E9; color: #FFF; text-shadow: none; } ::selection { background: #12C2E9; color: #FFF; text-shadow: none; } a { color: #12C2E9; text-decoration: none; } a:visited { color: #12C2E9; text-decoration: none; } a:hover { color: #007da5; text-decoration: underline; } a:focus { outline: thin dotted; } a:hover, a:active { outline: 0; } dfn { font-style: italic; } hr { display: block; height: 1px; border: 0; border-top: 1px solid #CCC; margin: 1em 0; padding: 0; } q { quotes: none; } q:before, q:after { content: ""; content: none; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } dd { margin: 0 0 0 40px; } nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 0; } fieldset { border: 0; margin: 0; padding: 0; } legend { border: 0; *margin-left: -7px; padding: 0; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } audio:not([controls]) { display: none; } [hidden] { display: none; } p { margin: 0.25em 0em; padding: 0px; text-align: left; } p.lead { font-size: 17.5px; font-size: 1.09375rem; } h1, h2, h3, h4, h5 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.5em; } h1 { font-size: 32px; font-size: 2rem; color: #222; padding: 0px; margin: 0px; } h2 { font-size: 26px; font-size: 1.625rem; color: #222; padding: 0px; margin: 0px; } h3 { font-size: 22px; font-size: 1.375rem; color: #222; padding: 0px; margin: 0px; } h4 { font-size: 18px; font-size: 1.125rem; color: #222; margin: 0px; padding: 0px; } h5 { font-size: 14px; font-size: 0.875rem; color: #222; margin: 0px; padding: 0px; } mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; } ins { background: #ff9; color: #000; text-decoration: none; } small { font-size: 85%; } b, strong { font-weight: bold; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-nowrap { white-space: nowrap; } .text-lowercase { text-transform: lowercase; } .text-uppercase { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } abbr[title] { border-bottom: 1px dotted; } blockquote { padding-top: 5px; padding-left: 15px; padding-bottom: 5px; padding-right: 15px; margin-top: 0; margin-left: 0; margin-bottom: 10px; margin-right: 0; border-left: 5px solid #CCC; } blockquote.right { padding-top: 5px; padding-left: 15px; padding-bottom: 5px; padding-right: 15px; margin-top: 0; margin-left: 0; margin-bottom: 10px; margin-right: 0; border-left: 0; border-right: 5px solid #CCC; text-align: right; } blockquote.right p { text-align: right; } ul, ol { margin: 1em 0; padding: 0 0 0 40px; } pre, code, kbd, samp, var { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 1em; } pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; } form { margin: 0; } label { cursor: pointer; font-weight: bold; } input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; } input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; } input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } textarea { overflow: auto; vertical-align: top; resize: vertical; } input:invalid, textarea:invalid { background-color: #f0dddd; } input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; } input { line-height: normal; *overflow: visible; padding-top: 4px; padding-left: 10px; padding-bottom: 5px; padding-right: 10px; font-size: 14px; font-size: 0.875rem; } img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; } img.responsive { display: block; max-width: 100%; height: auto; } img.rounded { border-radius: 12px; -webkit-border-radius: 12px; -moz-border-radius: 12px; } img.thumbnail { display: inline-block; max-width: 100%; height: auto; padding-top: 4px; padding-left: 4px; padding-bottom: 4px; padding-right: 4px; line-height: 1.5em; background-color: transparent; border: 1px solid #ddd; border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -webkit-transition: all .2s ease-in-out; -o-transition: all .2s ease-in-out; transition: all .2s ease-in-out; } img.circle { border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%; } table { border-collapse: collapse; border-spacing: 0; } td { vertical-align: top; } table button, table input { *overflow: auto; } table, th, tr, td { text-align: left; } th, td { padding-top: 10px; padding-left: 10px; padding-bottom: 10px; padding-right: 10px; } th { background-color: #DDD; } .table.striped > tbody > tr:nth-child(even) { background-color: #FFF; } .table.striped > tbody > tr:nth-child(odd) { background-color: #EEE; } .table.border { border-width: 1px; border-style: solid; border-color: #DDD; } .table.td-border td { border-width: 1px; border-style: solid; border-color: #DDD; } .container { width: 100%; margin-left: auto; margin-right: auto; } .row { width: 100%; } @media (max-width: 480px) { .table.responsive { width: 100%; margin-bottom: 10px; overflow-y: hidden; overflow-x: scroll; -ms-overflow-style: -ms-autohiding-scrollbar; -webkit-overflow-scrolling: touch; } } @media (min-width: 768px) { .table.responsive { width: 100%; margin-bottom: 10px; overflow-y: hidden; overflow-x: scroll; -ms-overflow-style: -ms-autohiding-scrollbar; -webkit-overflow-scrolling: touch; } } @media print { * { background: transparent !important; color: black !important; text-shadow: none !important; filter: none !important; -ms-filter: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } pre, blockquote { border: 1px solid #CCC; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } }
BoldOutlook/ebru
ebru.css
CSS
mit
7,722
/** * Credits: * - SVG Processing from the NYTimes svg-crowbar, under an MIT license * https://github.com/NYTimes/svg-crowbar * - Thanks to the grunticon project for some guidance * https://github.com/filamentgroup/grunticon */ phantom.onError = function(msg, trace) { var msgStack = ['PHANTOM ERROR: ' + msg] if (trace && trace.length) { msgStack.push('TRACE:') trace.forEach(function(t) { msgStack.push( ' -> ' + (t.file || t.sourceURL) + ': ' + t.line + (t.function ? ' (in function ' + t.function +')' : '') ) }) } system.stderr.write(msgStack.join('\n')) phantom.exit(1) } var system = require('system') , fs = require('fs') , webpage = require('webpage') var page = webpage.create() , files = phantom.args.slice(6, phantom.args.length) , options = { outputDir: phantom.args[0] , png: phantom.args[1] === 'true' ? true : false , svg: phantom.args[2] === 'true' ? true : false , css: phantom.args[3] !== '' ? phantom.args[3] : '* { margin: 0; padding: 0; }' , sequenceConfig: phantom.args[4] , verbose: phantom.args[5] === 'true' ? true : false } , log = logger(options.verbose) page.content = [ '<html>' , '<head>' , '<style type="text/css">' , options.css , '</style>' , '</head>' , '<body>' , '</body>' , '</html>' ].join('\n') page.injectJs('../dist/mermaid.full.js') page.onConsoleMessage = function(msg, lineNum, sourceId) { console.log('CONSOLE: ' + msg + ' (from line #' + lineNum + ' in "' + sourceId + '")'); }; files.forEach(function(file) { var contents = fs.read(file) , filename = file.split(fs.separator).slice(-1) , oParser = new DOMParser() , oDOM , svgContent , allElements // this JS is executed in this statement is sandboxed, even though it doesn't // look like it. we need to serialize then unserialize the svgContent that's // taken from the DOM svgContent = page.evaluate(executeInPage, { contents: contents, sequenceConfig: options.sequenceConfig }) oDOM = oParser.parseFromString(svgContent, "text/xml") resolveSVGElement(oDOM.firstChild) // traverse the SVG, and replace all foreignObject elements // can be removed when https://github.com/knsv/mermaid/issues/58 is resolved allElements = traverse(oDOM) for (var i = 0, len = allElements.length; i < len; i++) { resolveForeignObjects(allElements[i]) } if (options.png) { page.viewportSize = { width: ~~oDOM.documentElement.attributes.getNamedItem('width').value , height: ~~oDOM.documentElement.attributes.getNamedItem('height').value } page.render(options.outputDir + fs.separator + filename + '.png') log('saved png: ' + filename + '.png') } if (options.svg) { var serialize = new XMLSerializer() fs.write( options.outputDir + fs.separator + filename + '.svg' , serialize.serializeToString(oDOM) , 'w' ) log('saved svg: ' + filename + '.svg') } }) phantom.exit() function logger(_verbose) { var verbose = _verbose return function(_message, _level) { var level = level , message = _message , log log = level === 'error' ? system.stderr : system.stdout if (verbose) { log.write(message + '\n') } } } function traverse(obj){ var tree = [] tree.push(obj) visit(obj) function visit(node) { if (node && node.hasChildNodes()) { var child = node.firstChild while (child) { if (child.nodeType === 1 && child.nodeName != 'SCRIPT'){ tree.push(child) visit(child) } child = child.nextSibling } } } return tree } function resolveSVGElement(element) { var prefix = { xmlns: "http://www.w3.org/2000/xmlns/" , xlink: "http://www.w3.org/1999/xlink" , svg: "http://www.w3.org/2000/svg" } , doctype = '<!DOCTYPE svg:svg PUBLIC' + ' "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"' + ' "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">' element.setAttribute("version", "1.1") // removing attributes so they aren't doubled up element.removeAttribute("xmlns") element.removeAttribute("xlink") // These are needed for the svg if (!element.hasAttributeNS(prefix.xmlns, "xmlns")) { element.setAttributeNS(prefix.xmlns, "xmlns", prefix.svg) } if (!element.hasAttributeNS(prefix.xmlns, "xmlns:xlink")) { element.setAttributeNS(prefix.xmlns, "xmlns:xlink", prefix.xlink) } } function resolveForeignObjects(element) { var children , textElement , textSpan if (element.tagName === 'foreignObject') { textElement = document.createElement('text') textSpan = document.createElement('tspan') textSpan.setAttribute( 'style' , 'font-size: 11.5pt; font-family: "sans-serif";' ) textSpan.setAttribute('x', 0) textSpan.setAttribute('y', 14.5) textSpan.textContent = element.textContent textElement.appendChild(textSpan) element.parentElement.appendChild(textElement) element.parentElement.removeChild(element) } } // The sandboxed function that's executed in-page by phantom function executeInPage(data) { var xmlSerializer = new XMLSerializer() , contents = data.contents , sequenceConfig = data.sequenceConfig , toRemove , el , elContent , svg , svgValue toRemove = document.getElementsByClassName('mermaid') if (toRemove && toRemove.length) { for (var i = 0, len = toRemove.length; i < len; i++) { toRemove[i].parentNode.removeChild(toRemove[i]) } } el = document.createElement("div") el.className = 'mermaid' elContent = document.createTextNode(contents) el.appendChild(elContent) document.body.appendChild(el) mermaid.init(sequenceConfig) svg = document.querySelector('svg') svgValue = xmlSerializer.serializeToString(svg) return svgValue }
bollwyvl/mermaid
lib/phantomscript.js
JavaScript
mit
5,975
# Copyright (c) 2015-2022 Agalmic Ventures LLC (www.agalmicventures.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. from . import Constants, Parser, Tags def calculateChecksum(message): """ Calculates the checksum of a raw message. :param message: str :return: int """ checksum = sum(ord(ch) for ch in message) return checksum % 256 class FIXMessage(object): """ Represents a single FIX message, including helpful accessors. """ def __init__(self, message): """ Initializes a new instance of FIXMessage with an unparsed message. """ assert(type(message) is str) self._message = message self._parsedMessage = Parser.parseMessage(message) ########## Basic Accessors ########## def message(self): """ Returns the message underlying this object. :return: str """ return self._message def parsedMessage(self): """ Returns the parsed message underlying this message. :return: dict """ return self._parsedMessage def get(self, id): """ Returns the string value of the given tag ID. :return: str or None """ return self._parsedMessage.get(id) def getParsed(self, id): """ Returns the string value of the given tag ID. :return: str or None """ value = self.get(id) if value is None: return None tag = Tags.TAG_ID_TO_TAG.get(id) if tag is None: return value else: return tag.type().parse(value) def __str__(self): """ Returns the string underlying this message. :return: str """ return self._message def __len__(self): """ Returns the length of the message as a string. :return: int """ return len(self._message) ########## Methods ########## def calculateChecksum(self): """ Calculates the checksum of this message, excluding the last tag if it is a checksum. :return: int """ #Remove the checksum tag from consideration lastTag = self._message.rfind(Constants.SEPARATOR, 0, -2) if self._message[lastTag+1:lastTag+4] == '10=': end = lastTag + 1 else: end = len(self._message) #Calculate the checksum over the part before the checksum return calculateChecksum(self._message[0:end]) def updateMessage(self): """ Updates the message to reflect the dictionary (including the checksum, which is also updated in the dictionary). """ #TODO: handle repeating groups #TODO: use the type system so this handles lists properly #Parts of the message to be joined parts = [] #Create the headers headerIDs = [8, 9, 35, 49, 56, 34, 52] for headerID in headerIDs: value = self.get(headerID) if value is not None: parts.append('%s=%s%s' % (headerID, value, Constants.SEPARATOR)) #Write other fields for tagID in self._parsedMessage: #Skip headers if tagID in headerIDs: continue parts.append('%s=%s%s' % (tagID, self._parsedMessage[tagID], Constants.SEPARATOR)) #Calculate the partial message for the checksum parts.append(Constants.SEPARATOR) partialMessage = ''.join(parts) #Add the checksum checksum = calculateChecksum(partialMessage) parts.append(Constants.SEPARATOR) self._message = '%s10=%3d%s' % (partialMessage, checksum, Constants.SEPARATOR) ########## Tag Helpers ########## def account(self): """ Returns the account of the message as indicated by tag 1. :return: str """ return self.get(1) def averagePrice(self): """ Returns the average price of the message as indicated by tag 6. :return: int """ return self.getParsed(6) def bodyLength(self): """ Returns the body length of the message as indicated by tag 9. :return: int """ return self.getParsed(9) def checksum(self): """ Returns the checksum of the message as indicated by tag 10. :return: int """ return self.getParsed(10) def currency(self): """ Returns the currency of the message as indicated by tag 15. :return: str """ return self.get(15) def executionID(self): """ Returns the execution ID of the message as indicated by tag 17. :return: str """ return self.get(17) def lastPrice(self): """ Returns the last price of the message as indicated by tag 31. :return: int """ return self.getParsed(31) def sequenceNumber(self): """ Returns the sequence number of the message as indicated by tag 34. :return: int """ return self.getParsed(34) def messageType(self): """ Returns the type of the message as indicated by tag 35. :return: str """ return self.get(35) def orderID(self): """ Returns the order ID of the message as indicated by tag 37. :return: str """ return self.get(37) def possibleDuplicateFlag(self): """ Returns the possible duplicate flag of the message as indicated by tag 43. :return: bool """ return self.getParsed(43) def price(self): """ Returns the price of the message as indicated by tag 44. :return: float """ return self.getParsed(44) def securityID(self): """ Returns the security ID of the message as indicated by tag 48. :return: str """ return self.get(48) def senderCompID(self): """ Returns the SenderCompID of the message as indicated by tag 49. :return: str """ return self.get(49) def senderSubID(self): """ Returns the SenderSubID of the message as indicated by tag 50. :return: str """ return self.get(50) def side(self): """ Returns the side of the message as indicated by tag 54. :return: str """ return self.get(54) def symbol(self): """ Returns the symbol of the message as indicated by tag 55. :return: str """ return self.get(55) def targetCompID(self): """ Returns the TargetCompID of the message as indicated by tag 56. :return: str """ return self.get(56) def targetSubID(self): """ Returns the TargetSubID of the message as indicated by tag 57. :return: str """ return self.get(57) def timeInForce(self): """ Returns the symbol of the message as indicated by tag 55. :return: str """ return self.get(59) def minimumQuantity(self): """ Returns the minimum quantity of the message as indicated by tag 110. :return: int """ return self.get(110) def leavesQuantity(self): """ Returns the leaves quantity of the message as indicated by tag 151. :return: int """ return self.getParsed(151) def securityType(self): """ Returns the security type of the message as indicated by tag 167. :return: str """ return self.get(167) def strikePrice(self): """ Returns the strike price of the message as indicated by tag 202. :return: float """ return self.getParsed(202) def securityExchange(self): """ Returns the security exchange of the message as indicated by tag 207. :return: str """ return self.get(207) def contractMultiplier(self): """ Returns the contract multiplier of the message as indicated by tag 231. :return: float """ return self.get(231) #TODO: others
AgalmicVentures/Fixie
Fixie/Protocol.py
Python
mit
7,934
using System; using System.Data.Linq; using System.Diagnostics; using System.Linq; using System.Xml; using System.Xml.Linq; using FirebirdSql.Data.FirebirdClient; using LinqToDB; using LinqToDB.Common; using LinqToDB.Data; using LinqToDB.DataProvider.Firebird; using LinqToDB.Mapping; using NUnit.Framework; namespace Tests.DataProvider { using System.Globalization; using Model; [TestFixture] public class FirebirdTests : DataProviderTestBase { const string CurrentProvider = ProviderName.Firebird; [Test, IncludeDataContextSource(CurrentProvider)] public void TestParameters(string context) { using (var conn = new DataConnection(context)) { Assert.That(conn.Execute<string>("SELECT Cast(@p as int) FROM Dual", new { p = 1 }), Is.EqualTo("1")); Assert.That(conn.Execute<string>("SELECT Cast(@p as char(1)) FROM Dual", new { p = "1" }), Is.EqualTo("1")); Assert.That(conn.Execute<int> ("SELECT Cast(@p as int) FROM Dual", new { p = new DataParameter { Value = 1 } }), Is.EqualTo(1)); Assert.That(conn.Execute<string>("SELECT Cast(@p1 as char(1)) FROM Dual", new { p1 = new DataParameter { Value = "1" } }), Is.EqualTo("1")); Assert.That(conn.Execute<int> ("SELECT Cast(@p1 as int) + Cast(@p2 as int) FROM Dual", new { p1 = 2, p2 = 3 }), Is.EqualTo(5)); Assert.That(conn.Execute<int> ("SELECT Cast(@p2 as int) + Cast(@p1 as int) FROM Dual", new { p2 = 2, p1 = 3 }), Is.EqualTo(5)); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestDataTypes(string context) { using (var conn = new DataConnection(context)) { Assert.That(TestType<long?> (conn, "bigintDataType", DataType.Int64), Is.EqualTo(1000000L)); Assert.That(TestType<short?> (conn, "smallintDataType", DataType.Int16), Is.EqualTo(25555)); Assert.That(TestType<decimal?> (conn, "decimalDataType", DataType.Decimal), Is.EqualTo(2222222)); Assert.That(TestType<int?> (conn, "intDataType", DataType.Int32), Is.EqualTo(7777777)); Assert.That(TestType<float?> (conn, "floatDataType", DataType.Single), Is.EqualTo(20.31f)); Assert.That(TestType<double?> (conn, "realDataType", DataType.Double), Is.EqualTo(16d)); Assert.That(TestType<DateTime?>(conn, "timestampDataType", DataType.DateTime), Is.EqualTo(new DateTime(2012, 12, 12, 12, 12, 12))); Assert.That(TestType<string> (conn, "charDataType", DataType.Char), Is.EqualTo("1")); Assert.That(TestType<string> (conn, "varcharDataType", DataType.VarChar), Is.EqualTo("234")); Assert.That(TestType<string> (conn, "textDataType", DataType.Text), Is.EqualTo("567")); Assert.That(TestType<string> (conn, "ncharDataType", DataType.NChar), Is.EqualTo("23233")); Assert.That(TestType<string> (conn, "nvarcharDataType", DataType.NVarChar), Is.EqualTo("3323")); Assert.That(TestType<string> (conn, "textDataType", DataType.NText), Is.EqualTo("567")); Assert.That(TestType<byte[]> (conn, "blobDataType", DataType.Binary), Is.EqualTo(new byte[] { 49, 50, 51, 52, 53 })); } } static void TestNumeric<T>(DataConnection conn, T expectedValue, DataType dataType, string skip = "") { var skipTypes = skip.Split(' '); foreach (var sqlType in new[] { "bigint", "smallint", "int", "decimal(18)", "float", "real" }.Except(skipTypes)) { var sqlValue = expectedValue is bool ? (bool)(object)expectedValue? 1 : 0 : (object)expectedValue; var sql = sqlValue == null ? "SELECT NULL FROM Dual" : string.Format(CultureInfo.InvariantCulture, "SELECT Cast({0} as {1}) FROM Dual", sqlValue, sqlType); Debug.WriteLine(sql + " -> " + typeof(T)); Assert.That(conn.Execute<T>(sql), Is.EqualTo(expectedValue)); } { var sql = dataType == DataType.SByte ? "SELECT Cast(@p as smallint) FROM Dual" : dataType == DataType.Int16 ? "SELECT Cast(@p as smallint) FROM Dual" : dataType == DataType.Int32 ? "SELECT Cast(@p as int) FROM Dual" : dataType == DataType.Int64 ? "SELECT Cast(@p as bigint) FROM Dual" : dataType == DataType.Byte ? "SELECT Cast(@p as smallint) FROM Dual" : dataType == DataType.UInt16 ? "SELECT Cast(@p as int) FROM Dual" : dataType == DataType.UInt32 ? "SELECT Cast(@p as bigint) FROM Dual" : dataType == DataType.UInt64 ? "SELECT Cast(@p as decimal(18)) FROM Dual" : dataType == DataType.Single ? "SELECT Cast(@p as float) FROM Dual" : dataType == DataType.Double ? "SELECT Cast(@p as real) FROM Dual" : dataType == DataType.Decimal ? "SELECT Cast(@p as decimal(18)) FROM Dual" : dataType == DataType.VarNumeric ? "SELECT Cast(@p as decimal(18)) FROM Dual" : dataType == DataType.Money ? "SELECT Cast(@p as decimal(18)) FROM Dual" : dataType == DataType.SmallMoney ? "SELECT Cast(@p as decimal(18)) FROM Dual" : "SELECT @p FROM Dual"; Debug.WriteLine("{0} -> DataType.{1}", typeof(T), dataType); var value = conn.Execute<T>(sql, new DataParameter { Name = "p", DataType = dataType, Value = expectedValue }); if (!(value is double)) Assert.That(value, Is.EqualTo(expectedValue)); Debug.WriteLine("{0} -> auto", typeof(T)); value = conn.Execute<T>(sql, new DataParameter { Name = "p", Value = expectedValue }); if (!(value is double)) Assert.That(value, Is.EqualTo(expectedValue)); Debug.WriteLine("{0} -> new", typeof(T)); value = conn.Execute<T>(sql, new { p = expectedValue }); if (!(value is double)) Assert.That(value, Is.EqualTo(expectedValue)); } } static void TestSimple<T>(DataConnection conn, T expectedValue, DataType dataType) where T : struct { TestNumeric<T> (conn, expectedValue, dataType); TestNumeric<T?>(conn, expectedValue, dataType); TestNumeric<T?>(conn, (T?)null, dataType); } [Test, IncludeDataContextSource(CurrentProvider)] public void TestNumerics(string context) { using (var conn = new DataConnection(context)) { TestSimple<sbyte> (conn, 1, DataType.SByte); TestSimple<short> (conn, 1, DataType.Int16); TestSimple<int> (conn, 1, DataType.Int32); TestSimple<long> (conn, 1L, DataType.Int64); TestSimple<byte> (conn, 1, DataType.Byte); TestSimple<ushort> (conn, 1, DataType.UInt16); TestSimple<uint> (conn, 1u, DataType.UInt32); TestSimple<ulong> (conn, 1ul, DataType.UInt64); TestSimple<float> (conn, 1, DataType.Single); TestSimple<double> (conn, 1d, DataType.Double); TestSimple<decimal>(conn, 1m, DataType.Decimal); TestSimple<decimal>(conn, 1m, DataType.VarNumeric); TestSimple<decimal>(conn, 1m, DataType.Money); TestSimple<decimal>(conn, 1m, DataType.SmallMoney); TestNumeric(conn, sbyte.MinValue, DataType.SByte); TestNumeric(conn, sbyte.MaxValue, DataType.SByte); TestNumeric(conn, short.MinValue, DataType.Int16); TestNumeric(conn, short.MaxValue, DataType.Int16); TestNumeric(conn, int.MinValue, DataType.Int32, "smallint"); TestNumeric(conn, int.MaxValue, DataType.Int32, "smallint float real"); TestNumeric(conn, long.MinValue, DataType.Int64, "smallint int"); TestNumeric(conn, long.MaxValue, DataType.Int64, "smallint int float real"); TestNumeric(conn, byte.MaxValue, DataType.Byte); TestNumeric(conn, ushort.MaxValue, DataType.UInt16, "smallint"); TestNumeric(conn, uint.MaxValue, DataType.UInt32, "smallint int float real"); TestNumeric(conn, -3.40282306E+38f, DataType.Single, "bigint smallint int decimal(18)"); TestNumeric(conn, 3.40282306E+38f, DataType.Single, "bigint smallint int decimal(18)"); TestNumeric(conn, -3.40282306E+38d, DataType.Double, "bigint smallint int decimal(18) float real"); TestNumeric(conn, 3.40282306E+38d, DataType.Double, "bigint smallint int decimal(18) float real"); const decimal decmax = 7922816251426433m; TestNumeric(conn, -decmax, DataType.Decimal, "bigint smallint int float real"); TestNumeric(conn, +decmax, DataType.Decimal, "bigint smallint int float real"); TestNumeric(conn, -decmax, DataType.VarNumeric, "bigint smallint int float real"); TestNumeric(conn, +decmax, DataType.VarNumeric, "bigint smallint int float real"); TestNumeric(conn, -9223372036854m, DataType.Money, "smallint int float real"); TestNumeric(conn, +9223372036854m, DataType.Money, "smallint int float real"); TestNumeric(conn, -214748m, DataType.SmallMoney, "smallint"); TestNumeric(conn, +214748m, DataType.SmallMoney, "smallint"); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestDateTime(string context) { using (var conn = new DataConnection(context)) { var dateTime = new DateTime(2012, 12, 12, 12, 12, 12); Assert.That(conn.Execute<DateTime> ("SELECT Cast('2012-12-12 12:12:12' as timestamp) FROM Dual"), Is.EqualTo(dateTime)); Assert.That(conn.Execute<DateTime?>("SELECT Cast('2012-12-12 12:12:12' as timestamp) FROM Dual"), Is.EqualTo(dateTime)); Assert.That(conn.Execute<DateTime> ("SELECT Cast(@p as timestamp) FROM Dual", DataParameter.DateTime("p", dateTime)), Is.EqualTo(dateTime)); Assert.That(conn.Execute<DateTime?>("SELECT Cast(@p as timestamp) FROM Dual", new DataParameter("p", dateTime)), Is.EqualTo(dateTime)); Assert.That(conn.Execute<DateTime?>("SELECT Cast(@p as timestamp) FROM Dual", new DataParameter("p", dateTime, DataType.DateTime)), Is.EqualTo(dateTime)); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestChar(string context) { using (var conn = new DataConnection(context)) { Assert.That(conn.Execute<char> ("SELECT Cast('1' as char) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast('1' as char) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast('1' as char(1)) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast('1' as char(1)) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast('1' as char(2)) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast('1' as varchar(1)) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast('1' as varchar(1)) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast('1' as varchar(20)) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast('1' as varchar(20)) FROM Dual"), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast(@p as char) FROM Dual", DataParameter.Char("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast(@p as char) FROM Dual", DataParameter.Char("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast(@p as char(1)) FROM Dual", DataParameter.VarChar ("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast(@p as char(1)) FROM Dual", DataParameter.VarChar ("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast(@p as char(1)) FROM Dual", DataParameter.NChar ("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast(@p as char(1)) FROM Dual", DataParameter.NChar ("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast(@p as char(1)) FROM Dual", DataParameter.NVarChar("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast(@p as char(1)) FROM Dual", DataParameter.NVarChar("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast(@p as char(1)) FROM Dual", DataParameter.Create ("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast(@p as char(1)) FROM Dual", DataParameter.Create ("p", '1')), Is.EqualTo('1')); Assert.That(conn.Execute<char> ("SELECT Cast(@p as char(1)) FROM Dual", new DataParameter { Name = "p", Value = '1' }), Is.EqualTo('1')); Assert.That(conn.Execute<char?>("SELECT Cast(@p as char(1)) FROM Dual", new DataParameter { Name = "p", Value = '1' }), Is.EqualTo('1')); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestString(string context) { using (var conn = new DataConnection(context)) { Assert.That(conn.Execute<string>("SELECT Cast('12345' as char(5)) FROM Dual"), Is.EqualTo("12345")); Assert.That(conn.Execute<string>("SELECT Cast('12345' as char(20)) FROM Dual"), Is.EqualTo("12345")); Assert.That(conn.Execute<string>("SELECT Cast('12345 ' as char(20)) FROM Dual"), Is.EqualTo("12345")); Assert.That(conn.Execute<string>("SELECT Cast(NULL as char(20)) FROM Dual"), Is.Null); Assert.That(conn.Execute<string>("SELECT Cast('12345' as varchar(5)) FROM Dual"), Is.EqualTo("12345")); Assert.That(conn.Execute<string>("SELECT Cast('12345' as varchar(20)) FROM Dual"), Is.EqualTo("12345")); Assert.That(conn.Execute<string>("SELECT Cast(NULL as varchar(20)) FROM Dual"), Is.Null); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", DataParameter.Char ("p", "123")), Is.EqualTo("123")); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", DataParameter.VarChar ("p", "123")), Is.EqualTo("123")); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", DataParameter.Text ("p", "123")), Is.EqualTo("123")); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", DataParameter.NChar ("p", "123")), Is.EqualTo("123")); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", DataParameter.NVarChar("p", "123")), Is.EqualTo("123")); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", DataParameter.NText ("p", "123")), Is.EqualTo("123")); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", DataParameter.Create ("p", "123")), Is.EqualTo("123")); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", DataParameter.Create("p", (string)null)), Is.EqualTo(null)); Assert.That(conn.Execute<string>("SELECT Cast(@p as varchar(3)) FROM Dual", new DataParameter { Name = "p", Value = "1" }), Is.EqualTo("1")); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestBinary(string context) { var arr1 = new byte[] { 50, 51 }; var arr2 = new byte[] { 49, 50, 51, 52 }; using (var conn = new DataConnection(context)) { Assert.That(conn.Execute<byte[]>("SELECT Cast('23' as blob) FROM Dual"), Is.EqualTo( arr1)); Assert.That(conn.Execute<Binary>("SELECT Cast('1234' as blob) FROM Dual"), Is.EqualTo(new Binary(arr2))); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Binary ("p", arr1)), Is.EqualTo(arr1)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Blob ("p", arr1)), Is.EqualTo(arr1)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.VarBinary("p", arr1)), Is.EqualTo(arr1)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Create ("p", arr1)), Is.EqualTo(arr1)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Blob ("p", null)), Is.EqualTo(null)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.VarBinary("p", null)), Is.EqualTo(null)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Binary ("p", new byte[0])), Is.EqualTo(new byte[0])); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Blob ("p", new byte[0])), Is.EqualTo(new byte[0])); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.VarBinary("p", new byte[0])), Is.EqualTo(new byte[0])); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Image ("p", new byte[0])), Is.EqualTo(new byte[0])); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Image ("p", arr2)), Is.EqualTo(arr2)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", new DataParameter { Name = "p", Value = arr1 }), Is.EqualTo(arr1)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", DataParameter.Create ("p", new Binary(arr1))), Is.EqualTo(arr1)); Assert.That(conn.Execute<byte[]>("SELECT Cast(@p as blob) FROM Dual", new DataParameter("p", new Binary(arr1))), Is.EqualTo(arr1)); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestGuid(string context) { using (var conn = new DataConnection(context)) { Assert.That( conn.Execute<Guid>("SELECT Cast('6F9619FF-8B86-D011-B42D-00C04FC964FF' as char(38)) FROM Dual"), Is.EqualTo(new Guid("6F9619FF-8B86-D011-B42D-00C04FC964FF"))); Assert.That( conn.Execute<Guid?>("SELECT Cast('6F9619FF-8B86-D011-B42D-00C04FC964FF' as char(38)) FROM Dual"), Is.EqualTo(new Guid("6F9619FF-8B86-D011-B42D-00C04FC964FF"))); var guid = Guid.NewGuid(); Assert.That(conn.Execute<Guid>("SELECT Cast(@p as char(38)) FROM Dual", DataParameter.Create("p", guid)), Is.EqualTo(guid)); Assert.That(conn.Execute<Guid>("SELECT Cast(@p as char(38)) FROM Dual", new DataParameter { Name = "p", Value = guid }), Is.EqualTo(guid)); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestGuid2(string context) { using (var conn = GetDataContext(context)) { AreEqual( from t in Types2 select t.GuidValue, from t in conn.Types2 select t.GuidValue); var dt = (from t in conn.Types2 select t).First(); conn.Update(dt); conn.Types2.Update( t => t.ID == dt.ID, t => new LinqDataTypes2 { GuidValue = dt.GuidValue }); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestXml(string context) { using (var conn = new DataConnection(context)) { Assert.That(conn.Execute<string> ("SELECT Cast('<xml/>' as varchar(100)) FROM Dual"), Is.EqualTo("<xml/>")); Assert.That(conn.Execute<XDocument> ("SELECT Cast('<xml/>' as varchar(100)) FROM Dual").ToString(), Is.EqualTo("<xml />")); Assert.That(conn.Execute<XmlDocument>("SELECT Cast('<xml/>' as varchar(100)) FROM Dual").InnerXml, Is.EqualTo("<xml />")); var xdoc = XDocument.Parse("<xml/>"); var xml = Convert<string,XmlDocument>.Lambda("<xml/>"); Assert.That(conn.Execute<string> ("SELECT Cast(@p as varchar(100)) FROM Dual", DataParameter.Xml("p", "<xml/>")), Is.EqualTo("<xml/>")); Assert.That(conn.Execute<XDocument> ("SELECT Cast(@p as varchar(100)) FROM Dual", DataParameter.Xml("p", xdoc)).ToString(), Is.EqualTo("<xml />")); Assert.That(conn.Execute<XmlDocument>("SELECT Cast(@p as varchar(100)) FROM Dual", DataParameter.Xml("p", xml)). InnerXml, Is.EqualTo("<xml />")); Assert.That(conn.Execute<XDocument> ("SELECT Cast(@p as varchar(100)) FROM Dual", new DataParameter("p", xdoc)).ToString(), Is.EqualTo("<xml />")); Assert.That(conn.Execute<XDocument> ("SELECT Cast(@p as varchar(100)) FROM Dual", new DataParameter("p", xml)). ToString(), Is.EqualTo("<xml />")); } } enum TestEnum { [MapValue("A")] AA, [MapValue("B")] BB, } [Test, IncludeDataContextSource(CurrentProvider)] public void TestEnum1(string context) { using (var conn = new DataConnection(context)) { Assert.That(conn.Execute<TestEnum> ("SELECT Cast('A' as char) FROM Dual"), Is.EqualTo(TestEnum.AA)); Assert.That(conn.Execute<TestEnum?>("SELECT Cast('A' as char) FROM Dual"), Is.EqualTo(TestEnum.AA)); Assert.That(conn.Execute<TestEnum> ("SELECT Cast('B' as char) FROM Dual"), Is.EqualTo(TestEnum.BB)); Assert.That(conn.Execute<TestEnum?>("SELECT Cast('B' as char) FROM Dual"), Is.EqualTo(TestEnum.BB)); } } [Test, IncludeDataContextSource(CurrentProvider)] public void TestEnum2(string context) { using (var conn = new DataConnection(context)) { Assert.That(conn.Execute<string>("SELECT Cast(@p as char) FROM Dual", new { p = TestEnum.AA }), Is.EqualTo("A")); Assert.That(conn.Execute<string>("SELECT Cast(@p as char) FROM Dual", new { p = (TestEnum?)TestEnum.BB }), Is.EqualTo("B")); Assert.That(conn.Execute<string>("SELECT Cast(@p as char) FROM Dual", new { p = ConvertTo<string>.From((TestEnum?)TestEnum.AA) }), Is.EqualTo("A")); Assert.That(conn.Execute<string>("SELECT Cast(@p as char) FROM Dual", new { p = ConvertTo<string>.From(TestEnum.AA) }), Is.EqualTo("A")); Assert.That(conn.Execute<string>("SELECT Cast(@p as char) FROM Dual", new { p = conn.MappingSchema.GetConverter<TestEnum?,string>()(TestEnum.AA) }), Is.EqualTo("A")); } } [Test, IncludeDataContextSource(ProviderName.Firebird)] public void SequenceInsert(string context) { using (var db = GetDataContext(context)) { db.GetTable<FirebirdSpecific.SequenceTest>().Where(_ => _.Value == "SeqValue").Delete(); db.Insert(new FirebirdSpecific.SequenceTest { Value = "SeqValue" }); var id = db.GetTable<FirebirdSpecific.SequenceTest>().Single(_ => _.Value == "SeqValue").ID; db.GetTable<FirebirdSpecific.SequenceTest>().Where(_ => _.ID == id).Delete(); Assert.AreEqual(0, db.GetTable<FirebirdSpecific.SequenceTest>().Count(_ => _.Value == "SeqValue")); } } [Test, IncludeDataContextSource(ProviderName.Firebird)] public void SequenceInsertWithIdentity(string context) { using (var db = GetDataContext(context)) { db.GetTable<FirebirdSpecific.SequenceTest>().Where(_ => _.Value == "SeqValue").Delete(); var id1 = Convert.ToInt32(db.InsertWithIdentity(new FirebirdSpecific.SequenceTest { Value = "SeqValue" })); var id2 = db.GetTable<FirebirdSpecific.SequenceTest>().Single(_ => _.Value == "SeqValue").ID; Assert.AreEqual(id1, id2); db.GetTable<FirebirdSpecific.SequenceTest>().Where(_ => _.ID == id1).Delete(); Assert.AreEqual(0, db.GetTable<FirebirdSpecific.SequenceTest>().Count(_ => _.Value == "SeqValue")); } } public class AllTypes { [PrimaryKey] public int ID { get; set; } // INTEGER [Column] public DateTime timestampDataType { get; set; } // TIMESTAMP } [Test, IncludeDataContextSource(ProviderName.Firebird)] public void DataProviderTest(string context) { using (var con = new FbConnection(DataConnection.GetConnectionString(context))) using (var dbm = new DataConnection(new FirebirdDataProvider(), con)) { dbm.GetTable<AllTypes>().Where(t => t.timestampDataType == DateTime.Now).ToList(); } } [Table("LINQDATATYPES")] class MyLinqDataType { [Column] public byte[] BinaryValue { get; set; } } [Test, IncludeDataContextSource(ProviderName.Firebird)] public void ForcedInlineParametersInSelectClauseTest(string context) { using (var db = GetDataContext(context)) { Assert.AreEqual(10, db.Select(() => Sql.AsSql(10))); // if 10 is not inlined, when FB raise "unknown data type error" var blob = new byte[] {1, 2, 3}; db.GetTable<MyLinqDataType>().Any(x => x.BinaryValue == blob); // if blob is inlined - FB raise error(blob can not be sql literal) } } [Test, IncludeDataContextSource(CurrentProvider)] public void BulkCopyLinqTypes(string context) { foreach (var bulkCopyType in new[] { BulkCopyType.MultipleRows, BulkCopyType.ProviderSpecific }) { using (var db = new DataConnection(context)) { db.BulkCopy( new BulkCopyOptions { BulkCopyType = bulkCopyType }, Enumerable.Range(0, 10).Select(n => new LinqDataTypes { ID = 4000 + n, MoneyValue = 1000m + n, DateTimeValue = new DateTime(2001, 1, 11, 1, 11, 21, 100), BoolValue = true, GuidValue = Guid.NewGuid(), SmallIntValue = (short)n } )); db.GetTable<LinqDataTypes>().Delete(p => p.ID >= 4000); } } } } }
AK107/linq2db
Tests/Linq/DataProvider/FirebirdTests.cs
C#
mit
25,101
<?php /** * kecamatan actions. * * @package sf_sandbox * @subpackage kecamatan * @author Your name here * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class kecamatanActions extends sfActions { public $max_job=10; public function executeIndex(sfWebRequest $request) { //$this->kecamatans = Doctrine_Core::getTable('kecamatan')->createQuery('a')->execute(); $this->kecamatans = new sfDoctrinePager('kecamatan', $this->max_job); $this->kecamatans->setQuery(Doctrine::getTable('kecamatan')->createQuery('a')); $this->kecamatans->setPage($request->getParameter('page', 1)); $this->kecamatans->init(); } public function executeShow(sfWebRequest $request) { $this->kecamatan = Doctrine_Core::getTable('kecamatan')->find(array($request->getParameter('id'))); $this->forward404Unless($this->kecamatan); } public function executeNew(sfWebRequest $request) { $this->form = new kecamatanForm(); } public function executeCreate(sfWebRequest $request) { $this->forward404Unless($request->isMethod(sfRequest::POST)); $this->form = new kecamatanForm(); $this->processForm($request, $this->form); $this->setTemplate('new'); } public function executeEdit(sfWebRequest $request) { $this->forward404Unless($kecamatan = Doctrine_Core::getTable('kecamatan')->find(array($request->getParameter('id'))), sprintf('Object kecamatan does not exist (%s).', $request->getParameter('id'))); $this->form = new kecamatanForm($kecamatan); $this->kecamatan = Doctrine_Core::getTable('kecamatan')->find(array($request->getParameter('id'))); } public function executeUpdate(sfWebRequest $request) { $this->forward404Unless($request->isMethod(sfRequest::POST) || $request->isMethod(sfRequest::PUT)); $this->forward404Unless($kecamatan = Doctrine_Core::getTable('kecamatan')->find(array($request->getParameter('id'))), sprintf('Object kecamatan does not exist (%s).', $request->getParameter('id'))); $this->form = new kecamatanForm($kecamatan); $this->processForm($request, $this->form); $this->setTemplate('edit'); } public function executeDelete(sfWebRequest $request) { $request->checkCSRFProtection(); $this->forward404Unless($kecamatan = Doctrine_Core::getTable('kecamatan')->find(array($request->getParameter('id'))), sprintf('Object kecamatan does not exist (%s).', $request->getParameter('id'))); $kecamatan->delete(); $this->redirect('kecamatan/index'); } protected function processForm(sfWebRequest $request, sfForm $form) { $form->bind($request->getParameter($form->getName()), $request->getFiles($form->getName())); if ($form->isValid()) { $kecamatan = $form->save(); //$this->redirect('kecamatan/edit?id='.$kecamatan->getId()); $this->redirect('kecamatan_show', $kecamatan); } } }
zlood/pbbonline-symfony
apps/frontend/modules/kecamatan/actions/actions.class.php
PHP
mit
2,907
<?php $lang['title_projects'] = 'Projects'; $lang['title_collaborators'] = 'Collaborators'; $lang['title_module_library'] = 'Module Library'; $lang['title_project_settings'] = 'Project Settings'; $lang['layer_annotations'] = 'Annotations'; $lang['layer_measures'] = 'Measures'; $lang['layer_colors'] = 'Colors'; $lang['layer_typography'] = 'Typography'; $lang['layer_modules'] = 'Modules'; $lang['btn_create'] = 'Create'; $lang['btn_create_project'] = 'Create Project'; $lang['btn_profile_settings'] = 'Profile & Settings'; $lang['btn_logout'] = 'Logout'; $lang['btn_back'] = 'Back'; $lang['btn_save'] = 'Save'; $lang['btn_cancel'] = 'Cancel'; $lang['btn_click_to_upload'] = 'Click to upload screens'; $lang['btn_create_set'] = 'Create Set'; $lang['btn_settings'] = 'Settings'; $lang['btn_replace'] = 'Replace'; $lang['txt_upload_format'] = 'PNG (better) or JPG'; $lang['txt_intro'] = 'Clarify is a new way to manage & share your design screens, whether they\'re wireframes or finished designs. Just create a project and upload a screen (png or jpg) to get started. We\'re still in beta, so please send feedback or report bugs to [email protected].'; $lang['modal_tab_general'] = 'General'; $lang['modal_tab_members'] = 'Team'; $lang['modal_tab_appearance'] = 'Appearance'; $lang['modal_tab_security'] = 'Security'; ?>
beatgeb/clarify
application/lang/en/general.php
PHP
mit
1,324
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ 'use strict'; var util = require('util'); var msRest = require('ms-rest'); var msRestAzure = require('ms-rest-azure'); var WebResource = msRest.WebResource; /** * @class * HttpSuccess * __NOTE__: An instance of this class is automatically created for an * instance of the AutoRestHeadTestService. * Initializes a new instance of the HttpSuccess class. * @constructor * * @param {AutoRestHeadTestService} client Reference to the service client. */ function HttpSuccess(client) { this.client = client; } /** * Return 200 status code if successful * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} callback * * @returns {function} callback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {boolean} [result] - The deserialized result object. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ HttpSuccess.prototype.head200 = function (options, callback) { var client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } if (!callback) { throw new Error('callback cannot be null.'); } // Validate try { if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); } // Construct URL var baseUrl = this.client.baseUri; var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'http/success/200'; var queryParameters = []; if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } // Create HTTP transport objects var httpRequest = new WebResource(); httpRequest.method = 'HEAD'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } if(options) { for(var headerName in options['customHeaders']) { if (options['customHeaders'].hasOwnProperty(headerName)) { httpRequest.headers[headerName] = options['customHeaders'][headerName]; } } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, function (err, response, responseBody) { if (err) { return callback(err); } var statusCode = response.statusCode; if (statusCode !== 200 && statusCode !== 404) { var error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; var parsedErrorResponse; try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { var resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } return callback(error); } // Create Result var result = null; if (responseBody === '') responseBody = null; result = (statusCode === 200); return callback(null, result, httpRequest, response); }); }; /** * Return 204 status code if successful * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} callback * * @returns {function} callback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {boolean} [result] - The deserialized result object. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ HttpSuccess.prototype.head204 = function (options, callback) { var client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } if (!callback) { throw new Error('callback cannot be null.'); } // Validate try { if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); } // Construct URL var baseUrl = this.client.baseUri; var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'http/success/204'; var queryParameters = []; if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } // Create HTTP transport objects var httpRequest = new WebResource(); httpRequest.method = 'HEAD'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } if(options) { for(var headerName in options['customHeaders']) { if (options['customHeaders'].hasOwnProperty(headerName)) { httpRequest.headers[headerName] = options['customHeaders'][headerName]; } } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, function (err, response, responseBody) { if (err) { return callback(err); } var statusCode = response.statusCode; if (statusCode !== 204 && statusCode !== 404) { var error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; var parsedErrorResponse; try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { var resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } return callback(error); } // Create Result var result = null; if (responseBody === '') responseBody = null; result = (statusCode === 204); return callback(null, result, httpRequest, response); }); }; /** * Return 404 status code if successful * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @param {function} callback * * @returns {function} callback(err, result, request, response) * * {Error} err - The Error object if an error occurred, null otherwise. * * {boolean} [result] - The deserialized result object. * * {object} [request] - The HTTP Request object if an error did not occur. * * {stream} [response] - The HTTP Response stream if an error did not occur. */ HttpSuccess.prototype.head404 = function (options, callback) { var client = this.client; if(!callback && typeof options === 'function') { callback = options; options = null; } if (!callback) { throw new Error('callback cannot be null.'); } // Validate try { if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } } catch (error) { return callback(error); } // Construct URL var baseUrl = this.client.baseUri; var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'http/success/404'; var queryParameters = []; if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } // Create HTTP transport objects var httpRequest = new WebResource(); httpRequest.method = 'HEAD'; httpRequest.headers = {}; httpRequest.url = requestUrl; // Set Headers if (this.client.generateClientRequestId) { httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); } if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { httpRequest.headers['accept-language'] = this.client.acceptLanguage; } if(options) { for(var headerName in options['customHeaders']) { if (options['customHeaders'].hasOwnProperty(headerName)) { httpRequest.headers[headerName] = options['customHeaders'][headerName]; } } } httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; httpRequest.body = null; // Send Request return client.pipeline(httpRequest, function (err, response, responseBody) { if (err) { return callback(err); } var statusCode = response.statusCode; if (statusCode !== 204 && statusCode !== 404) { var error = new Error(responseBody); error.statusCode = response.statusCode; error.request = msRest.stripRequest(httpRequest); error.response = msRest.stripResponse(response); if (responseBody === '') responseBody = null; var parsedErrorResponse; try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; } if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { var resultMapper = new client.models['CloudError']().mapper(); error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } return callback(error); } // Create Result var result = null; if (responseBody === '') responseBody = null; result = (statusCode === 204); return callback(null, result, httpRequest, response); }); }; module.exports = HttpSuccess;
fhoring/autorest
src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/httpSuccess.js
JavaScript
mit
12,795
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using Devart.Controls; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using GalaSoft.MvvmLight.Ioc; using UB.Model; namespace UB.ViewModel { public class SettingsFieldViewModel : ViewModelBase, IHeightMeasurer { /// <summary> /// The <see cref="DataType" /> property's name. /// </summary> public const string DataTypePropertyName = "DataType"; private ConfigField _configField; private String _dataType; [PreferredConstructor] public SettingsFieldViewModel() { } public SettingsFieldViewModel(ConfigField configField) { _configField = configField; _labelText = configField.Label; _dataType = configField.DataType; switch (configField.DataType.ToLower()) { case "range": var textRange = configField.Value as string; var fields = textRange.Split(';').ToArray(); if( fields.Length == 4 ) { _minimumRange = double.Parse(fields[0], CultureInfo.InvariantCulture); _maximumRange = double.Parse(fields[1], CultureInfo.InvariantCulture); _smallRangeStep = double.Parse(fields[2], CultureInfo.InvariantCulture); _largeRangeStep = double.Parse(fields[3], CultureInfo.InvariantCulture); } else { _minimumRange = 0; _maximumRange = 1; _smallRangeStep = 0.1; _largeRangeStep = 1; if (_configField != null) _configField.Value = RangeToString(); } break; case "filesave": _text = configField.Value as string; break; case "filesavetxt": _text = configField.Value as string; break; case "bool": _isTrue = (bool)configField.Value; break; case "text": _text = configField.Value as string; break; case "password": _text = configField.Value as string; break; } } private string RangeToString() { return String.Format("{0};{1};{2};{3}", _minimumRange, _maximumRange, _smallRangeStep, _largeRangeStep); } private RelayCommand _saveFileDialog; /// <summary> /// Gets the SaveFileDialog. /// </summary> public RelayCommand SaveFileDialog { get { return _saveFileDialog ?? (_saveFileDialog = new RelayCommand( () => { Microsoft.Win32.SaveFileDialog fileDialog = new Microsoft.Win32.SaveFileDialog(); fileDialog.FileName = "ubiquitous"; switch (_configField.DataType.ToLower()) { case "filesave": fileDialog.DefaultExt = ".png"; fileDialog.Filter = "PNG image (.png)|*.png"; break; case "filesavetxt": fileDialog.DefaultExt = ".txt"; fileDialog.Filter = "Text file (.txt)|*.txt"; break; } var result = fileDialog.ShowDialog(); if( result == true ) { Text = fileDialog.FileName; } })); } } /// <summary> /// The <see cref="SmallRangeStep" /> property's name. /// </summary> public const string SmallRangeStepPropertyName = "SmallRangeStep"; private double _smallRangeStep = 0; /// <summary> /// Sets and gets the SmallRangeStep property. /// Changes to that property's value raise the PropertyChanged event. /// </summary> public double SmallRangeStep { get { return _smallRangeStep; } set { if (_smallRangeStep == value) { return; } _smallRangeStep = value; if (_configField != null) _configField.Value = RangeToString(); RaisePropertyChanged(SmallRangeStepPropertyName); } } /// <summary> /// The <see cref="LargeRangeStep" /> property's name. /// </summary> public const string LargeRangeStepPropertyName = "LargeRangeStep"; private double _largeRangeStep = 1; /// <summary> /// Sets and gets the LargeRangeStep property. /// Changes to that property's value raise the PropertyChanged event. /// </summary> public double LargeRangeStep { get { return _largeRangeStep; } set { if (_largeRangeStep == value) { return; } _largeRangeStep = value; if (_configField != null) _configField.Value = RangeToString(); RaisePropertyChanged(LargeRangeStepPropertyName); } } /// <summary> /// The <see cref="MaximumRange" /> property's name. /// </summary> public const string MaximumRangePropertyName = "MaximumRange"; private double _maximumRange = 0; /// <summary> /// Sets and gets the MaximumRange property. /// Changes to that property's value raise the PropertyChanged event. /// </summary> public double MaximumRange { get { return _maximumRange; } set { if (_maximumRange == value) { return; } _maximumRange = value; if (_configField != null) _configField.Value = RangeToString(); RaisePropertyChanged(MaximumRangePropertyName); } } /// <summary> /// The <see cref="MinimumRange" /> property's name. /// </summary> public const string MinimumRangePropertyName = "MinimumRange"; private double _minimumRange = 0; /// <summary> /// Sets and gets the MinimumRange property. /// Changes to that property's value raise the PropertyChanged event. /// </summary> public double MinimumRange { get { return _minimumRange; } set { if (_minimumRange == value) { return; } _minimumRange = value; if (_configField != null) _configField.Value = RangeToString(); RaisePropertyChanged(MinimumRangePropertyName); } } /// <summary> /// Sets and gets the DataType property. /// Changes to that property's value raise the PropertyChanged event. /// </summary> public String DataType { get { return _dataType; } set { if (_dataType == value) { return; } _dataType = value; RaisePropertyChanged(DataTypePropertyName); } } /// <summary> /// The <see cref="Text" /> property's name. /// </summary> public const string TextPropertyName = "Text"; private String _text = "Text"; /// <summary> /// Sets and gets the Text property. /// Changes to that property's value raise the PropertyChanged event. /// </summary> public String Text { get { return _text; } set { if (_text == value) { return; } if( _configField != null ) _configField.Value = value; _text = value; RaisePropertyChanged(TextPropertyName); } } /// <summary> /// The <see cref="LabelText" /> property's name. /// </summary> public const string LabelTextPropertyName = "LabelText"; private String _labelText = "Label"; /// <summary> /// Sets and gets the LabelText property. /// Changes to that property's value raise the PropertyChanged event. /// </summary> public String LabelText { get { return _labelText ; } set { if (_labelText == value) { return; } _labelText = value; RaisePropertyChanged(LabelTextPropertyName); } } public double GetEstimatedHeight(double availableWidth) { return 30; } /// <summary> /// The <see cref="IsTrue" /> property's name. /// </summary> public const string IsTruePropertyName = "IsTrue"; private bool _isTrue= false; /// <summary> /// Sets and gets the IsTrue property. /// Changes to that property's value raise the PropertyChanged event. /// </summary> public bool IsTrue { get { return _isTrue; } set { if (_isTrue == value) { return; } if (_configField != null) _configField.Value = value; _isTrue = value; RaisePropertyChanged(IsTruePropertyName); } } } }
Avanturik/Ubiquitous2
Ubiquitous2/ViewModel/SettingsFieldViewModel.cs
C#
mit
11,674
namespace Obd2Net.Protocols.Legacy { // ReSharper disable once InconsistentNaming public class ISO_14230_4_fast : LegacyProtocol { public override string ElmName => "ISO 14230-4 (KWP FAST)"; public override string ElmId => "5"; } }
Steve-Himself/obd2net
src/Obd2Net/Protocols/Legacy/ISO_14230_4_fast.cs
C#
mit
267
<?php // // Добавление кнопки "Наверх" // // defined( 'ABSPATH' ) || exit; if ( mif_wpc_options( 'button-to-top' ) ) add_action( 'wp_print_scripts', 'mif_wpc_button_to_top' ); function mif_wpc_button_to_top() { if ( is_admin() ) return; wp_register_script( 'mif-wpc-button-to-top', plugins_url( '../js/button-to-top.js', __FILE__ ) ); wp_enqueue_script( 'mif-wpc-button-to-top' ); } ?>
alexey-sergeev/mif-wp-customizer
inc/button-to-top.php
PHP
mit
466
* Multicast Protocol Problem * Fault Tolerance: packets may dropped or delayed by underlying network * Scalability * Centralized * one sender, multiple receivers, using UDP/TCP packets * problem: latency, the receivers that received the packets (average time) is O(n), size of the receivers * Tree Based topology * Spanning tree protocol, IPmulticast, SRM, RMTP, TRAM, TMTP * latency: O(logn) * problem: need to take time to repair the internal nodes (not the leaf nodes) if internal nodes are down * SRM (Scalable Reliable Multicast) * Use NAKs (Negative Acknowledgements) to repair multicast not received * But adds random delays, and uses exponential backoff to avoid NAK storms * RMTP (Reliable Multicast Transport Protocol) * Use ACKs (positive acknowledgmetns) * But ACKs only sent to designated receivers, which then re-transmit missing multicasts * A third Approach * Gossip is used in Multicast problem, and tree-based multicast protocols, as known as epidemics * 1 multicast sender * Periodically, sender random choose b targets and transmit the messages, use Gossip messages(UDP) * it maybe possible that the same nodes may be picked multiple times * once the node received the Gossip messages, it will set the "infected" by the Gossip * There may be one node received multiple multicast message * nodes are independent with other infected nodes in different gossip protocol * Push VS Pull * So that was “Push” gossip * Once you have a multicast message, then become "infected" and start gossiping about it * Multiple messages? Gossip a random subset of them, or recently-received ones, or higher priority ones * There’s also “Pull” gossip * Periodically poll a few randomly selected processes for new multicast messages that you haven’t received no matter you are "infected" or "non-infected" * Get those messages * pull gossip is faster than push gossip * Second half of pull gossip finishes in time O(log(log(N)) * Hybrid variant: Push-Pull * As the name suggests we could use push at beginning and then use pull to later round to get it out into everyone in the system very quickly * Pull Gossip is faster than push gossip ![pic](https://cloud.githubusercontent.com/assets/9062406/8636302/b194ff0a-280f-11e5-9b78-9a3c5065dccf.png) * Gossip Protocol * is lightweight in large groups * spreads a multicast quickly * fault tolerance * low latency * reliability * Topology Analysis * In a datacenter topology with top of the rack switches talking to one core switch, there are 2 racks, each with N/2 nodes from the multicast group. The nodes execute push gossip. If each node picks a gossip target outside its rack with probability (1/N) and choose the local gossip is O(1-1/N), and gossip targets are selected uniformly at random from the target subgroup, the time to disseminate a gossip is O(logN) ![pic](https://cloud.githubusercontent.com/assets/9062406/8636303/c0e0f306-280f-11e5-814b-7b0ff0e1e7bb.png) * Implementations * Cassandra key-value store (an others) use gossip for maintaining membership lists
UmassJin/Leetcode
Design/OS_concepts/Cloud_Computing/Gossip_Protocol.md
Markdown
mit
3,337
/* global describe, it, require */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Check whether an element is a finite number isFiniteNumber = require( 'validate.io-finite' ), // Module to be tested: mgf = require( './../lib/accessor.js' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'accessor mgf', function tests() { var validationData = require( './fixtures/accessor.json' ), mu = validationData.mu, s = validationData.s; it( 'should export a function', function test() { expect( mgf ).to.be.a( 'function' ); }); it( 'should evaluate the moment-generating function using an accessor', function test() { var data, actual, expected, i; data = validationData.data.map( function( e ) { return {'x': e}; }); actual = new Array( data.length ); actual = mgf( actual, data, mu, s,getValue ); expected = validationData.expected.map( function( d ) { return d === 'Inf' ? Infinity : d; }); for ( i = 0; i < actual.length; i++ ) { if ( isFiniteNumber( actual[ i ] ) && isFiniteNumber( expected[ i ] ) ) { assert.closeTo( actual[ i ], expected[ i ], 1e-12 ); } } function getValue( d ) { return d.x; } }); it( 'should return an empty array if provided an empty array', function test() { assert.deepEqual( mgf( [], [], getValue ), [] ); function getValue( d ) { return d.x; } }); it( 'should handle non-numeric values by setting the element to NaN', function test() { var data, actual, expected; data = [ {'x':true}, {'x':null}, {'x':[]}, {'x':{}} ]; actual = new Array( data.length ); actual = mgf( actual, data, mu, s, getValue ); expected = [ NaN, NaN, NaN, NaN ]; assert.deepEqual( actual, expected ); function getValue( d ) { return d.x; } }); });
distributions-io/logistic-mgf
test/test.accessor.js
JavaScript
mit
1,853
package vlabs import "encoding/json" // The validate tag is used for validation // Reference to gopkg.in/go-playground/validator.v9 // ResourcePurchasePlan defines resource plan as required by ARM // for billing purposes. type ResourcePurchasePlan struct { Name string `json:"name,omitempty"` Product string `json:"product,omitempty"` PromotionCode string `json:"promotionCode,omitempty"` Publisher string `json:"publisher,omitempty"` } // HostedMaster complies with the ARM model of // resource definition in a JSON template. type HostedMaster struct { ID string `json:"id,omitempty"` Location string `json:"location,omitempty" validate:"required"` Name string `json:"name,omitempty"` Plan *ResourcePurchasePlan `json:"plan,omitempty"` Tags map[string]string `json:"tags,omitempty"` Type string `json:"type,omitempty"` Properties *Properties `json:"properties"` } // Properties represents the ACS cluster definition type Properties struct { ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` KubernetesVersion string `json:"kubernetesVersion" validate:"len=0"` KubernetesRelease string `json:"kubernetesRelease"` DNSPrefix string `json:"dnsPrefix" validate:"required"` FQDN string `json:"fqdn,omitempty"` AgentPoolProfiles []*AgentPoolProfile `json:"agentPoolProfiles,omitempty" validate:"dive,required"` LinuxProfile *LinuxProfile `json:"linuxProfile,omitempty" validate:"required"` WindowsProfile *WindowsProfile `json:"windowsProfile,omitempty"` ServicePrincipalProfile *ServicePrincipalProfile `json:"servicePrincipalProfile,omitempty"` AccessProfiles map[string]AccessProfile `json:"accessProfiles,omitempty"` CertificateProfile *CertificateProfile `json:"certificateProfile,omitempty" validate:"required"` } // ServicePrincipalProfile contains the client and secret used by the cluster for Azure Resource CRUD // The 'Secret' parameter could be either a plain text, or referenced to a secret in a keyvault. // In the latter case, the format of the parameter's value should be // "/subscriptions/<SUB_ID>/resourceGroups/<RG_NAME>/providers/Microsoft.KeyVault/vaults/<KV_NAME>/secrets/<NAME>[/<VERSION>]" // where: // <SUB_ID> is the subscription ID of the keyvault // <RG_NAME> is the resource group of the keyvault // <KV_NAME> is the name of the keyvault // <NAME> is the name of the secret. // <VERSION> (optional) is the version of the secret (default: the latest version) type ServicePrincipalProfile struct { ClientID string `json:"servicePrincipalClientID,omitempty" validate:"required"` Secret string `json:"servicePrincipalClientSecret,omitempty" validate:"required"` } // CertificateProfile contains cert material for the Kubernetes cluster type CertificateProfile struct { // CaCertificate is the certificate authority certificate. CaCertificate string `json:"caCertificate,omitempty"` // CaPrivateKey is the certificate authority key. CaPrivateKey string `json:"caPrivateKey,omitempty"` // ApiServerCertificate is the rest api server certificate, and signed by the CA APIServerCertificate string `json:"apiServerCertificate,omitempty"` // ApiServerPrivateKey is the rest api server private key, and signed by the CA APIServerPrivateKey string `json:"apiServerPrivateKey,omitempty"` // ClientCertificate is the certificate used by the client kubelet services and signed by the CA ClientCertificate string `json:"clientCertificate,omitempty"` // ClientPrivateKey is the private key used by the client kubelet services and signed by the CA ClientPrivateKey string `json:"clientPrivateKey,omitempty"` // KubeConfigCertificate is the client certificate used for kubectl cli and signed by the CA KubeConfigCertificate string `json:"kubeConfigCertificate,omitempty"` // KubeConfigPrivateKey is the client private key used for kubectl cli and signed by the CA KubeConfigPrivateKey string `json:"kubeConfigPrivateKey,omitempty"` } // LinuxProfile represents the Linux configuration passed to the cluster type LinuxProfile struct { AdminUsername string `json:"adminUsername" validate:"required"` SSH struct { PublicKeys []PublicKey `json:"publicKeys" validate:"required,len=1"` } `json:"ssh" validate:"required"` } // PublicKey represents an SSH key for LinuxProfile type PublicKey struct { KeyData string `json:"keyData"` } // WindowsProfile represents the Windows configuration passed to the cluster type WindowsProfile struct { AdminUsername string `json:"adminUsername,omitempty" validate:"required"` AdminPassword string `json:"adminPassword,omitempty" validate:"required"` } // ProvisioningState represents the current state of container service resource. type ProvisioningState string const ( // Creating means ContainerService resource is being created. Creating ProvisioningState = "Creating" // Updating means an existing ContainerService resource is being updated Updating ProvisioningState = "Updating" // Failed means resource is in failed state Failed ProvisioningState = "Failed" // Succeeded means resource created succeeded during last create/update Succeeded ProvisioningState = "Succeeded" // Deleting means resource is in the process of being deleted Deleting ProvisioningState = "Deleting" // Migrating means resource is being migrated from one subscription or // resource group to another Migrating ProvisioningState = "Migrating" ) // AgentPoolProfile represents configuration of VMs running agent // daemons that register with the master and offer resources to // host applications in containers. type AgentPoolProfile struct { Name string `json:"name" validate:"required"` Count int `json:"count" validate:"required,min=1,max=100"` VMSize string `json:"vmSize" validate:"required"` OSDiskSizeGB int `json:"osDiskSizeGB,omitempty" validate:"min=0,max=1023"` AvailabilityProfile string `json:"availabilityProfile"` StorageProfile string `json:"storageProfile" validate:"eq=StorageAccount|eq=ManagedDisks|len=0"` VnetSubnetID string `json:"vnetSubnetID,omitempty"` // OSType is the operating system type for agents // Set as nullable to support backward compat because // this property was added later. // If the value is null or not set, it defaulted to Linux. OSType OSType `json:"osType,omitempty"` // subnet is internal subnet string } // AccessProfile represents role name and kubeconfig type AccessProfile struct { RoleName string `json:"roleName"` KubeConfig string `json:"kubeConfig"` } // UnmarshalJSON unmarshal json using the default behavior // And do fields manipulation, such as populating default value func (a *AgentPoolProfile) UnmarshalJSON(b []byte) error { // Need to have a alias type to avoid circular unmarshal type aliasAgentPoolProfile AgentPoolProfile aa := aliasAgentPoolProfile{} if e := json.Unmarshal(b, &aa); e != nil { return e } *a = AgentPoolProfile(aa) if a.Count == 0 { // if AgentPoolProfile.Count is missing or 0, set it to default 1 a.Count = 1 } if a.StorageProfile == "" { // if StorageProfile is missing, set to default StorageAccount a.StorageProfile = StorageAccount } if string(a.OSType) == "" { // OSType is the operating system type for agents // Set as nullable to support backward compat because // this property was added later. // If the value is null or not set, it defaulted to Linux. a.OSType = Linux } // OSDiskSizeGB is an override value. vm sizes have default OS disk sizes. // If it is not set. The user should get the default for the vm size return nil } // OSType represents OS types of agents type OSType string // HasWindows returns true if the cluster contains windows func (a *Properties) HasWindows() bool { for _, agentPoolProfile := range a.AgentPoolProfiles { if agentPoolProfile.OSType == Windows { return true } } return false } // IsCustomVNET returns true if the customer brought their own VNET func (a *AgentPoolProfile) IsCustomVNET() bool { return len(a.VnetSubnetID) > 0 } // IsWindows returns true if the agent pool is windows func (a *AgentPoolProfile) IsWindows() bool { return a.OSType == Windows } // IsLinux returns true if the agent pool is linux func (a *AgentPoolProfile) IsLinux() bool { return a.OSType == Linux } // GetSubnet returns the read-only subnet for the agent pool func (a *AgentPoolProfile) GetSubnet() string { return a.subnet } // SetSubnet sets the read-only subnet for the agent pool func (a *AgentPoolProfile) SetSubnet(subnet string) { a.subnet = subnet } // IsManagedDisks returns true if the customer specified managed disks func (a *AgentPoolProfile) IsManagedDisks() bool { return a.StorageProfile == ManagedDisks } // IsStorageAccount returns true if the customer specified storage account func (a *AgentPoolProfile) IsStorageAccount() bool { return a.StorageProfile == StorageAccount }
lachie83/acs-engine
pkg/api/agentPoolOnlyApi/vlabs/types.go
GO
mit
9,199
// Copyright: 2017 AlignAlytics // License: "https://github.com/PMSI-AlignAlytics/scrollgrid/blob/master/MIT-LICENSE.txt" // Source: /src/internal/render/matchRule.js Scrollgrid.prototype.internal.render.matchRule = function (ruleSelector, toCompare, extremity) { "use strict"; // Default for selection is to match. So no row or column definition will match all var match = false, defs, rangeMarker, skipRange, skip, lhs, rhs, min, max, i; // Valid rule selectors are: // "12" Match 12th element of dimension // "12,14" Match 12th and 14th element of dimension // "12:14" Match 12th, 13th and 14th element of dimension // "12:14,16" Match 12th, 13th, 14th and 16th element of dimension // "-1" Match last element of dimension // "-2:-1" Match last two elements of dimension // "2:-2" Match all but first and last element // "12(2)16" Match every 2nd element from the 12th to the 16th. i.e. 12th,14th,16th // "*" Match all elements (same as no selector if (!ruleSelector || ruleSelector === "*") { match = true; } else { // Split comma separated into an array, each sub-element can be processed as a rule on its own defs = ruleSelector.toString().replace(/\s/g, '').split(","); for (i = 0; i < defs.length; i += 1) { rangeMarker = defs[i].indexOf(":"); // Find the pattern a(n)b where we want every nth cell skipRange = defs[i].match(/(\-{0,1}[0-9]+)\(([0-9]+)\)(\-{0,1}[0-9]+)/); if (rangeMarker !== -1) { // Handle ranges a:b lhs = parseFloat(defs[i].substring(0, rangeMarker)); skip = 1; rhs = parseFloat(defs[i].substring(rangeMarker + 1)); } else if (skipRange && skipRange.length === 4) { // Handle skip ranges a(n)b lhs = parseFloat(skipRange[1]); skip = Math.max(parseFloat(skipRange[2]), 1); rhs = parseFloat(skipRange[3]); } else { // Handle single values by creating as a range where both ends match lhs = parseFloat(defs[i]); skip = 1; rhs = lhs; } // Handle the requirement for negatives to come from the end of the set lhs = (lhs < 0 ? extremity + lhs + 1 : lhs); rhs = (rhs < 0 ? extremity + rhs + 1 : rhs); // Match them from min to max regardless of the way they are defined min = Math.min(lhs, rhs); max = Math.max(lhs, rhs); // Check that the cell is in the range and not skipped match = (min <= toCompare && max >= toCompare) && ((toCompare - min) % skip === 0); // If any match the rule passes if (match) { break; } } } return match; };
PMSI-AlignAlytics/scrollgrid
src/internal/render/matchRule.js
JavaScript
mit
3,091
Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. config.cache_classes = true # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web servers # and those relying on copy on write to perform better. # Rake tasks automatically ignore this option for performance. config.eager_load = true # Full error reports are disabled and caching is turned on. config.consider_all_requests_local = false config.action_controller.perform_caching = true # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = 'http://assets.example.com' # Specifies the header that your server uses for sending files. # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # Mount Action Cable outside main process or domain # config.action_cable.mount_path = nil # config.action_cable.url = 'wss://example.com/cable' # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true # Use the lowest log level to ensure availability of diagnostic information # when problems arise. config.log_level = :debug # Prepend all log lines with the following tags. config.log_tags = [ :request_id ] # Use a different cache store in production. # config.cache_store = :mem_cache_store # Use a real queuing backend for Active Job (and separate queues per environment) # config.active_job.queue_adapter = :resque # config.active_job.queue_name_prefix = "Viva_beverage_#{Rails.env}" config.action_mailer.perform_caching = false # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new # Use a different logger for distributed setups. # require 'syslog/logger' # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') if ENV["RAILS_LOG_TO_STDOUT"].present? logger = ActiveSupport::Logger.new(STDOUT) logger.formatter = config.log_formatter config.logger = ActiveSupport::TaggedLogging.new(logger) end # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false end
TNCT-SYSKEN/Viva_beverage
config/environments/production.rb
Ruby
mit
3,586
package es.us.lsi.hermes; import es.us.lsi.hermes.simulator.SimulatorController; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { boolean localMode = false; if (args.length > 0 && args[0].equalsIgnoreCase("LOCAL")) { localMode = true; } SimulatorController sc = new SimulatorController(localMode); sc.simulate(); } }
soyjorgeyago/HermesSimulatorPro_Standalone
src/main/java/es/us/lsi/hermes/Main.java
Java
mit
455
package com.giyeok.dexdio.widgets; import java.util.ArrayList; import org.eclipse.swt.events.MouseEvent; import org.eclipse.swt.graphics.GC; import org.eclipse.swt.widgets.Composite; public class TreeWidget extends ListWidget { private static final long serialVersionUID = -3616609797453174209L; protected ArrayList<TreeItem> treeitems; private ArrayList<TreeItem> flatteneditems; public TreeWidget(Composite parent, int style) { super(parent, style); treeitems = new ArrayList<TreeWidget.TreeItem>(); flatteneditems = new ArrayList<TreeWidget.TreeItem>(); } @Override public void drawItem(GC g, int index, int left, int top, int vcenter, int width, int height) { TreeItem item = findFlattenedItem(index); item.draw(g, index - item.listoffset, left, top, vcenter, width, height); } public abstract class TreeItem { public TreeItem() { collapsed = true; } public abstract void draw(GC g, int index, int left, int top, int vcenter, int width, int height); public abstract void clicked(int index, int x, int y, MouseEvent event); public abstract void collapsed(); public abstract void expanded(); public abstract int GetLength(); /** * GetChildren이 실행되기 전에 최소 한 번 이상은 Expanded가 호출된다. * because: GetChildren은 expanded item에 대해서만 호출되는데, 트리 아이템은 처음엔 반드시 collapsed로 시작하기 때문 * @return */ public abstract TreeItem[] GetChildren(); public void collapse() { collapsed = true; collapsed(); updateList(); } public void expand() { collapsed = false; expanded(); updateList(); } public void toggle() { if (collapsed) expand(); else collapse(); } public boolean isCollapsed() { return collapsed; } public boolean isExpanded() { return ! collapsed; } private boolean collapsed; private int listoffset; } private int updateListRecursively(TreeItem treeitem, int offset) { treeitem.listoffset = offset; flatteneditems.add(treeitem); offset += treeitem.GetLength(); if (treeitem.isExpanded()) { TreeItem[] children; children = treeitem.GetChildren(); for (int i = 0; i < children.length; i++) { offset = updateListRecursively(children[i], offset); } } return offset; } public void updateList() { int offset; flatteneditems.clear(); offset = 0; for (int i = 0; i < treeitems.size(); i++) { offset = updateListRecursively(treeitems.get(i), offset); } setListSize(offset); redraw(); } private int findFlattenedItemIndex(int index) { int l = 0, r = flatteneditems.size() - 1, mid = 0, offset, length; while (l <= r) { mid = (l + r) / 2; if (mid == r) break; offset = flatteneditems.get(mid).listoffset; length = flatteneditems.get(mid).GetLength(); if (offset <= index && index < offset + length) break; if (index < offset) r = mid - 1; else if (offset < index) l = mid + 1; } if (mid < flatteneditems.size()) { return mid; } return -1; } public TreeItem findFlattenedItem(int index) { int itemindex = findFlattenedItemIndex(index); if (itemindex >= 0 && itemindex < flatteneditems.size()) return flatteneditems.get(itemindex); return null; } @Override public void itemClicked(int index, int x, int y, MouseEvent e) { super.itemClicked(index, x, y, e); TreeItem item = findFlattenedItem(index); assert item != null; item.clicked(index - item.listoffset, x, y, e); } }
Joonsoo/dexdio
src/main/java/com/giyeok/dexdio/widgets/TreeWidget.java
Java
mit
3,562
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>float: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / extra-dev</a></li> <li class="active"><a href="">dev / float - 8.6.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> float <small> 8.6.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-02-27 19:27:03 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-27 19:27:03 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-gmp 4 Virtual package relying on a GMP lib system installation coq dev Formal proof management system dune 3.0.2 Fast, portable, and opinionated build system ocaml 4.12.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.12.1 Official release 4.12.1 ocaml-config 2 OCaml Switch Configuration ocaml-options-vanilla 1 Ensure that OCaml is compiled with no special options enabled ocamlfind 1.9.3 A library manager for OCaml zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/float&quot; license: &quot;LGPL 2.1&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Float&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.7~&quot;} ] tags: [ &quot;keyword: floating-point arithmetic&quot; &quot;category: Computer Science/Data Types and Data Structures&quot; &quot;date: 2001&quot; ] authors: [ &quot;Laurent Théry&quot; &quot;Sylvie Boldo&quot; ] bug-reports: &quot;https://github.com/coq-contribs/float/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/float.git&quot; synopsis: &quot;Library for floating-point numbers&quot; description: &quot;A library for floating-point numbers.&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/float/archive/v8.6.0.tar.gz&quot; checksum: &quot;md5=3644ef7412b3245ee1df1d9333c725f2&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-float.8.6.0 coq.dev</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is dev). The following dependencies couldn&#39;t be met: - coq-float -&gt; coq &lt; 8.7~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-float.8.6.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.12.1-2.0.8/extra-dev/dev/float/8.6.0.html
HTML
mit
6,988
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>idxassoc: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.12.2 / idxassoc - 8.5.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> idxassoc <small> 8.5.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-01-21 17:10:36 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-21 17:10:36 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.2 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;[email protected]&quot; homepage: &quot;https://github.com/coq-contribs/idxassoc&quot; license: &quot;BSD with advertising clause&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/IdxAssoc&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:associative arrays&quot; &quot;keyword:search operator&quot; &quot;keyword:data structures&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;date:2001-04&quot; ] authors: [ &quot;Dominique Quatravaux &lt;&gt;&quot; &quot;Gérald Macinenti &lt;&gt;&quot; &quot;François-René Ridaux &lt;&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/idxassoc/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/idxassoc.git&quot; synopsis: &quot;Associative Arrays&quot; description: &quot;&quot;&quot; We define the associative array (key -&gt; value associations) datatype as list of couples, providing definitions of standards operations such as adding, deleting. We introduce predicates for membership of a key and of couples. Finally we define a search operator (&quot;find&quot;) which returns the value associated with a key or the &quot;none&quot; option (see file Option.v which should be part of this contribution) on failure. Lemmas we prove about these concepts were motivated by our needs at the moment we created this file. We hope they&#39;ll suit your needs too but anyway, feel free to communicate any wish or remark.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/idxassoc/archive/v8.5.0.tar.gz&quot; checksum: &quot;md5=4ba65dcf6f3a74cfb6a9a4c91c65de54&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-idxassoc.8.5.0 coq.8.12.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.12.2). The following dependencies couldn&#39;t be met: - coq-idxassoc -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-idxassoc.8.5.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.06.1-2.0.5/released/8.12.2/idxassoc/8.5.0.html
HTML
mit
7,398
{% extends "base.html" %} {% block content %} <nav class="light-blue lighten-1" role="navigation"> <div class="nav-wrapper container"><a id="logo-container" href="#" class="brand-logo">Getline</a> <ul class="right hide-on-med-and-down"> <li><a href="#">Navbar Link</a></li> </ul> <ul id="nav-mobile" class="side-nav"> <li><a href="#">Navbar Link</a></li> </ul> <a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a> </div> </nav> <div class="section no-pad-bot" id="index-banner"> <div class="container"> <br><br> <h1 class="header center orange-text"> {{ ab_test('Headline', 'Register', 'Sign up') }} </h1> <div class="row center"> <h5 class="header col s12 light">Debug: {{ al }}</h5> </div> <div class="row center"> <a href="http://materializecss.com/getting-started.html" id="download-button" class="btn-large waves-effect waves-light orange">Get Started</a> </div> <br><br> </div> </div> <div class="container"> <div class="section"> <!-- Icon Section --> <div class="row"> <div class="col s12 m4"> <div class="icon-block"> <h2 class="center light-blue-text"><i class="material-icons">flash_on</i></h2> <h5 class="center">Speeds up development</h5> <p class="light">We did most of the heavy lifting for you to provide a default stylings that incorporate our custom components. Additionally, we refined animations and transitions to provide a smoother experience for developers.</p> </div> </div> <div class="col s12 m4"> <div class="icon-block"> <h2 class="center light-blue-text"><i class="material-icons">group</i></h2> <h5 class="center">User Experience Focused</h5> <p class="light">By utilizing elements and principles of Material Design, we were able to create a framework that incorporates components and animations that provide more feedback to users. Additionally, a single underlying responsive system across all platforms allow for a more unified user experience.</p> </div> </div> <div class="col s12 m4"> <div class="icon-block"> <h2 class="center light-blue-text"><i class="material-icons">settings</i></h2> <h5 class="center">Easy to work with</h5> <p class="light">We have provided detailed documentation as well as specific code examples to help new users get started. We are also always open to feedback and can answer any questions a user may have about Materialize.</p> </div> </div> </div> </div> <br><br> <div class="section"> </div> </div> <footer class="page-footer orange"> <div class="container"> <div class="row"> <div class="col l6 s12"> <h5 class="white-text">Company Bio</h5> <p class="grey-text text-lighten-4">We are a team of college students working on this project like it's our full time job. Any amount would help support and continue development on this project and is greatly appreciated.</p> </div> <div class="col l3 s12"> <h5 class="white-text">Settings</h5> <ul> <li><a class="white-text" href="#!">Link 1</a></li> <li><a class="white-text" href="#!">Link 2</a></li> <li><a class="white-text" href="#!">Link 3</a></li> <li><a class="white-text" href="#!">Link 4</a></li> </ul> </div> <div class="col l3 s12"> <h5 class="white-text">Connect</h5> <ul> <li><a class="white-text" href="#!">Link 1</a></li> <li><a class="white-text" href="#!">Link 2</a></li> <li><a class="white-text" href="#!">Link 3</a></li> <li><a class="white-text" href="#!">Link 4</a></li> </ul> </div> </div> </div> <div class="footer-copyright"> <div class="container"> Made by <a class="orange-text text-lighten-3" href="http://materializecss.com">Materialize</a> </div> </div> </footer> {% endblock %}
kwikiel/bounce
templates/landing.html
HTML
mit
4,250
--- layout: post title: 一场由H5页面引起的前端数据结构讨论 categories: [Web] tags: [Html5] description: 回想起了一段往事,现在回过头来看,蛮有趣的,主要是一个将业务逐步抽象成数据的过程,对于当时对数据设计等还不太敏感的自己有不小的促进作用。于是想通过本文分享下当初如何搭建可视化编辑页面系统中的一些开发设计思路,也希望能够帮助伙伴在构建类似中大型应用时有一定帮助,对于较复杂的数据结构能更好的设计。本文不会把具体的实现代码贴出来,而关注的更多是背后为何要这样设计实现,如何把一些业务映射到数据等等。有不足之处,还请轻拍。 --- ## 前言 近期在小D十周年活动之际,又看到了一个自家专题工厂生成的页面。 ![zt-preview](https://hujiangtech.github.io/tech/assets/pic/602h5/zt-preview.png) [我与小D十年回忆 >>](http://m.hujiang.com/all/zt_snyy_7/) 回想起了一段往事,现在回过头来看,蛮有趣的,主要是一个将业务逐步抽象成数据的过程,对于当时对数据设计等还不太敏感的自己有不小的促进作用。于是想通过本文分享下当初如何搭建可视化编辑页面系统中的一些开发设计思路,也希望能够帮助伙伴在构建类似中大型应用时有一定帮助,对于较复杂的数据结构能更好的设计。本文不会把具体的实现代码贴出来,而关注的更多是背后为何要这样设计实现,如何把一些业务映射到数据等等。有不足之处,还请轻拍。 简单预览下后台编辑的界面,总的来说,编辑者可以像用一个桌面应用一样操作,最后直接生成一个h5页面。 ![preview](https://hujiangtech.github.io/tech/assets/pic/602h5/main.png) 生成的页面举例 [沪江日语13周年庆](http://m.hujiang.com/jp/zt_hujiangjpsyuusan_7/) [越狱禁忌之旅](http://m.hujiang.com/lx/zt_lxyueyu_7/) ## 背景 当时正值H5比较火热的时期,业务中很多时候会做到一些重复类似的h5活动页面,开发几乎要变成ctrl+c和ctrl+v了,枯燥了。后来突然涌现出了很多h5页面编辑应用,某秀某KA等,某一天老大又在背后看着我们,突然来了一句: **我们要不也搞一个?** 当时反应是万匹草泥马在头上奔过: 这个有点太复杂了,成本太高,还是不做了吧。不过喜欢不断挑战的前端冷静下来后,心想做完还可以解放一批开发生产力,挑战也不小,所以 **为什么不呢?!** 于是就开始了一个可视化编辑页面系统Web IDE的打造之旅。从计划开始做的那一刻起,其实是脑中一片空白,后来做了一些小DEMO后,才开始有了点思绪,也不是一蹴而就的。 ## 先举个小例子** 场景: 前后端协作,需求是在页面上加一个异步请求的列表模块。 **前提**:看现在流行的框架们,react,vue等都帮我们省略了关注DOM的步骤,就关心数据的变化了,所以先让我们抛开一些框架的便利,回到原始的步骤。 1.发送请求,处理数据。接口响应回来的数据可能是: { ..., data: { list: [ {id: 1, content: '这是第一条数据'}, {id: 2, content: '这是第二条数据'}, {id: 3, content: '这是第三条数据'} ], total: 4 } } 2.根据list中的数据,循环拼接出需要渲染的DOM结构 <li>1.这是第一条数据</li> <li>2.这是第二条数据</li> <li>3.这是第三条数据</li> 3.找到需要追加或者替换的节点,然后加到页面上。 在上面这个场景中,这类数据的结构可能是最常碰到的。整个过程可以理解为,先获取数据,再把数据转换到渲染视图里。 +--------+ +----------+ +-------+ | data | => | renderer | => | DOM | +--------+ +----------+ +-------+ 伙伴要问了,这个流程比较熟悉,但如果做一个Web IDE不是就这么几步吧? ## 如何下笔 **需求分析要详细** 要下笔时,发现课题变得复杂了。很多时候就会像下面这张图中。 ![dontinterrupt](https://hujiangtech.github.io/tech/assets/pic/602h5/dontinterrupt.png) 那先缓一缓,先尝试着拆解成一些小部件来分析。多观察,多联想,多分析。 #### 订下目标 如何把一个H5页面转换成一个可编辑的状态。 #### 现状分析 观察一个普通的H5活动页面,试着先抽取几个关键元素。试着滑动页面,大致可以猜测这是一个滑动组件,占满全屏的,交互可以划分为上下滑动,可能还有回调等等,这时可以发现一个H5上可能有一个或多个子页面(分页),这里面可能将会涉及到分页的操作。再看每个分页上,有图片,链接,文字等等一些元素,展现形式差异很大,样式都不一样,看起来很难统一,不像上面的小例子中可以比较容易地拼凑出,先放一放。但是有两个关键点浮现出来了,分页+元素,一个h5页面基本都是由很多页面和元素组成的,**目标将转换成如何编辑分页,如何编辑元素**。 #### 详细分析 再单独看一个页面详细地分析下: 可以发现页面中有很多元素,大致有: - 图片 - 音频 - 视频 - 文字内容 - 链接 - 动画 - 其他元素们 试着抽象一层,一个页面可能会变成下面的结构: 页面: [ 元素1, 元素2, 元素3 ] 发现和“小例子”中的结构有点类似,**一个块包含多个子块**,照着类似的渲染方式,估计也能将元素们渲染到页面上,但样式却各不一样,元素之间的差异比较大,类型又不同,怎么想拼接list列表一样拼呢?试着比较下,上面“小例子”中的列表数据包含的是偏内容的数据,把&lt;li&gt;当做一个元素的话,分析下,这些元素的类型是一样的,数据里包含的是元素内容,而样式等一些其他属性或事件都是定义在了其他地方,并不在这个数据结构里。再回到元素本身上观察下,如何抽象,有哪些特征? - 类型 - 内容 - 位置 - 大小 - 颜色 - 背景图 - 链接 - 其他特征 元素: { 类型, 内容, 位置, 大小, ... } 元素上的属性有很多很庞大,但并不是不能放在一个元素的对象里。设想如果把这些部分也放在该元素的数据结构上,不单单有内容数据,还有样式上的数据,属性上的数据等等,这样是否就可以渲染了。那么目标有新增,如何去编辑这“庞大”的属性集合。 #### 试错 我们假设一段需要的带属性样式的元素DOM结构: <div class="element someClass" style="someKeyA: someValueA;someKeyB: someValueB;" data-custom="someCustomData"> <div class="content"> content's context </div> </div> 相比简单的<li>多了很多属性和结构,根据上面的DOM结构,用对象的形式大致抽象下,格式大致如下: element: { style: { someKeyA: 'someValueA', someKeyB: 'someValueB', }, class: ['someClass'], attribute: { custom: 'someCustomData', }, content: { text: 'content\'s context' } } 这样的话,我们就可以通过一个拼接方法来生成我们想要的结构。这样一个大致的关于元素的数据结构设计有了雏形。我们可以通过修改元素上一些属性的值,改变元素的外在表现。整个过程可以简化成数据的变化引起视图的变化,和现在很多前端框架数据驱动思想有几分相似。 #### 整理 通过类似上面很多小demo的积累,最后可以整理拼装下,回到单个页面上,除了元素,可能还有一些其他设置,假想预留一些字段。 那么一个页面抽象下,格式大致如下: page: { elements: [ { style: ..., class: ..., attribute: ..., content: ..., }, { element2 }, { element3 }, { element4 }, { element5 }, ], setting: { propertyA: {}, propertyB: 'valueB', flagC: false, } } 生成的DOM结构大致如下: <div class="page" data-flagC="false" ...> <div class="element element1" ...></div> <div class="element element2" ...></div> ... </div> 再把一个个单页拼起来,就变成了我们需要的H5页面,格式大致如下: h5: { pages: [ { elements: ..., setting: ..., }, {page2}, {page3}, {page4}, ], setting: { propertyA: {}, propertyB: 'valueB', flagC: false, } } 从一个个小元素组成一个页面,再由一个个页面组成h5活动页面。至此一个对于h5页面的抽象出来的数据结构雏形基本完成了。 上面的结构没有展开,展开后你会发现这个大对象可能上千上万行,接下来关注下数据和操作界面中的映射关系了,如何去操作这些数据,数据怎么展现,元素和页面的关系等等。 ## 业务映射到数据 **为何要操作数据,而不是去操作DOM?** 这也是在前期开发中踩过的坑,照着“所见即所得”的模式,像富文本编辑器一样,输入修改完就是最终输出的内容,也未尝不可,实现时使用$系的很容易会联想到直接操作DOM,比如一个元素的定位,使用jquery-ui的draggble拖拖拽拽很方便的定位,最后产出的就是最后实际的HTML。但放在实际场景中后,会发现拓展性兼容性不太友好。特别是在后期再去操作一段成品的DOM结构会变得比较麻烦,比如一个定位的数据,成品中的数据会看起来比较“死”,在适配不同屏幕时,计算对应的值会比较累。而如果是操作数据的话,可以在渲染之前对数据进行些处理,最后的产出就变得比较灵活,将数据层和视图层抽离的比较独立,拓展起来也比较容易。 **映射关系** 如何把这些界面的业务抽象成数据操作,首先还是简单分析整理下。一个可视化编辑应用的操作有很多,这里只举几个类型的数据操作。用户通过操作(比如输入,拖拽,移动,点击等)来改变元素的属性值。 用脑图发散一下有哪些功能: - 页面的增删改查 - 元素的增删改查 - 历史记录的操作 - 用户操作 - 等等 还是回到目标,如何编辑页面,如何编辑元素。下面举几个例子 **页面编辑** 一个H5由多个页面组成,由几个{元素}组成的[元素集合],此类关系通常可以用数组来表示。 将页面集合简单成抽象成数据的操作: +-------------+ | | +-------------+ => pages: [], index: -1 新增页面时,在pages数组中push一个'page 1'的实例对象,再通过索引取到该实例数据, 然后通过渲染方法将对应的视图渲染到界面中,这个关系链就基本完成了。 +-------------+ | page 1 | +-------------+ => pages: [ page1 ], index: 0 交换页面顺序 +-------------+ | page 2 | +-------------+ | page 1 | +-------------+ => pages: [ page2, page1 ], index: 1 通过数组的两个值的顺序交换即可以实现两个页面的顺序交换,发现很多场景只需要通过一些数组最基本的操作就可以实现一些看起来复杂的功能,而困难的更多是如何找到这一层映射的关系。 **元素操作** 元素有多种属性组成,多个{属性键值对}组成的{元素},此类关系通常可以用对象键值对来表示。 在元素对象上不断拓展需要变化的属性,比如元素的尺寸位置: element: { style: { 'top', 'left', 'width', 'height', }, ... } ![sizeposition](https://hujiangtech.github.io/tech/assets/pic/602h5/sizeposition.png) 可以设计如上图四个输入框,每个输入框对应每一个属性值,这样一个简单的元素属性编辑控件就好了,依次类推,每加一个可编辑属性就对应加一个编辑控件。基本上都是以key-value的形式来操作。整个过程简化成用户通过界面的输入修改操作数据,数据更改后视图对应重新渲染一遍。 根据不断的尝试和增加,最后结构变成了类似如下的格式: element: { id: 1, role: { type, value }, style: { 'top', 'left', 'width', 'height', 'transform', ... }, inner: { html: 'rich text', style:{ 'background-image', 'background-color', 'background-size', 'opacity', 'color', 'font-size', 'text-align', 'border-radius', ... } }, attribute:{ 'animation-sequence', } } +--------+--------+----------+---------+-------------+ | id | role | style | inner | attribute | +--------+--------+----------+---------+-------------+ | 1 | link | ... | ... | ... | +--------+--------+----------+---------+-------------+ | 2 | text | ... | ... | ... | +--------+--------+----------+---------+-------------+ 完善后,一个元素的结构已经变得相对庞大了,包含了非常多的属性,随之而来的也是非常多对应的属性编辑控件,也是相对比较复杂的地方。 **历史操作** 怎么抽象设计?这在平时业务场景里并不多。先分析下历史要什么?主要就是撤销和恢复,用户可以ctrl+z回到上一个状态。历史这个大集合里肯定有多个历史状态,由多个{历史}组成[历史集合],于是就想到了数组。新状态和老状态的区别是什么?可能就是有了新的操作,数据有了变化,那么把这时的数据保存起来,塞到历史里,相当于是一个push的操作,看起来可行。再假如需要回到上一个状态,可以设置个索引index, 将index指向到前一个,就拿到了前一个状态。 | -- push +------v------+ index --> | status 3 | +-------------+ | status 2 | +-------------+ | status 1 | +------|------+ v -- shift 抽取几个关键点: - 有多个状态 -> 数组 - 不同状态之间指向 -> 数组的索引值, 游标 - 可以做个步数限制 -> 数组的长度 场景:有一个新的操作,即将新的数据插入到历史中 history.push(statusNew); 场景:如果满了,将最先插入的数据拿出来 history.shift(); 场景:撤销一步,将游标指向到前一个,取到前一个状态。重做一步同理。根据这时的数据重新渲染,那么界面上也就回到了前一步的状态。 cursor --; callback(history[cursor]); 那么history的结构就可能长成如下: [ {status1}, {status2}, {status3}, {statusNew}, ] 这样一个简单的历史数据结构设计就完成了。 留个问题: 如果撤回到了上几步,然后继续操作,整个历史状态该怎么处理? ## 最后 最后再通过组装整合,一个可视化编辑器主要的功能大致就满足了。再重新看下操作界面上的数据,可以划分为两个部分,一个前台页面数据,一个后台交互数据,大致如下: // 前台 frontStage: { h5: { pages: [ { elements: [ { id: 1, role: { type, value }, style: { 'top', 'left', 'width', 'height', 'transform', ... }, inner: { html: 'rich text', style:{ 'background-image', 'background-color', 'background-size', 'opacity', 'color', 'font-size', 'text-align', 'border-radius', ... } }, attribute:{ 'animation-sequence', }, ... }, { element2 }, { element3 }, ... ], setting: { audio, style: { ... }, ... } }, { page1 }, ... ], setting: { ... } }, output: { html: '', style: '' }, ... }, // 后台 backStage: { history: [ pageDataAfterSomeEventA, pageDataAfterSomeEventB, pageDataAfterSomeEventc, ], selectedElements, clonedElements, elementId, status, ... } 回顾上面的过程,已经从一个简单的数据列表渲染到具有前后台复杂型数据交互的WebIDE,但从数据结构的设计形式上看,本质上变化其实并不是很大,只是&lt;li&gt;变成了&lt;element&gt;,&lt;page&gt;等,里面包含的数据量也增加了许多。会不会发现这个数据虽然看起来十分庞大复杂,但也有几分清晰简单。而你的角色更像是一位建筑设计师,把握整个结构框架,然后再管理一砖一瓦。 开始设计时,要一下子脑补出整个设计还是比较困难的,特别是对某一个事物从一无所知到有点概念,从0到1的过程,客观的说这并不容易。可以先试着抽离出几个关键步骤,写几个小模块,把关键路径走通,在初期十分有效,随后再这些看似零散的小组件拼装起来,往往这个雏形会比一开始想的清晰很多,如此反复,整个设计也会变得更加清晰饱满。数据的设计也是相对应的,由一个个小的数据组成,渐渐的便会形成一个比较庞大的数据,这时代码可能不是最关键的,而是如何合理有效清晰地管理这些数据,可能更像是后端数据库管理一样。往往需要经过不断的试错走些歪路的过程,最后会慢慢得心应手一点。好设计是不断迭代出来的,勇敢试错,不怕踩坑,有句话叫,坑踩的深才铭心刻骨。
HujiangTech/tech
_posts/2017-06-02-H5-web-design.md
Markdown
mit
20,167
// Copyright (C) 2017 GBesancon package org.benhur.codurance.client; import static org.hamcrest.MatcherAssert.assertThat; import java.util.Collections; import java.util.List; import org.benhur.codurance.data.IMessage; import org.benhur.codurance.data.IUser; import org.benhur.codurance.server.IServer; import org.hamcrest.core.IsEqual; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; public class CommandLineProcessorTest { @Rule public ExpectedException exceptionGrabber = ExpectedException.none(); @Test public void testExit() throws Exception { CommandLineProcessor commandLineProcessor = new CommandLineProcessor(); exceptionGrabber.expect(Exception.class); commandLineProcessor.processCommandLine( "exit", new IServer() { @Override public IMessage postMessage(String senderName, String message) { Assert.fail(); return null; } @Override public List<IMessage> getWall(String userName) { Assert.fail(); return null; } @Override public List<IMessage> getTimeline(String userName) { Assert.fail(); return null; } @Override public IUser followUser(String userName, String followedUserName) { Assert.fail(); return null; } }); } @Test public void testPostMessage() throws Exception { CommandLineProcessor commandLineProcessor = new CommandLineProcessor(); commandLineProcessor.processCommandLine( "Alice -> I love the weather today", new IServer() { @Override public IMessage postMessage(String senderName, String message) { assertThat(senderName, IsEqual.equalTo("Alice")); assertThat(message, IsEqual.equalTo("I love the weather today")); return null; } @Override public List<IMessage> getWall(String userName) { Assert.fail(); return null; } @Override public List<IMessage> getTimeline(String userName) { Assert.fail(); return null; } @Override public IUser followUser(String userName, String followedUserName) { Assert.fail(); return null; } }); } @Test public void testTimeline() throws Exception { CommandLineProcessor commandLineProcessor = new CommandLineProcessor(); commandLineProcessor.processCommandLine( "Alice", new IServer() { @Override public IMessage postMessage(String senderName, String message) { Assert.fail(); return null; } @Override public List<IMessage> getWall(String userName) { Assert.fail(); return null; } @Override public List<IMessage> getTimeline(String userName) { assertThat(userName, IsEqual.equalTo("Alice")); return Collections.emptyList(); } @Override public IUser followUser(String userName, String followedUserName) { Assert.fail(); return null; } }); } @Test public void testWall() throws Exception { CommandLineProcessor commandLineProcessor = new CommandLineProcessor(); commandLineProcessor.processCommandLine( "Alice wall", new IServer() { @Override public IMessage postMessage(String senderName, String message) { Assert.fail(); return null; } @Override public List<IMessage> getWall(String userName) { assertThat(userName, IsEqual.equalTo("Alice")); return Collections.emptyList(); } @Override public List<IMessage> getTimeline(String userName) { Assert.fail(); return null; } @Override public IUser followUser(String userName, String followedUserName) { Assert.fail(); return null; } }); } @Test public void testFollows() throws Exception { CommandLineProcessor commandLineProcessor = new CommandLineProcessor(); commandLineProcessor.processCommandLine( "Alice follows Bob", new IServer() { @Override public IMessage postMessage(String senderName, String message) { Assert.fail(); return null; } @Override public List<IMessage> getWall(String userName) { Assert.fail(); return null; } @Override public List<IMessage> getTimeline(String userName) { Assert.fail(); return null; } @Override public IUser followUser(String userName, String followedUserName) { assertThat(userName, IsEqual.equalTo("Alice")); assertThat(followedUserName, IsEqual.equalTo("Bob")); return null; } }); } }
gbesancon/codurance
src/test/java/org/benhur/codurance/client/CommandLineProcessorTest.java
Java
mit
5,411
package com.sg.controller; import com.sg.model.slackRq.Payload; import com.sg.model.slackRs.SlackTeamInfo; import com.sg.redis.RedisManager; import com.sg.sgds.SGDSClient; import com.sg.utils.Config; import com.sg.utils.MyAsyncUncaughtExceptionHandler; import com.sg.utils.SGSlackConstants; import org.apache.http.HttpEntity; import org.apache.http.NameValuePair; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.message.BasicNameValuePair; import org.apache.http.util.EntityUtils; import org.codehaus.jackson.map.ObjectMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.core.task.SimpleAsyncTaskExecutor; import org.springframework.http.MediaType; import org.springframework.scheduling.annotation.AsyncConfigurer; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Executor; /** * Created by ayush on 7/12/16. */ @Configuration @ComponentScan(basePackages = "com.sg") @Controller @EnableAsync public class GenericWorkflowController implements AsyncConfigurer { private static final Logger logger = LoggerFactory.getLogger(GenericWorkflowController.class); @Autowired GenericWorkFlowAsyncService asyncService; /** * This is the method that executes when Slack sends a request through a slash command or interactive message. * * @param param * @param request * @param httpSession * @return Acknowledgement, acual message would be sent by the asynchronous method that executes the request. * @throws IOException */ @RequestMapping(value = SGSlackConstants.BASE_URL, method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) public @ResponseBody String getSGData(@RequestParam(value = "text", defaultValue = "") String param, HttpServletRequest request, HttpSession httpSession) throws InterruptedException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, IOException { //acknowledge right away logger.debug("In generic workflow controller"); String res = ""; if (param != null && !param.isEmpty()) { asyncService.handleRequestsAsync(request.getParameter("token"), null, param, request.getParameter("user_id"), request.getParameter("team_id"), request.getParameter("response_url")); res = ""; } else if (request.getParameter("payload") != null && !request.getParameter("payload").isEmpty()) { ObjectMapper m = new ObjectMapper(); Payload p = new Payload(); try { p = m.readValue(request.getParameter("payload"), p.getClass()); } catch (Exception e) { logger.error("Object mapper read threw error", e); } asyncService.handleRequestsAsync(p.getToken(), request.getParameter("payload"), param, p.getUser().getId(), p.getTeam().getId(), p.getResponseUrl()); // JsonNodeFactory f = JsonNodeFactory.instance; //ObjectNode o = f.objectNode(); // o.put("text","Processing ...."); res = ""; } else { asyncService.handleRequestsAsync(request.getParameter("token"), null, null, request.getParameter("user_id"), request.getParameter("team_id"), request.getParameter("response_url")); res = ""; } return res; } /** * This method is called by a slack user when he tries a SG command or interactive button and does not have a valid * SG session on the SGDS server * * @param suid - Slack user id * @param email - Email common between slack and SG - this is the SGDS username * @param rq - HttpServletRequest, to get the values of email and suid in case these are attributes. * @return * @throws IOException */ @RequestMapping(value = SGSlackConstants.LOGIN_URL, method = RequestMethod.GET, produces = MediaType.TEXT_HTML_VALUE) public String loadlogin(@RequestParam(value = "SUID", defaultValue = "") String suid, @RequestParam(value = "EMAIL", defaultValue = "") String email, @RequestParam(value = "TEAMID", defaultValue = "") String teamId, HttpServletRequest rq) throws IOException { if (suid == null || suid.isEmpty()) suid = String.valueOf(rq.getAttribute("SUID")); if (email == null || email.isEmpty()) email = String.valueOf(rq.getAttribute("EMAIL")); if (teamId == null || teamId.isEmpty()) teamId = String.valueOf(rq.getAttribute("TEAMID")); logger.info("SUID from rq = " + suid + " email=" + email + " teamId=" + teamId); return "login"; //jsp view } /** * This method is called when a user submits on the login page. * * @param rq * @param rs * @throws IOException * @throws ServletException */ @RequestMapping(value = SGSlackConstants.LOGIN_URL, method = RequestMethod.POST, produces = MediaType.TEXT_HTML_VALUE) public void login(HttpServletRequest rq, HttpServletResponse rs) throws IOException, ServletException { String sessionId; String userName = rq.getParameter("EMAIL"); String passwd = rq.getParameter("pswrd"); String slackUserId = rq.getParameter("SUID"); String email = rq.getParameter("EMAIL"); String teamId = rq.getParameter("TEAMID"); logger.info("Username(email = " + userName + " passwd = " + passwd + " slackUserId = " + slackUserId); if (userName != null && !userName.isEmpty() && passwd != null && !passwd.isEmpty()) { //submission case sessionId = SGDSClient.authenticate(userName, passwd); if (sessionId != null && !sessionId.isEmpty()) { RedisManager.store(teamId + SGSlackConstants.DELIMITER + slackUserId + SGSlackConstants.DELIMITER + SGSlackConstants.SGDS_SESSIONID, sessionId, 180); String token = RedisManager.get(teamId + SGSlackConstants.DELIMITER + SGSlackConstants.SLACK_TOKEN); logger.debug("Token="+token); HttpPost postRequest = new HttpPost("https://slack.com/api/team.info"); List<NameValuePair> nvps = new ArrayList<NameValuePair>(); nvps.add(new BasicNameValuePair("token", token)); postRequest.setEntity(new UrlEncodedFormEntity(nvps)); CloseableHttpResponse responseApps = SGDSClient.getHttpClient().execute(postRequest); String wbRes = ""; try { HttpEntity entityApps = responseApps.getEntity(); wbRes = EntityUtils.toString(entityApps, "UTF-8"); logger.debug("Team info response = " + wbRes); EntityUtils.consume(entityApps); } finally { responseApps.close(); } ObjectMapper m = new ObjectMapper(); SlackTeamInfo s = new SlackTeamInfo(); s = m.readValue(wbRes, s.getClass()); rs.sendRedirect(new StringBuffer("https://").append(s.getTeam().getDomain()).append(".slack.com/messages").toString()); } else { rs.sendRedirect("http://skygiraffe.com/"); } } else { //TODO send error message also rq.setAttribute("SUID", slackUserId); rq.setAttribute("EMAIL", email); rq.getRequestDispatcher("/skyg/login").forward(rq, rs); } } /** * This method is the callback url when a Slack OAuth is performed. Slack sends the following data: * access token, scope * * @param code -Authorization code to be exchanged for the token * @param request * @param response * @throws IOException * @throws ServletException */ @RequestMapping(value = SGSlackConstants.BASE_URL, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) public void slackOAuth(@RequestParam(value = "code", defaultValue = "") String code, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { logger.debug("code=" + code); HttpPost postRequest = new HttpPost("https://slack.com/api/oauth.access"); List<NameValuePair> nvps = new ArrayList<NameValuePair>(); nvps.add(new BasicNameValuePair("client_id", Config.getPropertyValue("SLACK_CLIENT_ID_DEV"))); nvps.add(new BasicNameValuePair("client_secret", Config.getPropertyValue("SLACK_CLIENT_SECRET_DEV"))); nvps.add(new BasicNameValuePair("code", code)); postRequest.setEntity(new UrlEncodedFormEntity(nvps)); CloseableHttpResponse responseApps = SGDSClient.getHttpClient().execute(postRequest); String wbRes = ""; try { HttpEntity entityApps = responseApps.getEntity(); wbRes = EntityUtils.toString(entityApps, "UTF-8"); EntityUtils.consume(entityApps); } finally { responseApps.close(); } asyncService.processSlackDetailsForCurrentUser(wbRes, request); request.getRequestDispatcher("/skyg/login").forward(request, response); } @Override public Executor getAsyncExecutor() { return new SimpleAsyncTaskExecutor(); } @Override public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() { return new MyAsyncUncaughtExceptionHandler(); } }
skygiraffe/skygiraffe-slackbot
src/main/java/com/sg/controller/GenericWorkflowController.java
Java
mit
10,564
<HTML><HEAD><TITLE>NSF Award Abstracts Links for awards_1993/awd_1993_54</TITLE><HEAD><BODY> <A HREF=a9354001.txt>a9354001.txt</A><BR> <A HREF=a9354003.txt>a9354003.txt</A><BR> <A HREF=a9354006.txt>a9354006.txt</A><BR> <A HREF=a9354008.txt>a9354008.txt</A><BR> <A HREF=a9354010.txt>a9354010.txt</A><BR> <A HREF=a9354011.txt>a9354011.txt</A><BR> <A HREF=a9354017.txt>a9354017.txt</A><BR> <A HREF=a9354021.txt>a9354021.txt</A><BR> <A HREF=a9354023.txt>a9354023.txt</A><BR> <A HREF=a9354026.txt>a9354026.txt</A><BR> <A HREF=a9354027.txt>a9354027.txt</A><BR> <A HREF=a9354028.txt>a9354028.txt</A><BR> <A HREF=a9354029.txt>a9354029.txt</A><BR> <A HREF=a9354031.txt>a9354031.txt</A><BR> <A HREF=a9354033.txt>a9354033.txt</A><BR> <A HREF=a9354034.txt>a9354034.txt</A><BR> <A HREF=a9354037.txt>a9354037.txt</A><BR> <A HREF=a9354038.txt>a9354038.txt</A><BR> <A HREF=a9354040.txt>a9354040.txt</A><BR> <A HREF=a9354042.txt>a9354042.txt</A><BR> <A HREF=a9354043.txt>a9354043.txt</A><BR> <A HREF=a9354044.txt>a9354044.txt</A><BR> <A HREF=a9354045.txt>a9354045.txt</A><BR> <A HREF=a9354051.txt>a9354051.txt</A><BR> <A HREF=a9354052.txt>a9354052.txt</A><BR> <A HREF=a9354055.txt>a9354055.txt</A><BR> <A HREF=a9354057.txt>a9354057.txt</A><BR> <A HREF=a9354058.txt>a9354058.txt</A><BR> <A HREF=a9354081.txt>a9354081.txt</A><BR> <A HREF=a9354082.txt>a9354082.txt</A><BR> <A HREF=a9354083.txt>a9354083.txt</A><BR> <A HREF=a9354084.txt>a9354084.txt</A><BR> <A HREF=a9354085.txt>a9354085.txt</A><BR> <A HREF=a9354087.txt>a9354087.txt</A><BR> <A HREF=a9354088.txt>a9354088.txt</A><BR> <A HREF=a9354089.txt>a9354089.txt</A><BR> <A HREF=a9354091.txt>a9354091.txt</A><BR> <A HREF=a9354092.txt>a9354092.txt</A><BR> <A HREF=a9354094.txt>a9354094.txt</A><BR> <A HREF=a9354097.txt>a9354097.txt</A><BR> <A HREF=a9354098.txt>a9354098.txt</A><BR> <A HREF=a9354099.txt>a9354099.txt</A><BR> <A HREF=a9354100.txt>a9354100.txt</A><BR> <A HREF=a9354103.txt>a9354103.txt</A><BR> <A HREF=a9354104.txt>a9354104.txt</A><BR> <A HREF=a9354105.txt>a9354105.txt</A><BR> <A HREF=a9354115.txt>a9354115.txt</A><BR> <A HREF=a9354116.txt>a9354116.txt</A><BR> <A HREF=a9354117.txt>a9354117.txt</A><BR> <A HREF=a9354120.txt>a9354120.txt</A><BR> <A HREF=a9354124.txt>a9354124.txt</A><BR> <A HREF=a9354125.txt>a9354125.txt</A><BR> <A HREF=a9354129.txt>a9354129.txt</A><BR> <A HREF=a9354135.txt>a9354135.txt</A><BR> <A HREF=a9354137.txt>a9354137.txt</A><BR> <A HREF=a9354143.txt>a9354143.txt</A><BR> <A HREF=a9354148.txt>a9354148.txt</A><BR> <A HREF=a9354153.txt>a9354153.txt</A><BR> <A HREF=a9354156.txt>a9354156.txt</A><BR> <A HREF=a9354157.txt>a9354157.txt</A><BR> <A HREF=a9354158.txt>a9354158.txt</A><BR> <A HREF=a9354159.txt>a9354159.txt</A><BR> <A HREF=a9354160.txt>a9354160.txt</A><BR> <A HREF=a9354165.txt>a9354165.txt</A><BR> <A HREF=a9354166.txt>a9354166.txt</A><BR> <A HREF=a9354167.txt>a9354167.txt</A><BR> <A HREF=a9354168.txt>a9354168.txt</A><BR> <A HREF=a9354169.txt>a9354169.txt</A><BR> <A HREF=a9354170.txt>a9354170.txt</A><BR> <A HREF=a9354171.txt>a9354171.txt</A><BR> <A HREF=a9354172.txt>a9354172.txt</A><BR> <A HREF=a9354173.txt>a9354173.txt</A><BR> <A HREF=a9354174.txt>a9354174.txt</A><BR> <A HREF=a9354175.txt>a9354175.txt</A><BR> <A HREF=a9354176.txt>a9354176.txt</A><BR> <A HREF=a9354177.txt>a9354177.txt</A><BR> <A HREF=a9354178.txt>a9354178.txt</A><BR> <A HREF=a9354179.txt>a9354179.txt</A><BR> <A HREF=a9354180.txt>a9354180.txt</A><BR> <A HREF=a9354181.txt>a9354181.txt</A><BR> <A HREF=a9354182.txt>a9354182.txt</A><BR> <A HREF=a9354183.txt>a9354183.txt</A><BR> <A HREF=a9354184.txt>a9354184.txt</A><BR> <A HREF=a9354185.txt>a9354185.txt</A><BR> <A HREF=a9354186.txt>a9354186.txt</A><BR> <A HREF=a9354187.txt>a9354187.txt</A><BR> <A HREF=a9354188.txt>a9354188.txt</A><BR> <A HREF=a9354189.txt>a9354189.txt</A><BR> <A HREF=a9354190.txt>a9354190.txt</A><BR> <A HREF=a9354191.txt>a9354191.txt</A><BR> <A HREF=a9354192.txt>a9354192.txt</A><BR> <A HREF=a9354193.txt>a9354193.txt</A><BR> <A HREF=a9354194.txt>a9354194.txt</A><BR> <A HREF=a9354195.txt>a9354195.txt</A><BR> <A HREF=a9354196.txt>a9354196.txt</A><BR> <A HREF=a9354197.txt>a9354197.txt</A><BR> <A HREF=a9354198.txt>a9354198.txt</A><BR> <A HREF=a9354199.txt>a9354199.txt</A><BR> <A HREF=a9354200.txt>a9354200.txt</A><BR> <A HREF=a9354201.txt>a9354201.txt</A><BR> <A HREF=a9354202.txt>a9354202.txt</A><BR> <A HREF=a9354203.txt>a9354203.txt</A><BR> <A HREF=a9354204.txt>a9354204.txt</A><BR> <A HREF=a9354205.txt>a9354205.txt</A><BR> <A HREF=a9354206.txt>a9354206.txt</A><BR> <A HREF=a9354207.txt>a9354207.txt</A><BR> <A HREF=a9354208.txt>a9354208.txt</A><BR> <A HREF=a9354209.txt>a9354209.txt</A><BR> <A HREF=a9354212.txt>a9354212.txt</A><BR> <A HREF=a9354213.txt>a9354213.txt</A><BR> <A HREF=a9354214.txt>a9354214.txt</A><BR> <A HREF=a9354215.txt>a9354215.txt</A><BR> <A HREF=a9354216.txt>a9354216.txt</A><BR> <A HREF=a9354217.txt>a9354217.txt</A><BR> <A HREF=a9354218.txt>a9354218.txt</A><BR> <A HREF=a9354219.txt>a9354219.txt</A><BR> <A HREF=a9354220.txt>a9354220.txt</A><BR> <A HREF=a9354221.txt>a9354221.txt</A><BR> <A HREF=a9354222.txt>a9354222.txt</A><BR> <A HREF=a9354223.txt>a9354223.txt</A><BR> <A HREF=a9354224.txt>a9354224.txt</A><BR> <A HREF=a9354225.txt>a9354225.txt</A><BR> <A HREF=a9354226.txt>a9354226.txt</A><BR> <A HREF=a9354227.txt>a9354227.txt</A><BR> <A HREF=a9354228.txt>a9354228.txt</A><BR> <A HREF=a9354229.txt>a9354229.txt</A><BR> <A HREF=a9354230.txt>a9354230.txt</A><BR> <A HREF=a9354231.txt>a9354231.txt</A><BR> <A HREF=a9354232.txt>a9354232.txt</A><BR> <A HREF=a9354233.txt>a9354233.txt</A><BR> <A HREF=a9354234.txt>a9354234.txt</A><BR> <A HREF=a9354235.txt>a9354235.txt</A><BR> <A HREF=a9354236.txt>a9354236.txt</A><BR> <A HREF=a9354237.txt>a9354237.txt</A><BR> <A HREF=a9354238.txt>a9354238.txt</A><BR> <A HREF=a9354239.txt>a9354239.txt</A><BR> <A HREF=a9354240.txt>a9354240.txt</A><BR> <A HREF=a9354241.txt>a9354241.txt</A><BR> <A HREF=a9354242.txt>a9354242.txt</A><BR> <A HREF=a9354243.txt>a9354243.txt</A><BR> <A HREF=a9354244.txt>a9354244.txt</A><BR> <A HREF=a9354245.txt>a9354245.txt</A><BR> <A HREF=a9354246.txt>a9354246.txt</A><BR> <A HREF=a9354247.txt>a9354247.txt</A><BR> <A HREF=a9354248.txt>a9354248.txt</A><BR> <A HREF=a9354249.txt>a9354249.txt</A><BR> <A HREF=a9354250.txt>a9354250.txt</A><BR> <A HREF=a9354251.txt>a9354251.txt</A><BR> <A HREF=a9354252.txt>a9354252.txt</A><BR> <A HREF=a9354253.txt>a9354253.txt</A><BR> <A HREF=a9354254.txt>a9354254.txt</A><BR> <A HREF=a9354255.txt>a9354255.txt</A><BR> <A HREF=a9354256.txt>a9354256.txt</A><BR> <A HREF=a9354257.txt>a9354257.txt</A><BR> <A HREF=a9354258.txt>a9354258.txt</A><BR> <A HREF=a9354259.txt>a9354259.txt</A><BR> <A HREF=a9354260.txt>a9354260.txt</A><BR> <A HREF=a9354261.txt>a9354261.txt</A><BR> <A HREF=a9354262.txt>a9354262.txt</A><BR> <A HREF=a9354263.txt>a9354263.txt</A><BR> <A HREF=a9354264.txt>a9354264.txt</A><BR> <A HREF=a9354265.txt>a9354265.txt</A><BR> <A HREF=a9354266.txt>a9354266.txt</A><BR> <A HREF=a9354267.txt>a9354267.txt</A><BR> <A HREF=a9354268.txt>a9354268.txt</A><BR> <A HREF=a9354269.txt>a9354269.txt</A><BR> <A HREF=a9354270.txt>a9354270.txt</A><BR> <A HREF=a9354271.txt>a9354271.txt</A><BR> <A HREF=a9354272.txt>a9354272.txt</A><BR> <A HREF=a9354273.txt>a9354273.txt</A><BR> <A HREF=a9354274.txt>a9354274.txt</A><BR> <A HREF=a9354275.txt>a9354275.txt</A><BR> <A HREF=a9354276.txt>a9354276.txt</A><BR> <A HREF=a9354277.txt>a9354277.txt</A><BR> <A HREF=a9354278.txt>a9354278.txt</A><BR> <A HREF=a9354280.txt>a9354280.txt</A><BR> <A HREF=a9354281.txt>a9354281.txt</A><BR> <A HREF=a9354282.txt>a9354282.txt</A><BR> <A HREF=a9354283.txt>a9354283.txt</A><BR> <A HREF=a9354284.txt>a9354284.txt</A><BR> <A HREF=a9354285.txt>a9354285.txt</A><BR> <A HREF=a9354286.txt>a9354286.txt</A><BR> <A HREF=a9354287.txt>a9354287.txt</A><BR> <A HREF=a9354288.txt>a9354288.txt</A><BR> <A HREF=a9354289.txt>a9354289.txt</A><BR> <A HREF=a9354290.txt>a9354290.txt</A><BR> <A HREF=a9354291.txt>a9354291.txt</A><BR> <A HREF=a9354292.txt>a9354292.txt</A><BR> <A HREF=a9354293.txt>a9354293.txt</A><BR> <A HREF=a9354294.txt>a9354294.txt</A><BR> <A HREF=a9354295.txt>a9354295.txt</A><BR> <A HREF=a9354296.txt>a9354296.txt</A><BR> <A HREF=a9354297.txt>a9354297.txt</A><BR> <A HREF=a9354298.txt>a9354298.txt</A><BR> <A HREF=a9354299.txt>a9354299.txt</A><BR> <A HREF=a9354300.txt>a9354300.txt</A><BR> <A HREF=a9354301.txt>a9354301.txt</A><BR> <A HREF=a9354302.txt>a9354302.txt</A><BR> <A HREF=a9354303.txt>a9354303.txt</A><BR> <A HREF=a9354304.txt>a9354304.txt</A><BR> <A HREF=a9354305.txt>a9354305.txt</A><BR> <A HREF=a9354306.txt>a9354306.txt</A><BR> <A HREF=a9354307.txt>a9354307.txt</A><BR> <A HREF=a9354308.txt>a9354308.txt</A><BR> <A HREF=a9354309.txt>a9354309.txt</A><BR> <A HREF=a9354310.txt>a9354310.txt</A><BR> <A HREF=a9354311.txt>a9354311.txt</A><BR> <A HREF=a9354312.txt>a9354312.txt</A><BR> <A HREF=a9354313.txt>a9354313.txt</A><BR> <A HREF=a9354314.txt>a9354314.txt</A><BR> <A HREF=a9354315.txt>a9354315.txt</A><BR> <A HREF=a9354316.txt>a9354316.txt</A><BR> <A HREF=a9354317.txt>a9354317.txt</A><BR> <A HREF=a9354318.txt>a9354318.txt</A><BR> <A HREF=a9354319.txt>a9354319.txt</A><BR> <A HREF=a9354320.txt>a9354320.txt</A><BR> <A HREF=a9354323.txt>a9354323.txt</A><BR> <A HREF=a9354330.txt>a9354330.txt</A><BR> <A HREF=a9354365.txt>a9354365.txt</A><BR> <A HREF=a9354371.txt>a9354371.txt</A><BR> <A HREF=a9354373.txt>a9354373.txt</A><BR> <A HREF=a9354375.txt>a9354375.txt</A><BR> <A HREF=a9354378.txt>a9354378.txt</A><BR> <A HREF=a9354379.txt>a9354379.txt</A><BR> <A HREF=a9354383.txt>a9354383.txt</A><BR> <A HREF=a9354387.txt>a9354387.txt</A><BR> <A HREF=a9354397.txt>a9354397.txt</A><BR> <A HREF=a9354403.txt>a9354403.txt</A><BR> <A HREF=a9354419.txt>a9354419.txt</A><BR> <A HREF=a9354422.txt>a9354422.txt</A><BR> <A HREF=a9354423.txt>a9354423.txt</A><BR> <A HREF=a9354427.txt>a9354427.txt</A><BR> <A HREF=a9354432.txt>a9354432.txt</A><BR> <A HREF=a9354437.txt>a9354437.txt</A><BR> <A HREF=a9354440.txt>a9354440.txt</A><BR> <A HREF=a9354452.txt>a9354452.txt</A><BR> <A HREF=a9354453.txt>a9354453.txt</A><BR> <A HREF=a9354461.txt>a9354461.txt</A><BR> <A HREF=a9354471.txt>a9354471.txt</A><BR> <A HREF=a9354472.txt>a9354472.txt</A><BR> <A HREF=a9354473.txt>a9354473.txt</A><BR> <A HREF=a9354476.txt>a9354476.txt</A><BR> <A HREF=a9354477.txt>a9354477.txt</A><BR> <A HREF=a9354482.txt>a9354482.txt</A><BR> <A HREF=a9354483.txt>a9354483.txt</A><BR> <A HREF=a9354488.txt>a9354488.txt</A><BR> <A HREF=a9354501.txt>a9354501.txt</A><BR> <A HREF=a9354503.txt>a9354503.txt</A><BR> <A HREF=a9354506.txt>a9354506.txt</A><BR> <A HREF=a9354509.txt>a9354509.txt</A><BR> <A HREF=a9354510.txt>a9354510.txt</A><BR> <A HREF=a9354514.txt>a9354514.txt</A><BR> <A HREF=a9354515.txt>a9354515.txt</A><BR> <A HREF=a9354518.txt>a9354518.txt</A><BR> <A HREF=a9354521.txt>a9354521.txt</A><BR> <A HREF=a9354523.txt>a9354523.txt</A><BR> <A HREF=a9354525.txt>a9354525.txt</A><BR> <A HREF=a9354526.txt>a9354526.txt</A><BR> <A HREF=a9354528.txt>a9354528.txt</A><BR> <A HREF=a9354529.txt>a9354529.txt</A><BR> <A HREF=a9354530.txt>a9354530.txt</A><BR> <A HREF=a9354531.txt>a9354531.txt</A><BR> <A HREF=a9354539.txt>a9354539.txt</A><BR> <A HREF=a9354547.txt>a9354547.txt</A><BR> <A HREF=a9354549.txt>a9354549.txt</A><BR> <A HREF=a9354552.txt>a9354552.txt</A><BR> <A HREF=a9354567.txt>a9354567.txt</A><BR> <A HREF=a9354592.txt>a9354592.txt</A><BR> <A HREF=a9354595.txt>a9354595.txt</A><BR> <A HREF=a9354596.txt>a9354596.txt</A><BR> <A HREF=a9354597.txt>a9354597.txt</A><BR> <A HREF=a9354598.txt>a9354598.txt</A><BR> <A HREF=a9354599.txt>a9354599.txt</A><BR> <A HREF=a9354602.txt>a9354602.txt</A><BR> <A HREF=a9354604.txt>a9354604.txt</A><BR> <A HREF=a9354606.txt>a9354606.txt</A><BR> <A HREF=a9354626.txt>a9354626.txt</A><BR> <A HREF=a9354628.txt>a9354628.txt</A><BR> <A HREF=a9354630.txt>a9354630.txt</A><BR> <A HREF=a9354632.txt>a9354632.txt</A><BR> <A HREF=a9354634.txt>a9354634.txt</A><BR> <A HREF=a9354637.txt>a9354637.txt</A><BR> <A HREF=a9354641.txt>a9354641.txt</A><BR> <A HREF=a9354642.txt>a9354642.txt</A><BR> <A HREF=a9354643.txt>a9354643.txt</A><BR> <A HREF=a9354647.txt>a9354647.txt</A><BR> <A HREF=a9354652.txt>a9354652.txt</A><BR> <A HREF=a9354655.txt>a9354655.txt</A><BR> <A HREF=a9354670.txt>a9354670.txt</A><BR> <A HREF=a9354671.txt>a9354671.txt</A><BR> <A HREF=a9354676.txt>a9354676.txt</A><BR> <A HREF=a9354678.txt>a9354678.txt</A><BR> <A HREF=a9354692.txt>a9354692.txt</A><BR> <A HREF=a9354708.txt>a9354708.txt</A><BR> <A HREF=a9354710.txt>a9354710.txt</A><BR> <A HREF=a9354712.txt>a9354712.txt</A><BR> <A HREF=a9354721.txt>a9354721.txt</A><BR> <A HREF=a9354722.txt>a9354722.txt</A><BR> <A HREF=a9354726.txt>a9354726.txt</A><BR> <A HREF=a9354728.txt>a9354728.txt</A><BR> <A HREF=a9354730.txt>a9354730.txt</A><BR> <A HREF=a9354731.txt>a9354731.txt</A><BR> <A HREF=a9354741.txt>a9354741.txt</A><BR> <A HREF=a9354742.txt>a9354742.txt</A><BR> <A HREF=a9354755.txt>a9354755.txt</A><BR> <A HREF=a9354758.txt>a9354758.txt</A><BR> <A HREF=a9354762.txt>a9354762.txt</A><BR> <A HREF=a9354772.txt>a9354772.txt</A><BR> <A HREF=a9354776.txt>a9354776.txt</A><BR> <A HREF=a9354777.txt>a9354777.txt</A><BR> <A HREF=a9354782.txt>a9354782.txt</A><BR> <A HREF=a9354785.txt>a9354785.txt</A><BR> <A HREF=a9354791.txt>a9354791.txt</A><BR> <A HREF=a9354799.txt>a9354799.txt</A><BR> <A HREF=a9354803.txt>a9354803.txt</A><BR> <A HREF=a9354809.txt>a9354809.txt</A><BR> <A HREF=a9354813.txt>a9354813.txt</A><BR> <A HREF=a9354816.txt>a9354816.txt</A><BR> <A HREF=a9354818.txt>a9354818.txt</A><BR> <A HREF=a9354822.txt>a9354822.txt</A><BR> <A HREF=a9354823.txt>a9354823.txt</A><BR> <A HREF=a9354861.txt>a9354861.txt</A><BR> <A HREF=a9354864.txt>a9354864.txt</A><BR> <A HREF=a9354869.txt>a9354869.txt</A><BR> <A HREF=a9354870.txt>a9354870.txt</A><BR> <A HREF=a9354875.txt>a9354875.txt</A><BR> <A HREF=a9354889.txt>a9354889.txt</A><BR> <A HREF=a9354891.txt>a9354891.txt</A><BR> <A HREF=a9354898.txt>a9354898.txt</A><BR> <A HREF=a9354903.txt>a9354903.txt</A><BR> <A HREF=a9354913.txt>a9354913.txt</A><BR> <A HREF=a9354916.txt>a9354916.txt</A><BR> <A HREF=a9354923.txt>a9354923.txt</A><BR> <A HREF=a9354925.txt>a9354925.txt</A><BR> <A HREF=a9354926.txt>a9354926.txt</A><BR> <A HREF=a9354936.txt>a9354936.txt</A><BR> <A HREF=a9354937.txt>a9354937.txt</A><BR> <A HREF=a9354956.txt>a9354956.txt</A><BR> <A HREF=a9354958.txt>a9354958.txt</A><BR> <A HREF=a9354959.txt>a9354959.txt</A><BR> <A HREF=a9354969.txt>a9354969.txt</A><BR> <A HREF=a9354978.txt>a9354978.txt</A><BR> <A HREF=a9354980.txt>a9354980.txt</A><BR> <A HREF=a9354985.txt>a9354985.txt</A><BR> <A HREF=a9354986.txt>a9354986.txt</A><BR> <A HREF=a9354995.txt>a9354995.txt</A><BR> </BODY></HTML>
camilldesmoulins/SearchEngine
Corpus/Part 1/awards_1993/awd_1993_54/links.html
HTML
mit
14,640
using System.Collections; using System.Collections.Generic; using UnityEngine; public class LoadInputStat : MonoBehaviour { public GameObject textPrefab; public GameObject canvas; // Use this for initialization void OnEnable () { TRUSSCollector collector = GameObject.FindObjectOfType<TRUSSCollector>(); for(int i =0;i<collector.members.Count;i++) { //TrussMemberProperty m = mm.GetComponent<TrussMemberProperty> (); GameObject m = collector.members[i]; GameObject text = Instantiate (textPrefab, new Vector3 (0, i), Quaternion.identity); Debug.Log ("in"); text.GetComponentInChildren<TextMesh>().text = ""+(m.GetComponent<TrussMemberProperty>().number); text.GetComponentInChildren<TextMesh>().text +=" "+ m.GetComponent<TrussMemberProperty>().node1.number; text.GetComponentInChildren<TextMesh>().text +=" "+ m.GetComponent<TrussMemberProperty>().node2.number; text.GetComponentInChildren<TextMesh>().text +=" "+(m.GetComponent<TrussMemberProperty>().lenght()); text.GetComponentInChildren<TextMesh>().text +=" "+ m.GetComponent<TrussMemberProperty>().prop; text.transform.SetParent (canvas.transform); } } }
ReiiYuki/KU-Structure
Assets/Scripts/Truss/Input/LoadInputStat.cs
C#
mit
1,161
import USearch from '../search/USearch.js' import UPopover from '../popover/UPopover.js' import UList from '../list/UList.js' import UItemWrapper from '../list/UItemWrapper.js' import UCheckbox from '../checkbox/UCheckbox.js' import URadio from '../radio/URadio.js' import UToggle from '../toggle/UToggle.js' import { UIcon } from '../icon' import UInputFrame from '../input-frame/UInputFrame.js' import UChip from '../chip/UChip.js' import FrameMixin from '../../mixins/input-frame.js' import KeyboardSelectionMixin from '../../mixins/keyboard-selection.js' function defaultFilterFn (terms, obj) { return obj.label.toLowerCase().indexOf(terms) > -1 } export default { name: 'USelect', mixins: [FrameMixin, KeyboardSelectionMixin], props: { filter: [Function, Boolean], filterPlaceholder: String, radio: Boolean, placeholder: String, separator: Boolean, value: { required: true }, multiple: Boolean, toggle: Boolean, chips: Boolean, options: { type: Array, required: true, validator: v => v.every(o => 'label' in o && 'value' in o) }, chipsColor: String, chipsBgColor: String, displayValue: String }, data () { return { model: this.multiple && Array.isArray(this.value) ? this.value.slice() : this.value, terms: '', focused: false } }, watch: { value (val) { this.model = this.multiple && Array.isArray(val) ? val.slice() : val }, visibleOptions () { this.__keyboardCalcIndex() } }, computed: { optModel () { if (this.multiple) { return this.model.length > 0 ? this.options.map(opt => this.model.includes(opt.value)) : this.options.map(opt => false) } }, visibleOptions () { let opts = this.options.map((opt, index) => Object.assign({}, opt, { index })) if (this.filter && this.terms.length) { const lowerTerms = this.terms.toLowerCase() opts = opts.filter(opt => this.filterFn(lowerTerms, opt)) } return opts }, keyboardMaxIndex () { return this.visibleOptions.length - 1 }, filterFn () { return typeof this.filter === 'boolean' ? defaultFilterFn : this.filter }, actualValue () { if (this.displayValue) { return this.displayValue } if (!this.multiple) { const opt = this.options.find(opt => opt.value === this.model) return opt ? opt.label : '' } const opt = this.selectedOptions.map(opt => opt.label) return opt.length ? opt.join(', ') : '' }, computedClearValue () { return this.clearValue || (this.multiple ? [] : null) }, isClearable () { return this.editable && this.clearable && JSON.stringify(this.computedClearValue) !== JSON.stringify(this.model) }, selectedOptions () { if (this.multiple) { return this.length > 0 ? this.options.filter(opt => this.model.includes(opt.value)) : [] } }, hasChips () { return this.multiple && this.chips && this.length > 0 }, length () { return this.multiple ? this.model.length : ([null, undefined, ''].includes(this.model) ? 0 : 1) }, additionalLength () { return this.displayValue && this.displayValue.length > 0 } }, methods: { togglePopup () { this.$refs.popover && this[this.$refs.popover.showing ? 'hide' : 'show']() }, show () { this.__keyboardCalcIndex() if (this.$refs.popover) { return this.$refs.popover.show() } }, hide () { return this.$refs.popover ? this.$refs.popover.hide() : Promise.resolve() }, reposition () { const popover = this.$refs.popover if (popover && popover.showing) { this.$nextTick(() => popover && popover.reposition()) } }, __keyboardCalcIndex () { this.keyboardIndex = -1 const sel = this.multiple ? this.selectedOptions.map(o => o.value) : [this.model] this.$nextTick(() => { const index = sel === void 0 ? -1 : Math.max(-1, this.visibleOptions.findIndex(opt => sel.includes(opt.value))) if (index > -1) { this.keyboardMoveDirection = true setTimeout(() => { this.keyboardMoveDirection = false }, 500) this.__keyboardShow(index) } }) }, __keyboardCustomKeyHandle (key, e) { switch (key) { case 13: // ENTER key case 32: // SPACE key if (!this.$refs.popover.showing) { this.show() } break } }, __keyboardShowTrigger () { this.show() }, __keyboardSetSelection (index) { const opt = this.visibleOptions[index] if (this.multiple) { this.__toggleMultiple(opt.value, opt.disable) } else { this.__singleSelect(opt.value, opt.disable) } }, __keyboardIsSelectableIndex (index) { return index > -1 && index < this.visibleOptions.length && !this.visibleOptions[index].disable }, __mouseEnterHandler (e, index) { if (!this.keyboardMoveDirection) { this.keyboardIndex = index } }, __onFocus () { if (this.disable || this.focused) { return } this.focused = true this.$emit('focus') }, __onShow () { if (this.disable) { return } this.__onFocus() if (this.filter && this.$refs.filter) { this.$refs.filter.focus() } }, __onBlur (e) { if (!this.focused) { return } setTimeout(() => { const el = document.activeElement if ( !this.$refs.popover || !this.$refs.popover.showing || (el !== document.body && !this.$refs.popover.$el.contains(el)) ) { this.__onClose() this.hide() } }, 1) }, __onClose (keepFocus) { this.$nextTick(() => { if (JSON.stringify(this.model) !== JSON.stringify(this.value)) { this.$emit('change', this.model) } }) this.terms = '' if (!this.focused) { return } if (keepFocus) { this.$refs.input && this.$refs.input.$el && this.$refs.input.$el.focus() return } this.focused = false this.$emit('blur') }, __singleSelect (val, disable) { if (disable) { return } this.__emit(val) this.hide() }, __toggleMultiple (value, disable) { if (disable) { return } const model = this.model, index = model.indexOf(value) if (index > -1) { this.$emit('remove', { index, value: model.splice(index, 1) }) } else { this.$emit('add', { index: model.length, value }) model.push(value) } this.$emit('input', model) }, __emit (value) { this.$emit('input', value) this.$nextTick(() => { if (JSON.stringify(value) !== JSON.stringify(this.value)) { this.$emit('change', value) } }) }, __setModel (val, forceUpdate) { this.model = val || (this.multiple ? [] : null) this.$emit('input', this.model) if (forceUpdate || !this.$refs.popover || !this.$refs.popover.showing) { this.__onClose(forceUpdate) } }, __getChipTextColor (optColor) { if (this.chipsColor) { return this.chipsColor } if (this.isInvertedLight) { return this.invertedLight ? optColor || this.color : 'white' } if (this.isInverted) { return optColor || (this.invertedLight ? 'grey-10' : this.color) } return this.dark ? optColor || this.color : 'white' }, __getChipBgColor (optColor) { if (this.chipsBgColor) { return this.chipsBgColor } if (this.isInvertedLight) { return this.invertedLight ? 'grey-10' : optColor || this.color } if (this.isInverted) { return this.invertedLight ? this.color : 'white' } return this.dark ? 'white' : optColor || this.color } }, render (h) { const child = [] if (this.hasChips) { const el = h('div', { staticClass: 'col row items-center group u-input-chips', 'class': this.alignClass }, this.selectedOptions.map(opt => { return h(UChip, { key: opt.label, props: { small: true, closable: this.editable && !opt.disable, color: this.__getChipBgColor(opt.color), textColor: this.__getChipTextColor(opt.color), icon: opt.icon, iconRight: opt.rightIcon, avatar: opt.avatar }, on: { hide: () => { this.__toggleMultiple(opt.value, this.disable || opt.disable) } }, nativeOn: { click: e => { e.stopPropagation() } } }, [ opt.label ]) })) child.push(el) } else { const el = h('div', { staticClass: 'col u-input-target ellipsis', 'class': this.fakeInputClasses }, [ this.fakeInputValue ]) child.push(el) } if (this.isClearable) { child.push(h(UIcon, { slot: 'after', staticClass: 'u-if-control', props: { name: this.$uloc.icon.input.clear }, nativeOn: { click: this.clear } })) } child.push(h(UIcon, { slot: 'after', staticClass: 'u-if-control', props: { name: this.$uloc.icon.input.dropdown } })) child.push(h(UPopover, { ref: 'popover', staticClass: 'column no-wrap', 'class': this.dark ? 'bg-dark' : null, props: { fit: true, disable: !this.editable, anchorClick: false }, on: { show: this.__onShow, hide: () => { this.__onClose(true) } }, nativeOn: { keydown: this.__keyboardHandleKey } }, [ (this.filter && h(USearch, { ref: 'filter', staticClass: 'col-auto', style: 'padding: 10px;', props: { value: this.terms, placeholder: this.filterPlaceholder || this.$uloc.i18n.label.filter, debounce: 100, color: this.color, dark: this.dark, noParentField: true, noIcon: true }, on: { input: val => { this.terms = val this.reposition() } } })) || void 0, (this.visibleOptions.length && h(UList, { staticClass: 'no-border scroll', props: { separator: this.separator, dark: this.dark } }, this.visibleOptions.map((opt, index) => { return h(UItemWrapper, { key: index, 'class': [ opt.disable ? 'text-faded' : 'cursor-pointer', index === this.keyboardIndex ? 'u-select-highlight' : '', opt.disable ? '' : 'cursor-pointer', opt.className || '' ], props: { cfg: opt, slotReplace: true, active: this.multiple ? void 0 : this.value === opt.value }, nativeOn: { '!click': () => { const action = this.multiple ? '__toggleMultiple' : '__singleSelect' this[action](opt.value, opt.disable) }, mouseenter: e => { !opt.disable && this.__mouseEnterHandler(e, index) } } }, [ this.multiple ? h(this.toggle ? UToggle : UCheckbox, { slot: this.toggle ? 'right' : 'left', props: { keepColor: true, color: opt.color || this.color, dark: this.dark, value: this.optModel[opt.index], disable: opt.disable, noFocus: true } }) : (this.radio && h(URadio, { slot: 'left', props: { keepColor: true, color: opt.color || this.color, dark: this.dark, value: this.value, val: opt.value, disable: opt.disable, noFocus: true } })) || void 0 ]) }))) || void 0 ])) return h(UInputFrame, { ref: 'input', staticClass: 'u-select', props: { prefix: this.prefix, suffix: this.suffix, stackLabel: this.stackLabel, floatLabel: this.floatLabel, error: this.error, warning: this.warning, disable: this.disable, readonly: this.readonly, inverted: this.inverted, invertedLight: this.invertedLight, dark: this.dark, hideUnderline: this.hideUnderline, before: this.before, after: this.after, color: this.color, noParentField: this.noParentField, focused: this.focused, focusable: true, length: this.length, additionalLength: this.additionalLength }, nativeOn: { click: this.togglePopup, focus: this.__onFocus, blur: this.__onBlur, keydown: this.__keyboardHandleKey } }, child) } }
ulocbr/uloc-vue-theme
src/components/select/USelect.js
JavaScript
mit
13,422
#!/bin/bash source scripts/config; reps=$1; shift; prog="$1"; shift; params="$@"; un=$(uname -n); tmp=/tmp/run_rep_pow_max.${un}.tmp printf '' > $tmp; for r in $(seq 1 1 $reps); do out=$($run_script ./$prog $params); thr=$(echo "$out" | awk '/#acquires/ { print $5 }'); pow=$(echo "$out" | awk '/Total power/ { print $6 }'); ppw=$(echo "$thr/$pow" | bc -l); eop=$(echo "$out" | awk '/#eop/ { print $4 }'); printf "%d %.2f %f %f \n" $thr $ppw $pow $eop >> $tmp; done; # cat $tmp; nm=$(cat $tmp | grep -v "-" | wc -l); med_idx=$(echo "1 + $nm/2" | bc); sort -n $tmp | grep -v "-" | head -${med_idx} | tail -n1;
LPD-EPFL/lockin
scripts/run_rep_pow_med.sh
Shell
mit
642
# Bootstrap 3.3.4 `breadcrumbs` smart package for Meteor Part of the smart package-collection for Meteor: http://github.com/matb33/meteor-bootstrap ## Usage: `meteor add matb33:bootstrap-breadcrumbs`
matb33/meteor-bootstrap
packages/bootstrap-breadcrumbs/README.md
Markdown
mit
202
const express = require('express'); const app = express(); const webpackDevMiddleware = require('webpack-dev-middleware'); const webpack = require('webpack'); const webpackConfig = require('./webpack.config.js'); const path = require('path'); const http = require('http'); const port = process.env.PORT || 8080; if (process.env.NODE_ENV || 'production') { const compiler = webpack(webpackConfig); app.use(webpackDevMiddleware(compiler, { hot: true, filename: '/lib/bundle.js', publicPath: webpackConfig.output.publicPath, stats: { colors: true, }, historyApiFallback: true, })); } app.use(express.static(path.join(__dirname, 'public'))); app.get('/404', (request, response) => { response.sendFile(__dirname + '/public/not_found.html') }); app.get('/*', (request, response) => { response.sendFile(__dirname + '/public/index.html') }); const server = http.createServer(app) .listen(port, () => { console.log(`Listening on port ${port}.`); }); module.exports = app;
maiastone/real-estate-investment-management
server.js
JavaScript
mit
1,022
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>My Homework 3</title> <link href="css/static.css" rel="stylesheet" /> </head> <body> <div id="block"> <header>&lt;Header&gt;</header> <nav> <ul> <li><a href="index.html">Home</a></li> <li><a href="static.html">Static Layout</a></li> <li><a href="absolute.html">Absolute Layout</a></li> <li><a href="relative.html">Relative Layout</a></li> <li><a href="float.html">Float Layout</a></li> <li><a href="flexbox.html">Flexbox Layout (Extra Credit)</a></li> </ul> </nav> <article> &lt;My Article&gt; <section id="SectionOne">&lt;Section One&gt;</section> <section id="SectionTwo">&lt;Section Two&gt;</section> </article> <aside>&lt;Aside&gt;</aside> <footer>&lt;Footer&gt;</footer> </div> </body> </html>
heyborabora/GitHubTestAlexis
layout_hw-master/website/static.html
HTML
mit
991
var gulp = require('gulp'); var react = require('gulp-react'); var sass = require('gulp-sass'); var source = require('vinyl-source-stream'); var connect = require('gulp-connect'); var reactify = require('reactify'); var watchify = require('watchify'); var browserify = require('browserify'); var autoprefixer = require('gulp-autoprefixer'); gulp.task('default', ['package']); gulp.task('package', function () { return gulp.src('lib/**/*.js*') .pipe(react()) .pipe(gulp.dest('pkg')); }); gulp.task('watch', ['default'], function () { gulp.watch('./lib/**/*', ['package']); }); gulp.task('example', ['example/stylesheets', 'example/app'], function () { gulp.watch('./example/*.scss', ['example/stylesheets']); return connect.server({ root: ['example/dist'], port: 8000, livereload: true }); }); gulp.task('example/app', function () { var bundler = watchify(browserify({ cache: {}, packageCache: {}, fullPaths: true, extensions: '.jsx' })); bundler.add('./example/app.jsx'); bundler.transform(reactify); bundler.on('update', rebundle); function rebundle () { console.log('rebundling'); return bundler.bundle() .on('error', function (err) { console.log(err.message); }) .pipe(source('main.js')) .pipe(gulp.dest('./example/dist/js')) .pipe(connect.reload()); } return rebundle(); }); gulp.task('example/stylesheets', function () { return gulp.src('./example/screen.scss') .pipe(sass({errLogToConsole: true})) .pipe(autoprefixer()) .pipe(gulp.dest('./example/dist/css')) .pipe(connect.reload()); });
stayradiated/reactwm
gulpfile.js
JavaScript
mit
1,628
<h2>Poczta</h2> <?php if(isset($_GET['wyslane'])) $typ = 2; elseif(isset($_GET['raporty'])) $typ = 3; elseif(isset($_GET['adm'])) $typ = 4; else $typ = 1; $msg = ''; if(!empty($_POST['do']) && !empty($_POST['tekst'])){ f('wiadomosc_wyslij'); $msg = wiadomosc_wyslij($gracz['gracz'], $_POST['do'], $_POST['tekst']); } if(!empty($_GET['del'])){ f('wiadomosc_usun'); echo wiadomosc_usun($gracz['gracz'], $_GET['del'],$typ); } if(!empty($_GET['del_all'])){ f('wiadomosc_usun_wszystkie'); echo wiadomosc_usun_wszystkie($gracz['gracz'],$typ); } if(empty($_GET['nowa'])){ if(empty($_GET['czytaj'])){ if(isset($_GET['wyslane'])) $poczta =mysql_query("select id, login, data, status from locomafia_poczta inner join locomafia_gracze on do_gracz = gracz where od_gracz = ".$gracz['gracz']." and typ = 2 order by status asc, id desc"); elseif(isset($_GET['raporty'])) $poczta =mysql_query("select id, login, data, status from locomafia_poczta inner join locomafia_gracze on od_gracz = gracz where do_gracz = ".$gracz['gracz']." and typ = 3 order by status asc, id desc"); elseif(isset($_GET['adm'])) $poczta =mysql_query("select id, login, data, status from locomafia_poczta inner join locomafia_gracze on od_gracz = gracz where do_gracz = ".$gracz['gracz']." and typ = 4 order by status asc, id desc"); else $poczta =mysql_query("select id, login, data, status from locomafia_poczta inner join locomafia_gracze on od_gracz = gracz where do_gracz = ".$gracz['gracz']." and typ = 1 order by status asc, id desc"); $msgC = mysql_num_rows($poczta); } if(!isset($_GET['wyslane'])) $t = "Od"; elseif(isset($_GET['raporty'])) $t = "Raport"; elseif(isset($_GET['adm'])) $t = "Od"; else $t = "Do"; $echo = "<table> <tr align=center> <th>$t:</th> <th>Data:</th> <th></th> </tr> "; if(!empty($msgC) && empty($_GET['czytaj'])){ while ($wiadomosc = mysql_fetch_array($poczta)){ if ($wiadomosc['status'] == 0) { $new = " <span style='color:#339900'>[ ! ]</span>"; } else { $new = ""; } if(isset($_GET['wyslane'])){ $opcje = " <a href='?a=poczta&id=".$wiadomosc['id']."&czytaj=2&wyslane' >[ czytaj ]</a> <a href='?a=poczta&del=".$wiadomosc['id']."&wyslane' >[ usuń ]</a> <a href='?a=poczta&del_all=2&wyslane' >[ usuń wszystkie ]</a> "; $echo .=" <tr> <td style='padding:5px'>".$wiadomosc['login']."</td> <td style='padding:5px'>".date("H:i:s d-m-Y",$wiadomosc['data'])."</td> <td>$opcje</td> </tr> "; } elseif(isset($_GET['raporty'])){ $opcje = " <a href='?a=poczta&id=".$wiadomosc['id']."&czytaj=3&raporty' >[ czytaj ]</a> <a href='?a=poczta&del=".$wiadomosc['id']."&raporty' >[ usuń ]</a> <a href='?a=poczta&del_all=3&raporty' >[ usuń wszystkie ]</a> "; $echo .=" <tr> <td style='padding:5px'>".$wiadomosc['login']."</td> <td style='padding:5px'>".date("H:i:s d-m-Y",$wiadomosc['data'])." $new</td> <td>$opcje</td> </tr> "; } elseif(isset($_GET['adm'])){ $opcje = " <a href='?a=poczta&id=".$wiadomosc['id']."&czytaj=4&adm' >[ czytaj ]</a> <a href='?a=poczta&del=".$wiadomosc['id']."&adm' >[ usuń ]</a> <a href='?a=poczta&del_all=4&adm' >[ usuń wszystkie ]</a> "; $echo .=" <tr> <td style='padding:5px'>".$wiadomosc['login']."</td> <td style='padding:5px'>".date("H:i:s d-m-Y",$wiadomosc['data'])." $new</td> <td>$opcje</td> </tr> "; } else { $opcje = " <a href='?a=poczta&id=".$wiadomosc['id']."&czytaj=1' >[ czytaj ]</a> <a href='?a=poczta&do=".$wiadomosc['login']."&nowa=ok' >[ odpowiedz ]</a> <a href='?a=poczta&del=".$wiadomosc['id']."' >[ usuń ]</a> <a href='?a=poczta&del_all=1' >[ usuń wszystkie ]</a> "; $echo .=" <tr> <td style='padding:5px'>".$wiadomosc['login']."</td> <td style='padding:5px'>".date("H:i:s d-m-Y",$wiadomosc['data'])." $new</td> <td>$opcje</td> </tr> "; } } $echo .= "</table>"; echo $echo; } elseif (!empty($_GET['czytaj']) && !empty($_GET['id'])){ $_GET['id'] = (int)$_GET['id']; f('wiadomosc_czytaj'); $mes = wiadomosc_czytaj($gracz['gracz'], $_GET['id'],$typ); if(isset($_GET['wyslane'])){ if(!is_array($mes)) echo "<p class='error'>nie ma takiej wiadomości</p>"; else echo " <b>Wiadomość od: ".$mes['login']."</b><hr/> ".$mes['tekst']." <hr/><a href='?a=poczta&wyslane'>[ powrót ]</a> "; }elseif(isset($_GET['raporty'])){ if(!is_array($mes)) echo "<p class='error'>nie ma takiej wiadomości</p>"; else echo " <b>Raport ".date("H:i:s d-m-Y",$mes['data'])."</b><hr/> ".$mes['tekst']." <hr/><a href='?a=poczta&raporty'>[ powrót ]</a> "; }elseif(isset($_GET['adm'])){ if(!is_array($mes)) echo "<p class='error'>nie ma takiej wiadomości</p>"; else echo " <b>Informacja ".date("H:i:s d-m-Y",$mes['data'])."</b><hr/> ".$mes['tekst']." <hr/><a href='?a=poczta&adm'>[ powrót ]</a> "; }else{ if(!is_array($mes)) echo "<p class='error'>nie ma takiej wiadomości</p>"; else echo " <b>Wiadomość od: ".$mes['login']."</b><hr/> ".$mes['tekst']." <hr/><a href='?a=poczta'>[ powrót ]</a> <a href='?a=poczta&do=".$mes['login']."&nowa=ok' >[ odpowiedz ]</a> "; } } else { echo "<p class='error'>brak wiadomości</p>"; } } else { echo $msg." <form action='?a=poczta&nowa=ok' method='post'> Nazwa gracza: <input type='text' class='input2' name='do' value='".$_GET['do']."'/> <input class='submit' type='submit' value='wyślij'/><br/><br/> <textarea name='tekst' style='width:530px; height:100px' ></textarea><br/> </form> "; } ?>
WlasnaGra/LocoMafia
strony/gracz/poczta.php
PHP
mit
5,687
/* integration test for regressions in code */ assert = chai.assert; describe('integration', function() { // parser should not error // https://github.com/glennjones/microformat-node/issues/34 it('include without id', function(){ var expected = { 'items': [ { 'type': [ 'h-item' ], 'properties': {} }, { 'type': [ 'h-item' ], 'properties': {} } ], 'rels': {}, 'rel-urls': {} }, options = { 'html': '<div class="include item"></div><div class="include"></div><div class="item"></div>', 'baseUrl': 'http://example.com', 'dateFormat': 'html5', 'parseLatLonGeo': true }; var result = Microformats.get(options); assert.deepEqual( result, expected ); }); // parser should not error // https://github.com/glennjones/microformat-node/issues/35 it('part class delimiter ie dt-', function(){ var expected = { 'items': [ { 'type': [ 'h-entry' ], 'properties': {} } ], 'rels': {}, 'rel-urls': {} }, options = { 'html': '<div class="hentry"><div class="dt-">0AM<div class="dt-">x</div></div></div>', 'baseUrl': 'http://example.com', 'dateFormat': 'html5', 'parseLatLonGeo': true }; var result = Microformats.get(options); assert.deepEqual( result, expected ); }); });
glennjones/microformat-shiv
test/interface-tests/integration-test.js
JavaScript
mit
1,859
var utils = require('./utils') , request = require('supertest') , should = require('should') , express = require('express') , mongoose = require('mongoose'); var app = require('../app.js'); var Article = mongoose.model('Article'); var Comment = mongoose.model('Comment'); describe('Comment API CURD tests', function (argument) { beforeEach(function (done) { article = new Article({ title: 'How to build a Blog with Node.js?', content: 'You should use some frameworks like Express' }); comment = new Comment({ email: '[email protected]', content: 'Hello!' }); article.save( function (errors) { done(); }); }); it('should create comment successfully.', function (done) { request(app) .post('/api/articles/' + article._id + '/comments') .send(comment) .expect(200, function (errors, res) { res.body.email.should.match(comment.email); res.body.content.should.match(comment.content); res.body._article.should.match(article._id.toString()); done(); }); }); it('should not create comment if content is blank.', function (done) { comment.content = ''; request(app) .post('/api/articles/' + article._id + '/comments') .send(comment) .expect(200, function (errors, res) { should.exist(errors); (res.body.errors.content.message).should.match('Content cannot be blank.'); done(); }); }); it('should delete comment successfully', function (done) { comment.save(function (errors) { request(app) .delete('/api/comments/' + comment._id) .expect(200, function (errors, res) { res.body.email.should.match(comment.email); res.body.content.should.match(comment.content); done(); }); }); }); it('should update comment successfully', function (done) { comment.save(); comment.content = 'Hello, I have updated this article!'; request(app) .put('/api/comments/' + comment._id) .send(comment) .expect(200, function (errors, res) { res.body.email.should.match(comment.email); res.body.content.should.match(comment.content); done(); }); }); });
SpecialCyCi/specialblog-node-js
test/comments.controller.test.js
JavaScript
mit
2,276
<?php namespace Wookieb\RelativeDate\Tests; use Wookieb\RelativeDate\DateDiffRequest; use Wookieb\RelativeDate\DateDiffResult; abstract class AbstractTest extends \PHPUnit_Framework_TestCase { protected function assertDateDiffResult($key, $value, DateDiffResult $currentResult) { $this->assertSame($key, $currentResult->getKey(), 'Invalid result key'); $this->assertSame($value, $currentResult->getValue(), 'Invalid result value'); } protected function createRequestForSeconds($seconds) { $interval = new \DateInterval('PT'.abs($seconds).'S'); $date = new \DateTimeImmutable('2015-01-01 00:00:00'); if ($seconds < 0) { $baseDate = $date->add($interval); } else { $baseDate = $date->sub($interval); } return new DateDiffRequest($date, $baseDate); } }
wookieb/relative-date
tests/AbstractTest.php
PHP
mit
866
# Booktionator [![Build Status](https://travis-ci.org/calvingerling/booktionator.svg?branch=master)](https://travis-ci.org/calvingerling/booktionator) :notebook_with_decorative_cover: Your brand new way to get and dispense books. Powered by [Angular](https://angular.io/) to build up the UI, [Travis CI](https://travis-ci.org/) to manage continuous integration and [Firebase tools](https://firebase.google.com/) for [data storage](https://firebase.google.com/products/database/), [hosting](https://firebase.google.com/products/hosting/) and [authentication](https://firebase.google.com/products/auth/), Booktionator helps you to propagate culture the way you prefer. You can sell, trade and even auction your ~once~ beloved books as well as buy, bid and take part on one's trade. This is a nonprofit project and was done just for the academic purpose in mind.
calvingerling/booktionator
README.md
Markdown
mit
862
/* * Renderer by Grant Skinner. Dec 5, 2010 * Visit http://easeljs.com/ for documentation, updates and examples. * * * Copyright (c) 2010 Grant Skinner * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ /** * The Easel Javascript library provides a retained graphics mode for canvas * including a full, hierarchical display list, a core interaction model, and * helper classes to make working with Canvas much easier. * @module EaselJS **/ (function(window) { /** * A stage is the root level Container for a display list. Each time its tick method is called, it will render its display * list to its target canvas. * @class Stage * @extends Container * @constructor * @param {HTMLCanvasElement} canvas The canvas the stage will render to. **/ var Renderer = function(root,surface) { this.initialize(root,surface); } var p = Renderer.prototype; // static properties: // public properties: p.root = null; p.surface = null; p.tickOnUpdate = true; // constructor: /** * Initialization method. * @method initialize * @param {DisplayObject} root * @protected **/ p.initialize = function(root,surface) { this.root = root; this.surface = surface; } // public methods: /** * If the current surface is null, this creates a new DOM object that will be used as the * display surface for this renderer. For example, for the WebGL renderer, this would return * a Canvas object with the specified dimensions. If a surface is already set, calling * createSurface will update the dimensions of the existing surface and return it. * @method createSurface * @param width The width of the surface to create (or to resize the current surface to) * @param height The height of the surface to create (or resize the current surface to) */ p.getSurface = function(width, height) {} /** * Clears the surface, ticks all display objects on the display list defined by root, and then renders root * to the current surface. Use the clear(), tickDisplayList(), and render() methods if you want * more control over the individual tasks. * @method update **/ p.update = function() { this.clear(); if (this.tickOnUpdate) { this.tickDisplayList(this.root, this.arguments); } this.render(this.root,this.surface); } /** * Calls the update method. Useful for adding the renderer as a listener to Ticker directly. * @property tick * @private * @type Function **/ p.tick = p.update; /** * Clears all graphics that are currently rendered to the surface. Useful if autoClear is set to false. * @method clear **/ p.clear = function() {} /** * Renders the specified displayObject to the specified surface. * @param displayObject The DisplayObject instance to render. Defaults to root. * @param surface The surface to render to. This must be the appropriate type for the renderer. Defaults to surface. */ p.render = function(displayObject, surface) {} p.tickDisplayList = function(displayObject, params) { if (!displayObject || !displayObject._tick) { return; } displayObject._tick((params && params.length ? params : null)); } window.Renderer = Renderer; }(window));
github-adi/repository
C:\Program Files\Notepad++\renderer.js
JavaScript
mit
4,135
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'skalera/services' require 'helpers/service'
skalera/skalera-services
spec/spec_helper.rb
Ruby
mit
113
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Microsoft.Win32; using ControlKNDL_UX.Components; namespace ControlKNDL_UX { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : Window { Settings _settingComponent; Settings SettingsComponent { get { return _settingComponent; } set { _settingComponent = value; } } public MainWindow() { InitializeComponent(); SettingsComponent = new Settings(); } private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (SettingsComponent.SettingsChanged) Properties.Settings.Default.Save(); } private void btSearchFile_Click(object sender, RoutedEventArgs e) { OpenFileDialog opDlg = new OpenFileDialog(); opDlg.DefaultExt = ".epub"; opDlg.Filter = "Epub Files (*.epub)|*.epub|All Files (*.*)|*.*"; Nullable<bool> result = opDlg.ShowDialog(); // Get the selected file name and display in a TextBox if (result == true) { // Open document string filename = opDlg.FileName; tbFileToConvert.Text = filename; } } private void btConvert_Click(object sender, RoutedEventArgs e) { try { KndlGConverter kndlG = new KndlGConverter(); kndlG.ConvertFile(tbFileToConvert.Text); tbOutput.Text = kndlG.Log; } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); } } private void MenuItem_Click(object sender, RoutedEventArgs e) { new Views.Settings(ref _settingComponent).ShowDialog(); } } }
vitordm/ControlKNDL-UX
ControlKNDL-UX/MainWindow.xaml.cs
C#
mit
2,387
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("TagLib")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("TagLib")] [assembly: AssemblyCopyright("Copyright © 2007")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("73c67d68-3bcf-491e-8244-b69266d48f4e")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
google-code/banshee32
TagLib/Properties/AssemblyInfo.cs
C#
mit
1,383
# Adapters ## Slack - [Npm module for slackbot](https://github.com/mishk0/slack-bot-api)
assistant-os/assistant-os
doc/adapters.md
Markdown
mit
91
package at.ac.tuwien.big.xmlintelledit.intelledit.evaluate.impl; import java.util.Arrays; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EStructuralFeature; import at.ac.tuwien.big.xmlintelledit.intelledit.change.ParameterType; import at.ac.tuwien.big.xmlintelledit.intelledit.change.basic.FixedAddConstantChangeType; import at.ac.tuwien.big.xmlintelledit.intelledit.change.basic.FixedDeleteConstantChangeType; import at.ac.tuwien.big.xmlintelledit.intelledit.ecore.util.MyResource; import at.ac.tuwien.big.xmlintelledit.intelledit.evaluate.EvaluationState; import at.ac.tuwien.big.xmlintelledit.intelledit.fixer.FixAttempt; import at.ac.tuwien.big.xmlintelledit.intelledit.fixer.impl.SetAddAnyImpl; import at.ac.tuwien.big.xmlintelledit.intelledit.fixer.impl.SetRemoveAnyImpl; import at.ac.tuwien.big.xmlintelledit.intelledit.oclvisit.EvalResult; import at.ac.tuwien.big.xmlintelledit.intelledit.oclvisit.FixAttemptFeatureReferenceImpl; import at.ac.tuwien.big.xmlintelledit.intelledit.oclvisit.FixingActionGenerator; import at.ac.tuwien.big.xmlintelledit.intelledit.oclvisit.SimpleResult; import at.ac.tuwien.big.xtext.util.MyEcoreUtil; public class MultiplicityEvaluationState implements EvaluationState<MultiplicityEvaluationState> { MultiplicityEvaluable evaluable; MyResource res; private EObject eobj; public MultiplicityEvaluationState(MyResource res, MultiplicityEvaluable eval, EObject eobj) { this.res = res; this.eobj = eobj; this.evaluable = eval; } @Override public void initParam() { } @Override public void reuseParam(MultiplicityEvaluationState from) { } @Override public Object evaluateBasic() { EStructuralFeature feat =evaluable.getFeature(); int curSize = MyEcoreUtil.getAsCollectionSize(eobj, feat); if (curSize < feat.getLowerBound()) { return false; } if (feat.getUpperBound() >= 0 && curSize > feat.getUpperBound()) { return false; } return true; } private EvalResult result; private double quality; @Override public Object evaluateFull() { if (result == null) { EStructuralFeature feat =evaluable.getFeature(); int curSize = MyEcoreUtil.getAsCollectionSize(eobj, feat); if (curSize < feat.getLowerBound()) { result = new SimpleResult(feat); result.setResult(false); FixAttempt fix = new SetAddAnyImpl(feat.getLowerBound()); result.addPossibleFix(fix); FixAttemptFeatureReferenceImpl fref = new FixAttemptFeatureReferenceImpl(eobj,feat); result.getFixAttemptReferenceInfo().addFixAttemptReference(fref, new EvaluableReferenceImpl(evaluable) ,fix); ParameterType valueGeneratingParameter = res.defaultGenerator(feat); result.addPossibleFixingActions(Arrays.asList( new FixedAddConstantChangeType<>(res.getResource(), eobj, feat, valueGeneratingParameter)), FixingActionGenerator.DIRECT_FIX_PRIORITY); quality = ((double)curSize) / feat.getLowerBound(); return false; } if (feat.getUpperBound() >= 0 && curSize > feat.getUpperBound()) { result = new SimpleResult(feat); result.setResult(false); FixAttempt fix = new SetRemoveAnyImpl(feat.getUpperBound()); result.addPossibleFix(fix); FixAttemptFeatureReferenceImpl fref = new FixAttemptFeatureReferenceImpl(eobj,feat); result.getFixAttemptReferenceInfo().addFixAttemptReference(fref, new EvaluableReferenceImpl(evaluable) ,fix); result.addPossibleFixingActions(Arrays.asList( new FixedDeleteConstantChangeType(res.getResource(), eobj, feat)), FixingActionGenerator.DIRECT_FIX_PRIORITY); quality = 1.0/(1.0+curSize-feat.getUpperBound()); return false; } quality = 1.0; result = new SimpleResult(feat); result.setResult(true); } return result.getResult(); } @Override public EvalResult getResult() { if (result == null) { evaluateFull(); } return result; } @Override public double getQuality() { if (result == null) { evaluateFull(); } return quality; } }
patrickneubauer/XMLIntellEdit
xmlintelledit/intelledit/src/main/java/at/ac/tuwien/big/xmlintelledit/intelledit/evaluate/impl/MultiplicityEvaluationState.java
Java
mit
3,983
import { isNaN as _isNaN, isUndefined as _isUndefined } from 'lodash'; /** * Changes a number in thousands into a comma separated number * * e.g. * 1000 -> 1,000 * 1000000 -> 1,000,000 */ export function thousandsSeparator () { return (number) => { if (_isUndefined(number)) { return '-'; } number = Number(number); if (_isNaN(number)) { return '-'; } return number.toLocaleString(); }; }
alexilyaev/angular-webpack-starter
app/common/filters/thousands-separator.js
JavaScript
mit
444
// // ZapposItem.h // Zappify // // Created by Ian Burns on 9/15/13. // Copyright (c) 2013 Ian Burns. All rights reserved. // // Zappify is built for iOS 7, it was tested on an actual iPhone 5, and the simulator for the 3.5" screen // // ZapposItem is a class to contain all the important info about a Zappos Item #import <Foundation/Foundation.h> @interface ZapposItem : NSObject @property int desiredPercentOff; @property UIImage *thumbnailImage; @property NSString *productName, *normalPrice, *discountedPrice, *percentOff, *productId, *imageURL, *brandName, *productUrl, *emailAddressToAlert; // Now that is a lot of strings! @property BOOL notify; @end
ianb821/Zappify-Objective_C
Zappify/ZapposItem.h
C
mit
666
# POO_PROJETO_3_JSP_2017 Projeto Acadêmico da disciplina Programação Orientada a Objeto
AndreiaCoelho/POO_PROJETO_3_JSP_2017
README.md
Markdown
mit
91
--- date: 2016-04-17 12:18:16-05:00 embed_url: https://i.imgur.com/zLDhc3E.jpg layout: post tags: - grammar - humor - comic timestamp: 1460913496 title: Your Welcome type: image --- <img src="https://i.imgur.com/zLDhc3E.jpg" alt="" />
goodevilgenius/pile
_posts/2016-4-17-Your_Welcome.md
Markdown
mit
237
function BinarySearchTree() { this.root = null; } BinarySearchTree.prototype.insert = function (x) { this.root = this.insertNode(x, this.root); }; BinarySearchTree.prototype.remove = function (x) { this.root = this.removeNode(x, this.root); }; BinarySearchTree.prototype.removeMin = function () { this.root = this.removeMinNode(this.root); }; BinarySearchTree.prototype.findMin = function () { return this.elementAt(this.findMinNode(this.root)); }; BinarySearchTree.prototype.findMax = function () { return this.elementAt(this.findMaxNode(this.root)); }; BinarySearchTree.prototype.find = function (x) { return this.elementAt(this.findNode(x, this.root)); }; BinarySearchTree.prototype.makeEmpty = function () { this.root = null; }; BinarySearchTree.prototype.isEmpty = function () { return this.root == null; }; BinarySearchTree.prototype.elementAt = function (t) { return t === null ? null : t.getElement(); }; BinarySearchTree.prototype.findNode = function (x, t) { while (t !== null) { if (x - t.getElement() < 0) t = t.getLeft(); else if (x - t.getElement() > 0) t = t.getRight(); else return t; // Match } return null; // Not Found }; BinarySearchTree.prototype.findMinNode = function (t) { if (t !== null) while (t.getLeft() !== null) t = t.getLeft(); return t; }; BinarySearchTree.prototype.findMaxNode = function (t) { if (t !== null) while (t.getRight() !== null) t = t.getRight(); return t; }; BinarySearchTree.prototype.insertNode = function (x, t) { if (t === null) t = new BinaryNode(x); else if (x - t.getElement() < 0) t.setLeft(this.insertNode(x, t.getLeft())); else if (x - t.getElement() > 0) t.setRight(this.insertNode(x, t.getRight())); else throw { name: "DuplicateItemException", message: "Duplicate items are not allowed" }; return t; }; BinarySearchTree.prototype.removeMinNode = function (t) { if (t === null) throw { name: "ItemNotFoundException", message: "The item was not found" }; else if (t.getLeft() !== null) { t.setLeft(this.removeMinNode(t.getLeft())); return t; } else return t.getRight(); }; BinarySearchTree.prototype.removeNode = function (x, t) { if (t === null) throw { name: "ItemNotFoundException", message: "The item was not found" }; if (x - t.getElement() < 0) t.setLeft(this.removeNode(x, t.getLeft())); else if (x - t.getElement() > 0) t.setRight(this.removeNode(x, t.getRight())); else if (t.getLeft() !== null && t.getRight() !== null) { // Two children t.setElement(this.findMinNode(t.getRight()).getElement()); t.setRight(this.removeMinNode(t.getRight())); } else t = (t.getLeft() !== null) ? t.getLeft() : t.getRight(); return t; };
DAT200-Visualization-Team/DAT200-Visualization
js/datastructures/BinarySearchTree.js
JavaScript
mit
2,946
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) --> <!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca --> <head> <!-- Title begins / Début du titre --> <title> Boge & Boge (1980) Ltd. - Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada </title> <!-- Title ends / Fin du titre --> <!-- Meta-data begins / Début des métadonnées --> <meta charset="utf-8" /> <meta name="dcterms.language" title="ISO639-2" content="eng" /> <meta name="dcterms.title" content="" /> <meta name="description" content="" /> <meta name="dcterms.description" content="" /> <meta name="dcterms.type" content="report, data set" /> <meta name="dcterms.subject" content="businesses, industry" /> <meta name="dcterms.subject" content="businesses, industry" /> <meta name="dcterms.issued" title="W3CDTF" content="" /> <meta name="dcterms.modified" title="W3CDTF" content="" /> <meta name="keywords" content="" /> <meta name="dcterms.creator" content="" /> <meta name="author" content="" /> <meta name="dcterms.created" title="W3CDTF" content="" /> <meta name="dcterms.publisher" content="" /> <meta name="dcterms.audience" title="icaudience" content="" /> <meta name="dcterms.spatial" title="ISO3166-1" content="" /> <meta name="dcterms.spatial" title="gcgeonames" content="" /> <meta name="dcterms.format" content="HTML" /> <meta name="dcterms.identifier" title="ICsiteProduct" content="536" /> <!-- EPI-11240 --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- MCG-202 --> <meta content="width=device-width,initial-scale=1" name="viewport"> <!-- EPI-11567 --> <meta name = "format-detection" content = "telephone=no"> <!-- EPI-12603 --> <meta name="robots" content="noarchive"> <!-- EPI-11190 - Webtrends --> <script> var startTime = new Date(); startTime = startTime.getTime(); </script> <!--[if gte IE 9 | !IE ]><!--> <link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon"> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css"> <!--<![endif]--> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css"> <!--[if lt IE 9]> <link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" /> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script> <![endif]--> <!--[if lte IE 9]> <![endif]--> <noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript> <!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER --> <script>dataLayer1 = [];</script> <!-- End Google Tag Manager --> <!-- EPI-11235 --> <link rel="stylesheet" href="/eic/home.nsf/css/add_WET_4-0_Canada_Apps.css"> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" /> </head> <body class="home" vocab="http://schema.org/" typeof="WebPage"> <!-- EPIC HEADER BEGIN --> <!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER --> <noscript><iframe title="Google Tag Manager" src="//www.googletagmanager.com/ns.html?id=GTM-TLGQ9K" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer1','GTM-TLGQ9K');</script> <!-- End Google Tag Manager --> <!-- EPI-12801 --> <span typeof="Organization"><meta property="legalName" content="Department_of_Industry"></span> <ul id="wb-tphp"> <li class="wb-slc"> <a class="wb-sl" href="#wb-cont">Skip to main content</a> </li> <li class="wb-slc visible-sm visible-md visible-lg"> <a class="wb-sl" href="#wb-info">Skip to "About this site"</a> </li> </ul> <header role="banner"> <div id="wb-bnr" class="container"> <section id="wb-lng" class="visible-md visible-lg text-right"> <h2 class="wb-inv">Language selection</h2> <div class="row"> <div class="col-md-12"> <ul class="list-inline mrgn-bttm-0"> <li><a href="nvgt.do?V_TOKEN=1492270172755&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=6420&V_SEARCH.docsStart=6419&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn/rgstr.sec?_flId?_flxKy=e1s1&amp;estblmntNo=234567041301&amp;profileId=61&amp;_evId=bck&amp;lang=eng&amp;V_SEARCH.showStricts=false&amp;prtl=1&amp;_flId?_flId?_flxKy=e1s1" title="Français" lang="fr">Français</a></li> </ul> </div> </div> </section> <div class="row"> <div class="brand col-xs-8 col-sm-9 col-md-6"> <a href="http://www.canada.ca/en/index.html"><object type="image/svg+xml" tabindex="-1" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/sig-blk-en.svg"></object><span class="wb-inv"> Government of Canada</span></a> </div> <section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn"> <h2>Search and menus</h2> <ul class="list-inline text-right chvrn"> <li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li> </ul> <div id="mb-pnl"></div> </section> <!-- Site Search Removed --> </div> </div> <nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="SiteNavigationElement"> <h2 class="wb-inv">Topics menu</h2> <div class="container nvbar"> <div class="row"> <ul class="list-inline menu"> <li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li> <li><a href="http://www.cic.gc.ca/english/index.asp">Immigration</a></li> <li><a href="https://travel.gc.ca/">Travel</a></li> <li><a href="https://www.canada.ca/en/services/business.html">Business</a></li> <li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li> <li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li> <li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li> <li><a href="https://www.canada.ca/en/services.html">More services</a></li> </ul> </div> </div> </nav> <!-- EPIC BODY BEGIN --> <nav role="navigation" id="wb-bc" class="" property="breadcrumb"> <h2 class="wb-inv">You are here:</h2> <div class="container"> <div class="row"> <ol class="breadcrumb"> <li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li> <li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li> <li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li> </ol> </div> </div> </nav> </header> <main id="wb-cont" role="main" property="mainContentOfPage" class="container"> <!-- End Header --> <!-- Begin Body --> <!-- Begin Body Title --> <!-- End Body Title --> <!-- Begin Body Head --> <!-- End Body Head --> <!-- Begin Body Content --> <br> <!-- Complete Profile --> <!-- Company Information above tabbed area--> <input id="showMore" type="hidden" value='more'/> <input id="showLess" type="hidden" value='less'/> <h1 id="wb-cont"> Company profile - Canadian Company Capabilities </h1> <div class="profileInfo hidden-print"> <ul class="list-inline"> <li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&amp;rstBtn.x=" class="btn btn-link">New Search</a>&nbsp;|</li> <li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do"> <input type="hidden" name="lang" value="eng" /> <input type="hidden" name="profileId" value="" /> <input type="hidden" name="prtl" value="1" /> <input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" /> <input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" /> <input type="hidden" name="V_SEARCH.depth" value="1" /> <input type="hidden" name="V_SEARCH.showStricts" value="false" /> <input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" /> </form></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=6418&amp;V_DOCUMENT.docRank=6419&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492270200613&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=234567115151&amp;profileId=&amp;key.newSearchLabel=">Previous Company</a></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=6420&amp;V_DOCUMENT.docRank=6421&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492270200613&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=234567161073&amp;profileId=&amp;key.newSearchLabel=">Next Company</a></li> </ul> </div> <details> <summary>Third-Party Information Liability Disclaimer</summary> <p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p> </details> <h2> Boge & Boge (1980) Ltd. </h2> <div class="row"> <div class="col-md-5"> <h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2> <p>Boge & Boge (1980) Ltd.</p> <div class="mrgn-tp-md"></div> <p class="mrgn-bttm-0" ><a href="http://www.boge-boge.com" target="_blank" title="Website URL">http://www.boge-boge.com</a></p> <p><a href="mailto:[email protected]" title="[email protected]">[email protected]</a></p> </div> <div class="col-md-4 mrgn-sm-sm"> <h2 class="h5 mrgn-bttm-0">Mailing Address:</h2> <address class="mrgn-bttm-md"> 268 Ellen St.<br/> WINNIPEG, Manitoba<br/> R3A 1A7 <br/> </address> <h2 class="h5 mrgn-bttm-0">Location Address:</h2> <address class="mrgn-bttm-md"> 268 Ellen St.<br/> WINNIPEG, Manitoba<br/> R3A 1A7 <br/> </address> <p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>: (204) 942-7276 </p> <p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>: (204) 942-7288</p> </div> <div class="col-md-3 mrgn-tp-md"> </div> </div> <div class="row mrgn-tp-md mrgn-bttm-md"> <div class="col-md-12"> <h2 class="wb-inv">Company Profile</h2> <br> Boge &amp; Boge is a multi-disciplined Engineering firm offering <br>engineering and design-build services to industrial, mining, <br>process, communications and agricultural industries.<br> </div> </div> <!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> --> <div class="wb-tabs ignore-session"> <div class="tabpanels"> <details id="details-panel1"> <summary> Full profile </summary> <!-- Tab 1 --> <h2 class="wb-invisible"> Full profile </h2> <!-- Contact Information --> <h3 class="page-header"> Contact information </h3> <section class="container-fluid"> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> Hans Boge </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Title: </strong> </div> <div class="col-md-7"> <!--if client gender is not null or empty we use gender based job title--> President </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Area of Responsibility: </strong> </div> <div class="col-md-7"> Management Executive. </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Telephone: </strong> </div> <div class="col-md-7"> (204) 942-7276 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Facsimile: </strong> </div> <div class="col-md-7"> (204) 942-7288 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> [email protected] </div> </div> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> Hans Boge Jr. </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Title: </strong> </div> <div class="col-md-7"> <!--if client gender is not null or empty we use gender based job title--> Engineer </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Telephone: </strong> </div> <div class="col-md-7"> (204) 942-7276 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Facsimile: </strong> </div> <div class="col-md-7"> (204) 942-7288 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> [email protected] </div> </div> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Company Description --> <h3 class="page-header"> Company description </h3> <section class="container-fluid"> <div class="row"> <div class="col-md-5"> <strong> Country of Ownership: </strong> </div> <div class="col-md-7"> Canada &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Year Established: </strong> </div> <div class="col-md-7"> 1976 </div> </div> <div class="row"> <div class="col-md-5"> <strong> Exporting: </strong> </div> <div class="col-md-7"> Yes &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Industry (NAICS): </strong> </div> <div class="col-md-7"> 541330 - Engineering Services </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Services &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Total Sales ($CDN): </strong> </div> <div class="col-md-7"> $500,000 to $999,999&nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Number of Employees: </strong> </div> <div class="col-md-7"> 8&nbsp; </div> </div> </section> <!-- Products / Services / Licensing --> <h3 class="page-header"> Product / Service / Licensing </h3> <section class="container-fluid"> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-STRUCTURAL <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-HOTELS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-OFFICE BUILDINGS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-APARTMENTS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Boge &amp; Boge provides consulting engineering and project <br> management services to the industrial, mining, commercial, <br> institutional and agricultural sectors<br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-OTHER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - INDUSTRY-OTHER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - TRANSPORTATION-BRIDGES <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - COMMUNICATIONS-OTHER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-HARD ROCK MINING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-COAL MINING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - PETROLEUM &amp; NATURAL GAS-OTHER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - INDUSTRY-STEEL <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-VENEER/PLYWOOD/PART. MILL <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - COMMUNICATIONS-MICROWAVE <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-MINE PLANNING &amp; PRDTN <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-EDUCATION <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-HARD/SOFT BOARD MILLS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-HOSPITALS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-AGRICULTURAL ENGINEERING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - INDUSTRY-MANUFACTURING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - INDUSTRY-FERTILIZER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-UNDERGROUND MINING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-PAPER MILLS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-SAWMILLS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-PULP MILLS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> ENGINEERING SERVICES <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Process, Mechanical, Structural and Industrial planning for <br> mining, pulp and paper, industrial, process and agriculture <br> projects.<br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> Consultants and Engineers <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> AGBUS-GRAIN HANDLING AND STORAGE <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> SERVICE - CONSULTANT - ENVIRONMENT <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> ENVIRONMENT - CONSULTING ENGINEER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> ENVIRONMENT - WATER TREATMENT <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> ENVIRONMENT - POLLUTION/ENERGY <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> IEM-METAL FABRICATION AND WELDING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> Building and Facility Structures <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> Engineering and Technical Services (incl. Mechanical, Electrical, Chemical, Electronic Engineering) <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> Building Technology Studies <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> FSC Code: </strong> </div> <div class="col-md-9"> B205-Building Technology Studies <br> B206-Energy Studies <br> B207-Technology Studies <br> B219-Other Engineering Studies <br> C110-Building and Facility Structures <br> C113-Educational Buildings <br> C114-Hospital Buildings <br> C115-Industrial Buildings <br> C117-Warehouse Buildings <br> C118-Research and Development Facilities <br> C119-Other Buildings <br> C120-Non-Building Structures <br> C121-Conservation and Development <br> C129-Other Non-Building Structures <br> C130-Restoration <br> R000-Professional, Administrative and Management Support Services <br> R006-Technical Writing Services <br> R008-Engineering and Technical Services (incl. Mechanical, Electrical, Chemical, Electronic Engineering) <br> R014-Operations Research Studies / Quantitative Analysis Studies <br> R019-Other Professional Services <br> </div> </div> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Technology Profile --> <h3 class="page-header"> Technology profile </h3> <section class="container-fluid"> Boge &amp; Boge provides analysis, design, specifications, project <br> management and feasibility studies for engineering and <br> construction related projects. <br> <br> <br> Analysis and design of engineering applications. Autocad <br> drafting. Project management. <br> </section> <!-- Market Profile --> <h3 class="page-header"> Market profile </h3> <section class="container-fluid"> <h4> Alliances: </h4> <ul> <li>Sales/Marketing</li> <li>Technology</li> </ul> <h4> Strategic alliances: </h4> We are seeking strategic alliances with domestic and foreign <br> companies in the areas of process, industrial and agricultural <br> ventures. <h4> Geographic markets: </h4> <h5> Export experience: </h5> <ul> <li>United States</li> </ul> <h5> Actively pursuing: </h5> <ul> <li>Algeria</li> <li>Brazil</li> <li>Mexico</li> </ul> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Sector Information --> <details class="mrgn-tp-md mrgn-bttm-md"> <summary> Third-Party Information Liability Disclaimer </summary> <p> Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements. </p> </details> </details> <details id="details-panel2"> <summary> Contacts </summary> <h2 class="wb-invisible"> Contact information </h2> <!-- Contact Information --> <section class="container-fluid"> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> Hans Boge </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Title: </strong> </div> <div class="col-md-7"> <!--if client gender is not null or empty we use gender based job title--> President </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Area of Responsibility: </strong> </div> <div class="col-md-7"> Management Executive. </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Telephone: </strong> </div> <div class="col-md-7"> (204) 942-7276 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Facsimile: </strong> </div> <div class="col-md-7"> (204) 942-7288 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> [email protected] </div> </div> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> Hans Boge Jr. </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Title: </strong> </div> <div class="col-md-7"> <!--if client gender is not null or empty we use gender based job title--> Engineer </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Telephone: </strong> </div> <div class="col-md-7"> (204) 942-7276 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Facsimile: </strong> </div> <div class="col-md-7"> (204) 942-7288 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> [email protected] </div> </div> </section> </details> <details id="details-panel3"> <summary> Description </summary> <h2 class="wb-invisible"> Company description </h2> <section class="container-fluid"> <div class="row"> <div class="col-md-5"> <strong> Country of Ownership: </strong> </div> <div class="col-md-7"> Canada &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Year Established: </strong> </div> <div class="col-md-7"> 1976 </div> </div> <div class="row"> <div class="col-md-5"> <strong> Exporting: </strong> </div> <div class="col-md-7"> Yes &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Industry (NAICS): </strong> </div> <div class="col-md-7"> 541330 - Engineering Services </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Services &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Total Sales ($CDN): </strong> </div> <div class="col-md-7"> $500,000 to $999,999&nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Number of Employees: </strong> </div> <div class="col-md-7"> 8&nbsp; </div> </div> </section> </details> <details id="details-panel4"> <summary> Products, services and licensing </summary> <h2 class="wb-invisible"> Product / Service / Licensing </h2> <section class="container-fluid"> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-STRUCTURAL <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-HOTELS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-OFFICE BUILDINGS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-APARTMENTS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Boge &amp; Boge provides consulting engineering and project <br> management services to the industrial, mining, commercial, <br> institutional and agricultural sectors<br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-OTHER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - INDUSTRY-OTHER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - TRANSPORTATION-BRIDGES <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - COMMUNICATIONS-OTHER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-HARD ROCK MINING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-COAL MINING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - PETROLEUM &amp; NATURAL GAS-OTHER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - INDUSTRY-STEEL <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-VENEER/PLYWOOD/PART. MILL <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - COMMUNICATIONS-MICROWAVE <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-MINE PLANNING &amp; PRDTN <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-EDUCATION <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-HARD/SOFT BOARD MILLS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - BUILDINGS-HOSPITALS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-AGRICULTURAL ENGINEERING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - INDUSTRY-MANUFACTURING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - INDUSTRY-FERTILIZER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - MINING &amp; METALLURGY-UNDERGROUND MINING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-PAPER MILLS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-SAWMILLS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> CONSULTING ENGINEER - FOREST/FISH/AGRLTR-PULP MILLS <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> ENGINEERING SERVICES <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Process, Mechanical, Structural and Industrial planning for <br> mining, pulp and paper, industrial, process and agriculture <br> projects.<br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> Consultants and Engineers <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> AGBUS-GRAIN HANDLING AND STORAGE <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> SERVICE - CONSULTANT - ENVIRONMENT <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> ENVIRONMENT - CONSULTING ENGINEER <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> ENVIRONMENT - WATER TREATMENT <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> ENVIRONMENT - POLLUTION/ENERGY <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> IEM-METAL FABRICATION AND WELDING <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> Building and Facility Structures <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> Engineering and Technical Services (incl. Mechanical, Electrical, Chemical, Electronic Engineering) <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Service Name: </strong> </div> <div class="col-md-9"> Building Technology Studies <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> FSC Code: </strong> </div> <div class="col-md-9"> B205-Building Technology Studies <br> B206-Energy Studies <br> B207-Technology Studies <br> B219-Other Engineering Studies <br> C110-Building and Facility Structures <br> C113-Educational Buildings <br> C114-Hospital Buildings <br> C115-Industrial Buildings <br> C117-Warehouse Buildings <br> C118-Research and Development Facilities <br> C119-Other Buildings <br> C120-Non-Building Structures <br> C121-Conservation and Development <br> C129-Other Non-Building Structures <br> C130-Restoration <br> R000-Professional, Administrative and Management Support Services <br> R006-Technical Writing Services <br> R008-Engineering and Technical Services (incl. Mechanical, Electrical, Chemical, Electronic Engineering) <br> R014-Operations Research Studies / Quantitative Analysis Studies <br> R019-Other Professional Services <br> </div> </div> </section> </details> <details id="details-panel5"> <summary> Technology </summary> <h2 class="wb-invisible"> Technology profile </h2> <section class="container-fluid"> Boge &amp; Boge provides analysis, design, specifications, project <br> management and feasibility studies for engineering and <br> construction related projects. <br> <br> <br> Analysis and design of engineering applications. Autocad <br> drafting. Project management. <br> </section> </details> <details id="details-panel6"> <summary> Market </summary> <h2 class="wb-invisible"> Market profile </h2> <section class="container-fluid"> <h4> Alliances: </h4> <ul> <li>Sales/Marketing</li> <li>Technology</li> </ul> <h4> Strategic alliances: </h4> We are seeking strategic alliances with domestic and foreign <br> companies in the areas of process, industrial and agricultural <br> ventures. <h4> Geographic markets: </h4> <h5> Export experience: </h5> <ul> <li>United States</li> </ul> <h5> Actively pursuing: </h5> <ul> <li>Algeria</li> <li>Brazil</li> <li>Mexico</li> </ul> </section> </details> </div> </div> <div class="row"> <div class="col-md-12 text-right"> Last Update Date 2017-03-02 </div> </div> <!-- - Artifact ID: CBW - IMBS - CCC Search WAR - Group ID: ca.gc.ic.strategis.imbs.ccc.search - Version: 3.26 - Built-By: bamboo - Build Timestamp: 2017-03-02T21:29:28Z --> <!-- End Body Content --> <!-- Begin Body Foot --> <!-- End Body Foot --> <!-- END MAIN TABLE --> <!-- End body --> <!-- Begin footer --> <div class="row pagedetails"> <div class="col-sm-5 col-xs-12 datemod"> <dl id="wb-dtmd"> <dt class=" hidden-print">Date Modified:</dt> <dd class=" hidden-print"> <span><time>2017-03-02</time></span> </dd> </dl> </div> <div class="clear visible-xs"></div> <div class="col-sm-4 col-xs-6"> </div> <div class="col-sm-3 col-xs-6 text-right"> </div> <div class="clear visible-xs"></div> </div> </main> <footer role="contentinfo" id="wb-info"> <nav role="navigation" class="container wb-navcurr"> <h2 class="wb-inv">About government</h2> <!-- EPIC FOOTER BEGIN --> <!-- EPI-11638 Contact us --> <ul class="list-unstyled colcount-sm-2 colcount-md-3"> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&amp;from=Industries">Contact us</a></li> <li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li> <li><a href="https://www.canada.ca/en/government/publicservice.html">Public service and military</a></li> <li><a href="https://www.canada.ca/en/news.html">News</a></li> <li><a href="https://www.canada.ca/en/government/system/laws.html">Treaties, laws and regulations</a></li> <li><a href="https://www.canada.ca/en/transparency/reporting.html">Government-wide reporting</a></li> <li><a href="http://pm.gc.ca/eng">Prime Minister</a></li> <li><a href="https://www.canada.ca/en/government/system.html">How government works</a></li> <li><a href="http://open.canada.ca/en/">Open government</a></li> </ul> </nav> <div class="brand"> <div class="container"> <div class="row"> <nav class="col-md-10 ftr-urlt-lnk"> <h2 class="wb-inv">About this site</h2> <ul> <li><a href="https://www.canada.ca/en/social.html">Social media</a></li> <li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li> <li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html">Terms and conditions</a></li> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li> </ul> </nav> <div class="col-xs-6 visible-sm visible-xs tofpg"> <a href="#wb-cont">Top of Page <span class="glyphicon glyphicon-chevron-up"></span></a> </div> <div class="col-xs-6 col-md-2 text-right"> <object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object> </div> </div> </div> </div> </footer> <!--[if gte IE 9 | !IE ]><!--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script> <!--<![endif]--> <!--[if lt IE 9]> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script> <![endif]--> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script> <!-- EPI-10519 --> <span class="wb-sessto" data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span> <script src="/eic/home.nsf/js/jQuery.externalOpensInNewWindow.js"></script> <!-- EPI-11190 - Webtrends --> <script src="/eic/home.nsf/js/webtrends.js"></script> <script>var endTime = new Date();</script> <noscript> <div><img alt="" id="DCSIMG" width="1" height="1" src="//wt-sdc.ic.gc.ca/dcs6v67hwe0ei7wsv8g9fv50d_3k6i/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=9.4.0&amp;dcssip=www.ic.gc.ca"/></div> </noscript> <!-- /Webtrends --> <!-- JS deps --> <script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script> <!-- EPI-11262 - Util JS --> <script src="/eic/home.nsf/js/_WET_4-0_utils_canada.min.js"></script> <!-- EPI-11383 --> <script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script> <span style="display:none;" id='app-info' data-project-groupid='' data-project-artifactid='' data-project-version='' data-project-build-timestamp='' data-issue-tracking='' data-scm-sha1='' data-scm-sha1-abbrev='' data-scm-branch='' data-scm-commit-date=''></span> </body></html> <!-- End Footer --> <!-- - Artifact ID: CBW - IMBS - CCC Search WAR - Group ID: ca.gc.ic.strategis.imbs.ccc.search - Version: 3.26 - Built-By: bamboo - Build Timestamp: 2017-03-02T21:29:28Z -->
GoC-Spending/data-corporations
html/123456040895.html
HTML
mit
147,599
// // VFParams_Private.h // Verifire // // Created by Sergey P on 24.08.17. // Copyright © 2017 verifire.io. All rights reserved. // #import "VFParams.h" @interface VFParams () @property (strong, nonatomic) NSString *requestId; @end
VeriFire/VerifireKit-ios
VerifireKit/Private/VFParams_Private.h
C
mit
242
module.exports = spawn; var estream = require('event-stream'); var chalk = require('chalk'); var cp = require('child_process'); var path = require('path'); var root = path.resolve(__dirname, '../'); function spawn(cmd, args, opts, cb) { opts = opts || {}; var conf = { stdio: 'pipe' }; var subdir; if (opts.cwd) { conf.cwd = opts.cwd; subdir = path.relative(root, opts.cwd); } console.log(chalk.white.bold((subdir ? subdir + ' ' : '') + '$ ') + cmd + ' ' + args.join(' ')); var proc = cp.spawn(cmd, args, opts); var out = estream.split(); if (opts.verbose) { proc.stdout.pipe(out); } else { proc.stdout.resume(); } proc.stderr.pipe(out); out .pipe(estream.mapSync(function indent(line) { return line ? ' ' + line + '\n' : ''; })) .pipe(process.stdout); if (typeof cb === 'function') { proc.on('exit', cb); } return proc; }
stanxii/ngb
node.js/node_modules/elasticsearch/scripts/_spawn.js
JavaScript
mit
911
using System; using System.Collections.Generic; using SDNUOJ.Entity; using SDNUOJ.Entity.Complex; namespace SDNUOJ.Caching { /// <summary> /// 提交信息缓存类 /// </summary> public static class SolutionCache { #region 提交总数缓存 /// <summary> /// 缓存中存储提交总数的KEY /// </summary> private const String SOLUTION_COUNT_CACHE_KEY = "oj.s.cnt"; /// <summary> /// 缓存时间 /// </summary> private const Int32 SOLUTION_COUNT_CACHE_TIME = 10; /// <summary> /// 向缓存中写入提交总数 /// </summary> /// <param name="cid">竞赛ID</param> /// <param name="count">提交总数</param> public static void SetSolutionCountCache(Int32 cid, Int32 count) { CacheManager.Set(GetSolutionCountCacheKey(cid), count, SOLUTION_COUNT_CACHE_TIME); } /// <summary> /// 从缓存中读取提交总数 /// </summary> /// <param name="cid">竞赛ID</param> /// <returns>提交总数</returns> public static Int32 GetSolutionCountCache(Int32 cid) { return CacheManager.GetInt32(GetSolutionCountCacheKey(cid)); } /// <summary> /// 获取指定竞赛ID的缓存KEY /// </summary> /// <param name="cid">竞赛ID</param> /// <returns>缓存KEY</returns> private static String GetSolutionCountCacheKey(Int32 cid) { if (cid >= 0) { return String.Format("{0}:cid={1}", SOLUTION_COUNT_CACHE_KEY, cid.ToString()); } else { return SOLUTION_COUNT_CACHE_KEY; } } #endregion #region 用户AC代码打包文件 /// <summary> /// 缓存中存储AC代码打包文件的KEY /// </summary> private const String ACCEPTED_CODES_CACHE_KEY = "oj.s.codes"; /// <summary> /// 缓存时间 /// </summary> private const Int32 ACCEPTED_CODES_CACHE_TIME = 600; /// <summary> /// 向缓存中写入AC代码打包文件 /// </summary> /// <param name="userName">用户名</param> /// <param name="file">AC代码打包文件</param> public static void SetAcceptedCodesCache(String userName, Byte[] file) { CacheManager.Set(GetAcceptedCodesKey(userName), file, ACCEPTED_CODES_CACHE_TIME); } /// <summary> /// 从缓存中读取AC代码打包文件 /// </summary> /// <param name="userName">用户名</param> /// <returns>AC代码打包文件</returns> public static Byte[] GetAcceptedCodesCache(String userName) { return CacheManager.Get<Byte[]>(GetAcceptedCodesKey(userName)); } /// <summary> /// 从缓存中删除AC代码打包文件 /// </summary> /// <param name="userName">用户名</param> public static void RemoveAcceptedCodesCache(String userName) { CacheManager.Remove(GetAcceptedCodesKey(userName)); } /// <summary> /// 获取指定用户名缓存KEY /// </summary> /// <param name="userName">用户名</param> /// <returns>缓存KEY</returns> private static String GetAcceptedCodesKey(String userName) { return String.Format("{0}:name={1}", ACCEPTED_CODES_CACHE_KEY, userName); } #endregion #region 用户完成/未完成题目ID列表 /// <summary> /// 缓存中存储题目ID列表的KEY /// </summary> private const String PROBLEMID_LIST_CACHE_KEY = "oj.s.part"; /// <summary> /// 缓存时间 /// </summary> private const Int32 PROBLEMID_LIST_CACHE_TIME = 600; /// <summary> /// 向缓存中写入题目ID列表 /// </summary> /// <param name="userName">用户名</param> /// <param name="isUnsolved">是否非完成列表</param> /// <param name="list">题目ID列表</param> public static void SetProblemIDListCache(String userName, Boolean isUnsolved, List<Int32> list) { CacheManager.Set(GetProblemIDListCacheKey(userName, isUnsolved), list ?? new List<Int32>(), PROBLEMID_LIST_CACHE_TIME); } /// <summary> /// 从缓存中读取题目ID列表 /// </summary> /// <param name="userName">用户名</param> /// <param name="isUnsolved">是否非完成列表</param> /// <returns>题目ID列表</returns> public static List<Int32> GetProblemIDListCache(String userName, Boolean isUnsolved) { return CacheManager.Get<List<Int32>>(GetProblemIDListCacheKey(userName, isUnsolved)); } /// <summary> /// 从缓存中删除题目ID列表 /// </summary> /// <param name="userName">用户名</param> /// <param name="isUnsolved">是否非完成列表</param> public static void RemoveProblemIDListCache(String userName, Boolean isUnsolved) { CacheManager.Remove(GetProblemIDListCacheKey(userName, isUnsolved)); } /// <summary> /// 获取指定用户名和状态缓存KEY /// </summary> /// <param name="userName">用户名</param> /// <param name="isUnsolved">是否非完成列表</param> /// <returns>缓存KEY</returns> private static String GetProblemIDListCacheKey(String userName, Boolean isUnsolved) { return String.Format("{0}:name={1}|{2}", PROBLEMID_LIST_CACHE_KEY, userName, (isUnsolved ? "u" : "s")); } #endregion #region 题目统计信息 /// <summary> /// 缓存中存储题目统计信息的KEY /// </summary> private const String PROBLEMSTATISTIC_CACHE_KEY = "oj.s.st.pb"; /// <summary> /// 缓存时间 /// </summary> private const Int32 PROBLEMSTATISTIC_CACHE_TIME = 10; /// <summary> /// 向缓存中写入题目统计 /// </summary> /// <param name="cid">竞赛ID</param> /// <param name="pid">题目ID</param> /// <returns>题目统计信息实体</returns> public static void SetProblemStatisticCache(Int32 cid, Int32 pid, ProblemStatistic statistic) { CacheManager.Set(GetProblemStatisticCacheKey(cid, pid), statistic, PROBLEMSTATISTIC_CACHE_TIME); } /// <summary> /// 从缓存中读取题目统计 /// </summary> /// <param name="cid">竞赛ID</param> /// <param name="pid">题目ID</param> /// <returns>题目统计信息实体</returns> public static ProblemStatistic GetProblemStatisticCache(Int32 cid, Int32 pid) { return CacheManager.Get<ProblemStatistic>(GetProblemStatisticCacheKey(cid, pid)); } /// <summary> /// 获取题目统计缓存KEY /// </summary> /// <param name="cid">竞赛ID</param> /// <param name="pid">题目ID</param> /// <returns>缓存KEY</returns> private static String GetProblemStatisticCacheKey(Int32 cid, Int32 pid) { return String.Format("{0}:cid={1};pid={2}", PROBLEMSTATISTIC_CACHE_KEY, cid.ToString(), pid.ToString()); } #endregion #region 竞赛题目统计信息 /// <summary> /// 缓存中存储竞赛统计信息的KEY /// </summary> private const String CONTESTSTATISTIC_CACHE_KEY = "oj.s.st.ct"; /// <summary> /// 缓存时间 /// </summary> private const Int32 CONTESTSTATISTIC_CACHE_TIME = 10; /// <summary> /// 向缓存中写入竞赛题目统计列表 /// </summary> /// <param name="cid">竞赛ID</param> /// <returns>竞赛题目统计列表</returns> public static void SetContestStatisticCache(Int32 cid, IDictionary<Int32, ContestProblemStatistic> statistic) { CacheManager.Set(GetContestStatisticCacheKey(cid), statistic, CONTESTSTATISTIC_CACHE_TIME); } /// <summary> /// 从缓存中读取竞赛题目统计列表 /// </summary> /// <param name="cid">竞赛ID</param> /// <returns>竞赛题目统计列表</returns> public static IDictionary<Int32, ContestProblemStatistic> GetContestStatisticCache(Int32 cid) { return CacheManager.Get<IDictionary<Int32, ContestProblemStatistic>>(GetContestStatisticCacheKey(cid)); } /// <summary> /// 获取竞赛题目统计列表缓存KEY /// </summary> /// <param name="cid">竞赛ID</param> /// <returns>缓存KEY</returns> private static String GetContestStatisticCacheKey(Int32 cid) { return String.Format("{0}:cid={1}", CONTESTSTATISTIC_CACHE_KEY, cid.ToString()); } #endregion } }
sdnuacmicpc/sdnuoj
website/SDNUOJ.Caching/SolutionCache.cs
C#
mit
9,425
// // AppDelegate.h // T8SNViewControllerDemo // // Created by 琦张 on 15/7/3. // Copyright (c) 2015年 t8. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
zhangqippp/T8SNViewController
T8SNViewControllerDemo/T8SNViewControllerDemo/AppDelegate.h
C
mit
282
<?php require_once __DIR__ . '/init.php'; require_once dirname(__DIR__) . '/lib/Utils.php'; session_name(md5(TOPICBANK_CONFIG)); session_start();
tistre/TopicBank
include/www_init.php
PHP
mit
149
export PermutationGraph, RandomPermutationGraph export PermutationRepresentation """ `perm_adj(a,b)` is used to test for adajency in permutation graphs. This function is not exported. """ function perm_adj(a::Tuple{S,T}, b::Tuple{S,T}) where {S<:Real,T<:Real} if a[1] < b[1] return a[2] > b[2] end return a[2] < b[2] end """ `PermutationGraph(p::Permutation,q::Permutation)` builds a permutation graph based on the permutations `p` and `q`. The vertex set is `1:n` where `n` is the length of the permutations. """ function PermutationGraph(p::Permutation, q::Permutation) n = length(p) if length(q) != n error("Two permutations must be the same length") end G = IntGraph(n) for u = 1:n-1 for v = u+1:n if perm_adj((p[u], q[u]), (p[v], q[v])) add!(G, u, v) end end end return G end """ `PermutationGraph(p::Permutation)` is equivalent to `PermutationGraph(p,id)` where `id` is the identity permutation. """ function PermutationGraph(p::Permutation) n = length(p) q = Permutation(n) return PermutationGraph(p, q) end """ `PermutationGraph(d::Dict)` creates a permutation graph form a dictionary that maps vertex names to pairs of real numbers. The vertex type of the resulting graph is the key type of `d`. The values in `d` must be all `Tuple{S,T}` where `S` and `T` are subtypes of `Real`. For example, declare `d` like this: `d = Dict{String, Tuple{Int,Int}}()`. """ function PermutationGraph(d::Dict{VV,Tuple{S,T}}) where {VV,S<:Real,T<:Real} vtcs = collect(keys(d)) G = SimpleGraph{VV}() for v in vtcs add!(G, v) end n = length(vtcs) for i = 1:n-1 u = vtcs[i] for j = i+1:n v = vtcs[j] if perm_adj(d[u], d[v]) add!(G, u, v) end end end return G end """ `PermutationGraph(f::Dict,g::Dict)` constructs a permutation graph from a pair of mappings from a vertex set to real values. """ function PermutationGraph(f::Dict{T,R}, g::Dict{T,S}) where {T,R<:Real,S<:Real} # mush the two dictionaries into one h = Dict{T,Tuple{R,S}}() for k in keys(f) h[k] = f[k], g[k] end # invoke previous method G = PermutationGraph(h) cache_save(G, :PermutationRepresentation, (f, g)) cache_save(G, :name, "Permutation graph") return G end """ `RandomPermutationGraph(n)` creates a random permutation graph with `n` vertices. """ function RandomPermutationGraph(n::Int) p = RandomPermutation(n) q = RandomPermutation(n) return PermutationGraph(p, q) end """ `PermutationRepresentation(G)` returns a pair of dictionaries mapping the vertices of `G` to integers. This pair of dictionaries form a permutation representation of `G`. (If `G` is not a permutation graph, an error is thrown. """ function PermutationRepresentation(G::SimpleGraph) if cache_check(G, :PermutationRepresentation) return cache_recall(G, :PermutationRepresentation) end A = SimpleDigraph() try A = transitive_orientation(complement(G)) catch error("This graph does not have a permutation representation") end G1 = deepcopy(A) G2 = transitive_orientation(G) for e in elist(G2) add!(G1, e[1], e[2]) end T = eltype(G) sigma = Dict{T,Int}() tau = Dict{T,Int}() vs1 = sort(vlist(G1), by = v -> out_deg(G1, v), rev = true) i = 1 for v in vs1 sigma[v] = i i = i + 1 end G3 = deepcopy(A) for e in elist(G2) add!(G3, e[2], e[1]) end vs2 = sort(vlist(G3), by = v -> out_deg(G3, v), rev = true) j = 1 for v in vs2 tau[v] = j j = j + 1 end cache_save(G, :PermutationRepresentation, (sigma, tau)) return sigma, tau end
scheinerman/SimpleGraphRepresentations.jl
src/PermutationGraphs.jl
Julia
mit
3,840
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("StudentClass")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("StudentClass")] [assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("2011afaf-22ee-4fe2-94a3-ac722ddb0afd")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
Maskln/CSharp-OOP
06.CommonTypeSystem/StudentClass/Properties/AssemblyInfo.cs
C#
mit
1,400
ASP-AJAX-Guestbook ================== A guestbook based on Classic ASP (VB) and JavaScript/AJAX. Do please note that this script was written back in 2007 and has been uploaded to Github "as is". It's fully working, but I'm sure, in need of some work. ## Installation 1. Download this repo as a .zip 2. Unpack at your localhost / host, runs from both root and subdirectories "out of the box" 3. Either use the AccessDB that comes with the script, or create a MySQL-db for example and update the PATH 4. All done ### Bugs and issues As stated above, this script has been uploaded since it might will be usefull for someone still working with Classic ASP 3.0. However developement has been discontinued since 2007 (lol) and I will only respond to security-threat issue reports. #### Furhter notes Installation notes and guide in swedish comes in a .txt
rr222cy/ASP-AJAX-Guestbook
README.md
Markdown
mit
857
#import <UIKit/UIKit.h> FOUNDATION_EXPORT double Pods_FootballCollegeTriviaUITestsVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_FootballCollegeTriviaUITestsVersionString[];
steveholt55/Football-College-Trivia-iOS
Pods/Target Support Files/Pods-FootballCollegeTriviaUITests/Pods-FootballCollegeTriviaUITests-umbrella.h
C
mit
188
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <meta charset="utf-8"> <base href="https://wordbit.com"> <title> Going email free </title> <link rel="canonical" href="https://wordbit.com/posts/going-email-free/"> <link rel="stylesheet" href="/css/poole.css"> <link rel="stylesheet" href="/css/lanyon.css"> <link rel="stylesheet" href="/css/custom.css"> </head> <body class="theme-base-08"> <input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html"> <div class="sidebar" id="sidebar"> <nav class="sidebar-nav"> <a class="sidebar-nav-item" href="/">Home</a> <a class="sidebar-nav-item" href="/posts">All Blog Posts</a> <a class="sidebar-nav-item" href="/pages/status">Status Updates</a> <a class="sidebar-nav-item" href="/pages/about">About</a> </nav> <div class="sidebar-item"> <p> &copy; 2021. All rights reserved. </p> </div> </div> <div class="wrap"> <div class="masthead"> <div class="container"> <h3 class="masthead-title"> <a href="/" title="Home">wordbit</a> </h3> </div> </div> <div class="container content"> <h1 class="post-title">Going email free</h1> <section id="main"> <h5 id="date"> Thu Jan 5, 2012 </h5> <p><img align="left" src="/images/tumblr_lxaw2bcC071qfn08u.jpg"></p> <p>Resolution #27: Sort through the 250 unread emails in my inbox.</p> <p>That dreaded resolution sound familiar? How about taking it one step further and eliminating email altogether? A few weeks ago the IT firm <a href="http://atos.net/en-us/">Atos</a> made waves when they revealed they were phasing out internal emails in favour of other networking tools. That got me thinking that email is dying a slow death for personal use as well.</p> <p>Email was invented in 1972 and has had a good run, but it&rsquo;s time to move on. Let&rsquo;s take a look at the facts:</p> <ol> <li><p>Texting and IM has become more of the norm.</p></li> <li><p>Networks like Facebook, Twitter, and LinkedIn allow you to stay in touch with friends and colleagues.</p></li> <li><p>Email newsletters are dying in the face of highly personalized reading tools like Google Reader, Flipboard, and Instapaper.</p></li> <li><p>Free organizational tools like Evernote allows you to create tagged notes and task-oriented lists. No need to email yourself anymore.</p></li> <li><p>Web browsers like Firefox can be synced so that all your bookmarks, history, etc. is available on any computer.</p></li> <li><p>Smartphones offer instant notifications from all of the above and has become the communication nexus for most people (no pun intended).</p></li> <li><p>Official organizations like your bank or the government won&rsquo;t even touch email because of security issues. Yep, still a fax or phone call for these guys.</p></li> </ol> <p>That leaves email as nothing more than a digital garbage can for junk mail. And who wants to waste their precious time being an online janitor? Not many. So forgive your grand-kids for laughing at this quaint &ldquo;email&rdquo; you tell them about - it&rsquo;s just so 70s, man.</p> </section> </div> </div> <label for="sidebar-checkbox" class="sidebar-toggle"></label> <div class="container"> <hr /> <span class="left"> &nbsp; <em>&laquo; Previous:</em> <a class="next" href="https://wordbit.com/posts/bollywood-comes-to-netflix-canada/">Bollywood comes to Netflix Canada</a> </span> <span class="right"> <em>Next: </em><a class="next" href="https://wordbit.com/posts/happy-new-year-everybody-this-is-the-year-of-the/"> &nbsp; Year of the Dragon</a> &raquo; </span> <br> </div> <br /> <div class="container content"> <footer> <div> </div> </footer> </div> </body> </html>
wordbit/wordbit
public/posts/going-email-free/index.html
HTML
mit
3,969
CREATE TABLE `sessions` ( `id` CHAR(64) NOT NULL, `session_data` TEXT DEFAULT NULL, `created_at` INT(10) UNSIGNED NOT NULL, `remember_me` TINYINT(1) UNSIGNED DEFAULT 0, PRIMARY KEY (`id`), INDEX `garbage_collection_index` (`remember_me`, `created_at`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4
pskuza/php_session
tests/mysql.sql
SQL
mit
365
/** * Contains the necessary structs and functions to deal with linear algebra. * * In particular, this is where we find our vectors and matrices structures * and functions. */ /** * @file algebra.h * @author Jeremy Attali, Johan Attali * @date August 14, 2013 */ #pragma once #ifndef PI #define PI 3.14159265359f #endif #define DEG_TO_RAD PI / 180.0f #define RAD_TO_DEG 90.0f / PI typedef struct vec2_t { float x; float y; } vec2_t; typedef struct vec3_t { float x; float y; float z; } vec3_t; typedef struct vec4_t { float x; float y; float z; float w; } vec4_t; typedef struct mat2_t { vec2_t m[2]; } mat2_t; typedef struct mat3_t { vec3_t m[3]; } mat3_t; typedef struct mat4_t { vec4_t m[4]; } mat4_t; /** * Linear 2D vector animation. */ typedef struct lin_vec2_anim_t { /** * How many steps are required in the animation. */ unsigned int steps; /** * The current step we are in. */ unsigned int step; /** * The initial starting position of the animation. */ vec2_t from; /** * The final position of the animation. */ vec2_t to; /** * The offset we need to add to current position on each update. */ vec2_t offset; } lin_vec2_anim_t; /** * Adds two vectors. */ vec2_t vec2_add(const vec2_t a, const vec2_t b); /** * Substracts two vectors. */ vec2_t vec2_sub(const vec2_t a, const vec2_t b); /** * Computes the norm of a 2D vector. */ float vec2_norm(const vec2_t a); /** * Normalizes a vector. */ vec2_t vec2_normalize(const vec2_t a); /** * Multiplies a vector by a scalar. */ vec2_t vec2_mul_scal(const vec2_t a, const float s); /** * Loads an 4x4 Identity matrix. * * @return The identity matrix. */ mat4_t mat4_identity(void); /** * Creates an orthographic matrix. */ mat4_t mat4_ortho(const float left, const float right, const float bottom, const float top, const float near, const float far); /** * Mutliplies a 4x4 matrix by a 2x2 vector to produce a translation matrix * based on vector #v. * * The 2x2 vector is actually augmented into a 3x3 vector with z = 0. * * @param m The source matrix. * @param v The translation vector. * @return The translation matrix. */ mat4_t mat4_translate_vec2(const mat4_t* m, const vec2_t* v); /** * Mutliplies a 4x4 matrix by a 3x3 vector to produce a translation matrix * based on vector #v. * * @param m The source matrix. * @param v The translation vector. * @return The translation matrix. */ mat4_t mat4_translate_vec3(const mat4_t* m, const vec3_t* v); /** * Scales a matrix according to a float that will be applied to the vectors of * the matrices (same scaling in every coordinate). * * @param m The source matrix. * @param s The scaling * @return The scaling matrix. */ mat4_t mat4_scale_1f(const mat4_t* m, const float s); /** * Creates a linear animation based on 2D vectors. * * TODO Get rid of elapsed in this function. * * @param from The initial position of the object. * @param to The destination of the object. * @param speed The speed at which the object is travelling. * @param elapsed The time elapsed since last frame. This is BAD! It should be * computed by the animation manager itself probably. To check with Jo. * @return A linear animation object return from the stack. */ lin_vec2_anim_t lin_vec2_anim_create(vec2_t from, vec2_t to, float speed, float elapsed);
jtheoof/bina
src/algebra.h
C
mit
3,542
/** * FILENAME: ScrollingAnchor.js * AUTHOR: Isaac Streight * START DATE: May 31th, 2018 * * This file contains the ScrollingAnchor class, a specialization class for anchor tags * in the application. */ import React from 'react'; import PropTypes from 'prop-types'; import Anchor from 'utils/Anchor'; import FnScroll from 'functions/FnScroll'; class ScrollingAnchor extends React.Component { constructor(props) { super(props); this.state = { ...props }; } static getDerivedStateFromProps(nextProps) { return nextProps; } handleClick() { var target = "dynamic" + this.node.innerHTML; if (target.includes("eggbeatr")) { target = "dynamicHeader"; } FnScroll.scroll(document.getElementById(target)); } render() { return ( <Anchor data={ this.state.data } handleClick={ this.handleClick } styleClass={ this.state.styleClass } /> );   } } ScrollingAnchor.defaultProps = { styleClass: "pure-menu-link" } ScrollingAnchor.propTypes = { data: PropTypes.oneOfType([ PropTypes.string, PropTypes.array ]), styleClass: PropTypes.string } export default ScrollingAnchor;
istreight/eggbeatr
src/app/src/assets/specializations/ScrollingAnchor.js
JavaScript
mit
1,305
<?php namespace Fixtures\Bundles\XmlBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class XmlBundle extends Bundle { }
gencer/DoctrineBundle
Tests/DependencyInjection/Fixtures/Bundles/XmlBundle/XmlBundle.php
PHP
mit
131
using System; using System.Runtime.InteropServices; namespace SqlNotebookScript.Core.SqliteInterop; [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Ansi, Size = 12)] internal class Sqlite3VtabCursor { // --- The prefix of this struct must match sqlite3_vtab_cursor // sizeof(sqlite3_vtab_cursor): 8 // sqlite3_vtab.pVtab: offset 0, size 8 [FieldOffset(0)] public IntPtr pVtab; // --- The suffix is up to us [FieldOffset(8)] public int MetadataKey; }
electroly/sqlnotebook
src/SqlNotebookScript/Core/SqliteInterop/Sqlite3VtabCursor.cs
C#
mit
487
import { OHIF } from 'meteor/ohif:core'; Settings = Object.assign({ uri : OHIF.utils.absoluteUrl("/__wado_proxy"), enabled: true }, (Meteor.settings && Meteor.settings.proxy) ? Meteor.settings.proxy : {}); http = require("http"); url = require("url"); querystring = require("querystring");
NucleusIo/HealthGenesis
viewerApp/Packages/ohif-wadoproxy/server/initialize.js
JavaScript
mit
310
package cluster import ( "context" "fmt" "github.com/akaspin/logx" "github.com/akaspin/soil/agent/bus" "io" "net/url" "time" ) const ( backendLocal = "local" backendConsul = "consul" ) type BackendConfig struct { Kind string ID string Address string Chroot string TTL time.Duration } type WatchRequest struct { Key string Ctx context.Context } type WatchResult struct { Key string Data map[string][]byte } type Backend interface { io.Closer Ctx() context.Context // Backend context closes on backend is not available to accept operations FailCtx() context.Context // Fail context closes then backend is failed ReadyCtx() context.Context // Ready context closes then backend is ready to accept operations Submit(ops []StoreOp) // Submit ops to backend Subscribe(req []WatchRequest) CommitChan() chan []StoreCommit WatchResultsChan() chan WatchResult Leave() // Leave cluster } type BackendFactory func(ctx context.Context, log *logx.Log, config Config) (c Backend, err error) func DefaultBackendFactory(ctx context.Context, log *logx.Log, config Config) (c Backend, err error) { kvConfig := BackendConfig{ Kind: "local", Chroot: "soil", ID: config.NodeID, Address: "localhost", TTL: config.TTL, } u, err := url.Parse(config.BackendURL) if err != nil { log.Error(err) } if err == nil { kvConfig.Kind = u.Scheme kvConfig.Address = u.Host kvConfig.Chroot = NormalizeKey(u.Path) } kvLog := log.GetLog("cluster", "backend", config.BackendURL, config.NodeID) if kvConfig.ID == "" { err = fmt.Errorf(`empty node id`) return } switch kvConfig.Kind { case backendConsul: c = NewConsulBackend(ctx, kvLog, kvConfig) default: c = NewZeroBackend(ctx, kvLog) } return } type StoreOp struct { Message bus.Message WithTTL bool } type StoreCommit struct { ID string Hash uint64 WithTTL bool }
akaspin/soil
agent/cluster/backend.go
GO
mit
1,906
using System.Drawing; using System.Windows.Forms; namespace MowChat { sealed partial class ChatControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Component Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.chatText = new MetroFramework.Controls.MetroTextBox(); this.sendButton = new MetroFramework.Controls.MetroButton(); this.messagesContainer = new RichTextBox(); this.SuspendLayout(); // // chatText // this.chatText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chatText.Location = new System.Drawing.Point(3, 306); this.chatText.Name = "chatText"; this.chatText.Size = new System.Drawing.Size(380, 23); this.chatText.Style = MetroFramework.MetroColorStyle.Blue; this.chatText.TabIndex = 1; this.chatText.Theme = MetroFramework.MetroThemeStyle.Light; // // sendButton // this.sendButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.sendButton.Location = new System.Drawing.Point(389, 306); this.sendButton.Name = "sendButton"; this.sendButton.Size = new System.Drawing.Size(126, 23); this.sendButton.Style = MetroFramework.MetroColorStyle.Blue; this.sendButton.TabIndex = 2; this.sendButton.Text = "Send"; this.sendButton.Theme = MetroFramework.MetroThemeStyle.Light; // // messagesContainer // this.messagesContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.messagesContainer.Location = new System.Drawing.Point(3, 3); this.messagesContainer.Multiline = true; this.messagesContainer.Name = "messagesContainer"; this.messagesContainer.ReadOnly = true; this.messagesContainer.ScrollBars = RichTextBoxScrollBars.Vertical; this.messagesContainer.Size = new System.Drawing.Size(512, 297); this.messagesContainer.Font = new Font("Calibri", 11f); //this.messagesContainer.Style = MetroFramework.MetroColorStyle.Blue; this.messagesContainer.TabIndex = 3; //this.messagesContainer.Theme = MetroFramework.MetroThemeStyle.Light; // // ChatControl // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.messagesContainer); this.Controls.Add(this.sendButton); this.Controls.Add(this.chatText); this.Name = "ChatControl"; this.Size = new System.Drawing.Size(518, 332); this.ResumeLayout(false); } #endregion private MetroFramework.Controls.MetroTextBox chatText; private MetroFramework.Controls.MetroButton sendButton; //private MetroFramework.Controls.MetroTextBox messagesContainer; private RichTextBox messagesContainer; } }
MaartenStaa/mow-chat
ChatControl.Designer.cs
C#
mit
4,112
<!-- Footer --> <footer> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <ul class="list-inline text-center"> <li> <a href="{{ "/feed.xml" | prepend: site.baseurl }}"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-rss fa-stack-1x fa-inverse"></i> </span> </a> </li> {% if site.twitter_username %} <li> <a href="https://twitter.com/{{ site.twitter_username }}"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-twitter fa-stack-1x fa-inverse"></i> </span> </a> </li> {% endif %} {% if site.facebook_username %} <li> <a href="https://www.facebook.com/{{ site.facebook_username }}"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-facebook fa-stack-1x fa-inverse"></i> </span> </a> </li> {% endif %} {% if site.github_username %} <li> <a href="https://github.com/{{ site.github_username }}"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-github fa-stack-1x fa-inverse"></i> </span> </a> </li> {% endif %} {% if site.email_username %} <li> <a href="mailto:{{ site.email_username }}"> <span class="fa-stack fa-lg"> <i class="fa fa-circle fa-stack-2x"></i> <i class="fa fa-envelope fa-stack-1x fa-inverse"></i> </span> </a> </li> {% endif %} </ul> <p class="copyright text-muted">Copyright &copy; {{ site.time | date: '%Y' }}. {{ site.copyright_name }}</p> </div> </div> </div> </footer> <!-- jQuery --> <script src="{{ "/js/jquery.min.js " | prepend: site.baseurl }}"></script> <!-- Bootstrap Core JavaScript --> <script src="{{ "/js/bootstrap.min.js " | prepend: site.baseurl }}"></script> <!-- Custom Theme JavaScript --> <script src="{{ "/js/clean-blog.min.js " | prepend: site.baseurl }}"></script>
lukmannulhakim/lukmannulhakim.github.io
_includes/footer.html
HTML
mit
3,115
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace Taitans.Owin.Security.QQ.FrameworkExample.Controllers { public class HomeController : Controller { public ActionResult Index() { return View(); } public ActionResult About() { ViewBag.Message = "Your application description page."; return View(); } public ActionResult Contact() { ViewBag.Message = "Your contact page."; return View(); } } }
taitans/Security
samples/Taitans.Owin.Security.QQ.FrameworkExample/Controllers/HomeController.cs
C#
mit
610
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("13.ReverseSentence")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("13.ReverseSentence")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("cdc9777d-b19c-4b4f-8850-b9a988eca0e9")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
VVoev/Telerik-Academy
03.C#Advanced/06.StringsAndTextProcessing/13.ReverseSentence/Properties/AssemblyInfo.cs
C#
mit
1,412
.navBar { overflow: hidden; background-color: #333; position: fixed; top: 0; width: 100%; z-index:2; } .navBar a { float: left; display: block; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; } .navBar a:hover { background-color: #ddd; color: black; } .navBar .icon { display: none; } @media screen and (max-width: 600px) { .navBar a:not(:first-child) { display: none; } .navBar a.icon { float: right; display: block; } } @media screen and (max-width: 600px) { .navBar.responsive { position: relative; } .navBar.responsive .icon { position: absolute; right: 0; top: 0; } .navBar.responsive a { float: none; display: block; text-align: left; } } .footer{ background-color:black; font-size: 1.4em; height: 75px; line-height:75px; } .paddingTop{ padding-top:2%; padding-bottom:2%; } #githubicon{ color: rgb(102,43,129); } #facebookicon{ color: rgb(59,89,163); } #linkedinicon{ color: rgb(0,127,178); } .block{ background-color: none; opacity: 7; width: : 50%; margin-left: auto; margin-right: auto; } body{ background-color:white; font-family: lobster; min-height: 100vh; } #container{ flex:1; } h1{ padding-top: 0px; margin-top: 0px; font-size: 4.0em; color: #C0392B; } h3{ color: #17202A; } .btn-default{ background-color: black; border-color: black; color: #D7DBDD; size: 1.4em; } .home{ background-image: url(IMG/home.jpeg); background-size: cover; padding-bottom:40%; background-repeat: no-repeat; padding-top:10%; } .about{ background-color: #554E4C; padding-top: 10%; padding-bottom: 10%; } section{ background-size: cover; padding-top: 25%; padding-bottom:28px; background-repeat: no-repeat; } p{ margin: 0px; font-size: 1.4em; color: #E5E7E9; padding-right: 4%; padding-left: 4%; } .contact p{ font-size: 1.4em; } .portfolio{ background-image: url(IMG/portfolio.jpeg); padding-top: 5%; padding-bottom: 5%; } .contact{ background-image: url(IMG/contact.jpeg); padding-top: 5%; padding-bottom: 5%; } .form{ color: black; font-size: 1.4em; display: block; } #gallery{ display: flex; justify-content: center; } .gallery { width: 175px; } .gallery:hover { border: 1px solid #777; } .gallery img { width: 100%; height: 125px; } .desc p { padding: 15px; text-align: center; display: inline-block; width: 100%; height: 100px; color: #000000; background-color: #C0392B; } @keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } } .fadeInRight { animation-name: fadeInRight; }
camposjp/camposjp.github.io
CSS/portfolio.css
CSS
mit
2,755
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="ztable"><tr><th class="ztd1"><b>成語&nbsp;</b></th><td class="ztd2">洗心革志</td></tr> <tr><th class="ztd1"><b>注音&nbsp;</b></th><td class="ztd2">ㄒ|<sup class="subfont">ˇ</sup> ㄒ|ㄣ ㄍㄜ<sup class="subfont">ˊ</sup> ㄓ<sup class="subfont">ˋ</sup></td></tr> <tr><th class="ztd1"><b>漢語拼音&nbsp;</b></th><td class="ztd2"><font class="english_word">xǐ xīn gé zhì</font></td></tr> <tr><th class="ztd1"><b>釋義&nbsp;</b></th><td class="ztd2"> 義參「<a href="/cgi-bin/cydic/gsweb.cgi?o=dcydic&schfmt=text&gourl=%3De0%26sec%3Dsec1%26op%3Dsid%3D%22CW0000000880%22.%26v%3D-1" class="clink" target=_blank>洗心革面</a>」。見「<a href="/cgi-bin/cydic/gsweb.cgi?o=dcydic&schfmt=text&gourl=%3De0%26sec%3Dsec1%26op%3Dsid%3D%22CW0000000880%22.%26v%3D-1" class="clink" target=_blank>洗心革面</a>」條。</font></td></tr> <tr><th class="ztd1"><b><style>.tableoutfmt2 .std1{width:3%;}</style></b></th><td class="ztd2"><table class="fmt16_table"><tr><td width=150 style="text-align:left;" class="fmt16_td1" ><b>參考詞語︰</b></td><td width=150 style="text-align:left;" class="fmt16_td2" ><a href="/cgi-bin/cydic/gsweb.cgi?o=dcydic&schfmt=text&gourl=%3De0%26sec%3Dsec1%26op%3Dsid%3D%22CW0000000880%22.%26v%3D-1" class="clink" target=_blank>洗心革面</a></td></tr><tr><td width=150 style="text-align:left;" class="fmt16_td1" ><b>注音︰</b></td><td width=150 style="text-align:left;" class="fmt16_td2" >ㄒ|<sup class="subfont">ˇ</sup> ㄒ|ㄣ ㄍㄜ<sup class="subfont">ˊ</sup> ㄇ|ㄢ<sup class="subfont">ˋ</sup></td></tr><tr><td width=150 style="text-align:left;" class="fmt16_td1" ><b>漢語拼音︰</b></td><td width=150 style="text-align:left;" class="fmt16_td2" ><font class="english_word">xǐ xīn gé miàn</font></td></tr></table><br><br></td></tr> </td></tr></table></div> <!-- layoutclass_first_pic --><div class="layoutclass_second_pic"></div> <!-- layoutclass_second_pic --></div> <!-- layoutclass_pic --></td></tr></table>
BuzzAcademy/idioms-moe-unformatted-data
all-data/2000-2999/2264-34.html
HTML
mit
2,287
<?php App::uses('AppModel', 'Model'); /** * Skill Model * * @property User $User * @property Event $Event */ class Skill extends AppModel { /** General Model Behavior and Setup */ public $primaryKey = 'skill_id'; public $displayField = 'skill'; /* skill not empty, not null */ public $validate = array( 'skill' => array( 'notEmpty' => array( 'rule' => 'notEmpty', 'message' => 'You must enter a skill.' ), 'unique' => array( 'rule' => 'isUnique', 'message' => 'This skill already exists.' ) ) ); /** Associations */ public $hasAndBelongsToMany = array( 'User' => array( 'className' => 'User', 'joinTable' => 'skills_users', 'foreignKey' => 'skill_id', 'associationForeignKey' => 'user_id' ), 'Event' => array( 'className' => 'Event', 'joinTable' => 'events_skills', 'foreignKey' => 'skill_id', 'associationForeignKey' => 'event_id' ) ); }
uwacwy/servicespark
app/Model/Skill.php
PHP
mit
927
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>jQuery contextMenu</title> <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://swisnl.github.io/jQuery-contextMenu/css/screen.css" type="text/css"/> <link rel="stylesheet" href="https://swisnl.github.io/jQuery-contextMenu/css/theme.css" type="text/css"/> <link rel="stylesheet" href="https://swisnl.github.io/jQuery-contextMenu/css/theme-fixes.css" type="text/css"/> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/github.min.css"> <link href="../../../dist/jquery.contextMenu.css" rel="stylesheet" type="text/css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="../../../src/jquery.contextMenu.js" type="text/javascript"></script> <script src="../../../dist/jquery.ui.position.min.js" type="text/javascript"></script> <script src="https://swisnl.github.io/jQuery-contextMenu/js/main.js" type="text/javascript"></script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-66438984-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-nav-search"> <a href="https://swisnl.github.io/jQuery-contextMenu/"> jQuery contextMenu</a> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul> <li class="toctree-l1 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu//"> Introduction </a> <ul> <li class="toctree-l2 "> <a class="reference internal " href="https://www.swis.nl/over-ons/bjorn-brala"> Author </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo.html"> Demo </a> </li> </ul> </li> <li class="toctree-l1 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs.html"> Documentation </a> <ul> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs.html"> Options </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs/items.html"> Defining menu items </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs/plugin-commands.html"> Plugin commands </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs/customize.html"> Customize icons </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/fontawesome-icons.html"> FontAwesome icons </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs/font-awesome.html"> Font Awesome support </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs/runtime-options.html"> Runtime options </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs/custom-command-types.html"> Custom command types </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs/events.html"> Events </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/docs/html5-polyfill.html"> HTML5 polyfill </a> </li> </ul> </li> <li class="toctree-l1 current"> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo.html"> Demo gallery </a> <ul> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo.html"> Simple Context Menu </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/fontawesome-icons.html"> FontAwesome icons </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/accesskeys.html"> Accesskeys </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/async-create.html"> Create Context Menu (asynchronous) </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/callback.html"> Command's action (callbacks) </a> </li> <li class="toctree-l2 current"> <a class="reference internal current" href="https://swisnl.github.io/jQuery-contextMenu/demo/custom-command.html"> Custom Command Types </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/disabled.html"> Disabled Command </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/disabled-callback.html"> Disabled Callback Command </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/disabled-changing.html"> Changing Command's disabled status </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/disabled-menu.html"> Disabled Menu </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/dynamic.html"> Adding new Context Menu Triggers </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/dynamic-create.html"> Create Context Menu on demand </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/html5-import.html"> Importing HTML5 menu </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/html5-polyfill.html"> HTML5 polyfill </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/html5-polyfill-firefox8.html"> HTML5 polyfill (Firefox) </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/input.html"> Input Commands </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/keeping-contextmenu-open.html"> Keeping the context menu open </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/menu-title.html"> Menus with titles </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/on-dom-element.html"> Context Menu on DOM Element </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/sub-menus.html"> Submenus </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/trigger-custom.html"> Custom Activated Context Menu </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/trigger-hover.html"> Hover Activated Context Menu </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/trigger-hover-autohide.html"> Hover Activated Context Menu With Autohide </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/trigger-left-click.html"> Left-Click Trigger </a> </li> <li class="toctree-l2 "> <a class="reference internal " href="https://swisnl.github.io/jQuery-contextMenu/demo/trigger-swipe.html"> Swipe Trigger </a> </li> </ul> </li> </ul> <div class="swis-branding"> <span>Maintained by:</span> <a href="https://www.swis.nl"><img src="https://swisnl.github.io/jQuery-contextMenu/images/swis-logo.jpg" class="swis-logo">Creative Digital Agency</a> </div> </div> &nbsp; </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="https://swisnl.github.io/jQuery-contextMenu/">jQuery contextMenu</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="main" class="document"> <a href="https://github.com/swisnl/jQuery-contextMenu" class="edit-on-github fa fa-github"> Fork on GitHub</a> <h1 id="demo-custom-command">Demo: Custom command</h1> <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <ul> <li><a href="#example-code">Example code</a></li> <li><a href="#example-html">Example HTML</a></li> </ul> <!-- END doctoc generated TOC please keep comment here to allow auto update --> <p><span class="context-menu-one btn btn-neutral">right click me</span></p> <h2 id="example-code">Example code</h2> <script type="text/javascript" class="showcase"> $(function(){ /************************************************** * Custom Command Handler **************************************************/ $.contextMenu.types.label = function(item, opt, root) { // this === item.$node $('<span>Label<ul>' + '<li class="label1" title="label 1">label 1' + '<li class="label2" title="label 2">label 2' + '<li class="label3" title="label 3">label 3' + '<li class="label4" title="label 4">label 4') .appendTo(this) .on('click', 'li', function() { // do some funky stuff console.log('Clicked on ' + $(this).text()); // hide the menu root.$menu.trigger('contextmenu:hide'); }); this.addClass('labels').on('contextmenu:focus', function(e) { // setup some awesome stuff }).on('contextmenu:blur', function(e) { // tear down whatever you did }).on('keydown', function(e) { // some funky key handling, maybe? }); }; /************************************************** * Context-Menu with custom command "label" **************************************************/ $.contextMenu({ selector: '.context-menu-one', callback: function(key, options) { var m = "clicked: " + key; window.console && console.log(m) || alert(m); }, items: { open: {name: "Open", callback: $.noop}, label: {type: "label", customName: "Label"}, edit: {name: "Edit", callback: $.noop} } }); }); </script> <h2 id="example-html">Example HTML</h2> <div style="display:none;" class="showcase" data-showcase-import=".context-menu-one"></div> <style type="text/css" class="showcase"> .labels > ul { margin: 0; padding: 0; list-style: none; display: block; float: none; } .labels > ul > li { display: inline-block; width: 20px; height: 20px; border: 1px solid #CCC; overflow: hidden; text-indent: -2000px; } .labels > ul > li.selected, .labels > ul > li:hover { border: 1px solid #000; } .labels > ul > li + li { margin-left: 5px; } .labels > ul > li.label1 { background: red; } .labels > ul > li.label2 { background: green; } .labels > ul > li.label3 { background: blue; } .labels > ul > li.label4 { background: yellow; } </style> </div> <footer> <hr/> <div role="contentinfo"> <p> Find jQuery contextMenu on <a href="https://github.com/swisnl/jQuery-contextMenu">GitHub</a>. </p> </div> </footer> </div> </div> </section> </div> <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script> <script src="https://swisnl.github.io/jQuery-contextMenu/js/theme.js"></script> <script> $(function() { hljs.configure({ tabReplace: ' ', // 4 spaces }); hljs.initHighlightingOnLoad(); }); </script> </body> </html>
rahmat1996/wise
assets/contextmenu/test/integration/html/custom-command.html
HTML
mit
25,017
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>SFML - Simple and Fast Multimedia Library</title> <meta http-equiv="Content-Type" content="text/html;"/> <meta charset="utf-8"/> <!--<link rel='stylesheet' type='text/css' href="http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>--> <link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> </head> <body> <div id="banner-container"> <div id="banner"> <span id="sfml">SFML 2.3.0</span> </div> </div> <div id="content"> <!-- Generated by Doxygen 1.8.9.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>sf</b></li><li class="navelem"><a class="el" href="classsf_1_1Packet.html">Packet</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">sf::Packet Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>, including all inherited members.</p> <table class="directory"> <tr class="even"><td class="entry"><a class="el" href="classsf_1_1Packet.html#a7dd6e429b87520008326c4d71f1cf011">append</a>(const void *data, std::size_t sizeInBytes)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classsf_1_1Packet.html#a133ea8b8fe6e93c230f0d79f19a3bf0d">clear</a>()</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classsf_1_1Packet.html#aee3adfca6303f1e6bde3c62be392b945">endOfPacket</a>() const </td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classsf_1_1Packet.html#a304ba9ec94c992710f4dfff879c6340e">getData</a>() const </td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classsf_1_1Packet.html#a004b62aa5bafa69df8917171a3fe1fa0">getDataSize</a>() const </td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classsf_1_1Packet.html#ab71a31ef0f1d5d856de6f9fc75434128">onReceive</a>(const void *data, std::size_t size)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">virtual</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classsf_1_1Packet.html#a052e955906c9bfd671622cb625380edc">onSend</a>(std::size_t &amp;size)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">virtual</span></td></tr> <tr><td class="entry"><a class="el" href="classsf_1_1Packet.html#addcb990cde37859c748273d9de55e628">operator BoolType</a>() const </td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classsf_1_1Packet.html#aa5a465ed02ba29d83ecdafb0ac3fff21">operator&lt;&lt;</a>(bool data)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&lt;&lt;</b>(Int8 data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&lt;&lt;</b>(Uint8 data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&lt;&lt;</b>(Int16 data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&lt;&lt;</b>(Uint16 data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&lt;&lt;</b>(Int32 data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&lt;&lt;</b>(Uint32 data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&lt;&lt;</b>(Int64 data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&lt;&lt;</b>(Uint64 data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&lt;&lt;</b>(float data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&lt;&lt;</b>(double data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&lt;&lt;</b>(const char *data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&lt;&lt;</b>(const std::string &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&lt;&lt;</b>(const wchar_t *data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&lt;&lt;</b>(const std::wstring &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&lt;&lt;</b>(const String &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classsf_1_1Packet.html#af8e26c63ba9bdccd262565ff0d3eeba2">operator&gt;&gt;</a>(bool &amp;data)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&gt;&gt;</b>(Int8 &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&gt;&gt;</b>(Uint8 &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&gt;&gt;</b>(Int16 &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&gt;&gt;</b>(Uint16 &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&gt;&gt;</b>(Int32 &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&gt;&gt;</b>(Uint32 &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&gt;&gt;</b>(Int64 &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&gt;&gt;</b>(Uint64 &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&gt;&gt;</b>(float &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&gt;&gt;</b>(double &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&gt;&gt;</b>(char *data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&gt;&gt;</b>(std::string &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&gt;&gt;</b>(wchar_t *data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>operator&gt;&gt;</b>(std::wstring &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>operator&gt;&gt;</b>(String &amp;data) (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classsf_1_1Packet.html#a786e5d4ced83992ceefa1799963ea858">Packet</a>()</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>TcpSocket</b> (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"><span class="mlabel">friend</span></td></tr> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>UdpSocket</b> (defined in <a class="el" href="classsf_1_1Packet.html">sf::Packet</a>)</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"><span class="mlabel">friend</span></td></tr> <tr><td class="entry"><a class="el" href="classsf_1_1Packet.html#adc0490ca3c7c3d1e321bd742e5213913">~Packet</a>()</td><td class="entry"><a class="el" href="classsf_1_1Packet.html">sf::Packet</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr> </table></div><!-- contents --> </div> <div id="footer-container"> <div id="footer"> SFML is licensed under the terms and conditions of the <a href="http://www.sfml-dev.org/license.php">zlib/png license</a>.<br> Copyright &copy; Laurent Gomila &nbsp;::&nbsp; Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> &nbsp;::&nbsp; </div> </div> </body> </html>
ElHolzi/WoodEngine
Thirdparty/SFML-2.3/share/SFML/doc/html/classsf_1_1Packet-members.html
HTML
mit
14,782
import time import csv import serial from TwitterAPI import TwitterAPI # [angry, happy, sad] emotion = [0,0,0] # [R,G,B] colour = [0,0,0] # number of times colour has been logged count = 0 # delay between each log delay = 5 # sets timer timeout = time.time() + delay #Boolean value for if Arduino is connected connected = False #Serial connection setup ser = serial.Serial("<insert serial port here>", 9600) # Twitter API setup TRACK_TERM = ':@, :/, :), :(' # KEEP SECRET CONSUMER_KEY = '' CONSUMER_SECRET = '' ACCESS_TOKEN_KEY = '' ACCESS_TOKEN_SECRET = '' api = TwitterAPI( CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN_KEY, ACCESS_TOKEN_SECRET) # Emotion algorithm def whatColor(): global emotion totalNum = sum(emotion) # number of tweets analysed for i in range(0, len(emotion)): # for each emotion count emotion[i] = (emotion[i]/totalNum)*255 # find proportion of that emotion as a franction of 255 emotion[i] = round(emotion[i], 2) #round to 2 decimal places #MAIN PROGRAM r = api.request('statuses/filter', {'track': TRACK_TERM}) for item in r: # for each tweet if time.time() > timeout: # If time elapsed print("raw data emotion", emotion) whatColor() print('emotion', emotion) serialColour = ','.join(map(str,emotion)) ser.write(serialColour.encode()) print()# Line break for debugging colour = [0,0,0] # resets colour emotion = [0,0,0] # resets tweet count time.sleep(2) # 2 second delay... timeout = time.time() + delay #resets timer #Manipulates tweet to add to emotion counter leitem = item['text'] if 'text' in item else item # select tweet text leitem = str(leitem).encode('utf-8') # encode it so python reconises it if (':@' or ':/') in str(leitem): # if tweet contains angry emotion[0] += 1 # add 1 to angry count if (':)' )in str(leitem): # if tweet contains happy but not 'not happy' emotion[1] += 1 # add 1 to happy count if (':(') in str(leitem): # if tweet contains sad emotion[2] += 1 # add 1 to sad count
ijames55/Twitter-Mood-Light
PythonProgram.py
Python
mit
2,206
<?php /** * @link https://github.com/brussens/yii2-maintenance-mode * @copyright Copyright (c) since 2015 Dmitry Brusensky * @license http://opensource.org/licenses/MIT MIT */ namespace brussens\maintenance; use yii\base\InvalidConfigException; use yii\web\Application; use yii\base\BaseObject; use yii\base\BootstrapInterface; /** * Class Maintenance * @package brussens\maintenance */ class Maintenance extends BaseObject implements BootstrapInterface { /** * Value of "OK" status code. */ const STATUS_CODE_OK = 200; /** * Route to maintenance action. * @var string */ public $route; /** * @var array */ public $filters; /** * Default status code to send on maintenance * 503 = Service Unavailable * @var integer */ public $statusCode = 503; /** * Retry-After header * @var bool|string */ public $retryAfter = false; /** * @var StateInterface */ protected $state; /** * Maintenance constructor. * @param StateInterface $state * @param array $config */ public function __construct(StateInterface $state, array $config = []) { $this->state = $state; parent::__construct($config); } /** * @param Application $app * @throws InvalidConfigException */ public function bootstrap($app) { $response = $app->response; if ($app->request->isAjax) { $response->statusCode = self::STATUS_CODE_OK; } else { $response->statusCode = $this->statusCode; if ($this->retryAfter){ $response->headers->set('Retry-After', $this->retryAfter); } } if ($this->state->isEnabled() && !$this->filtersExcepted()) { $app->catchAll = [$this->route]; } else { $response->statusCode = self::STATUS_CODE_OK; } } /** * @return bool * @throws InvalidConfigException */ protected function filtersExcepted() { if (!is_array($this->filters) || empty($this->filters)) { return false; } foreach ($this->filters as $config) { $filter = \Yii::createObject($config); if (!($filter instanceof Filter)) { throw new InvalidConfigException( 'Class "' . get_class($filter) . '" must instance of "' . Filter::className() . '".' ); } if ($filter->isAllowed()) { return true; } } return false; } }
brussens/yii2-maintenance-mode
src/Maintenance.php
PHP
mit
2,630
<!DOCTYPE html> <html ng-app=""> <head> <script src="lib/angular/angular.min.js"></script> <script src="js/script.js"></script> </head> <body> <div ng-controller="HelloWorldController"> Your name: <input type="text" ng-model="name"/> <hr/> Hello {{name || " Daum"}} ! </div> </body> </html>
msbaek/angularjs-tutorial
app/hello-world.html
HTML
mit
310
/*! Generated by Live LESS Theme Customizer */ /*! * Bootstrap v3.3.5 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ html { font-family: sans-serif; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; } body { margin: 0; } article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } audio, canvas, progress, video { display: inline-block; vertical-align: baseline; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } a { background-color: transparent; } a:active, a:hover { outline: 0; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } h1 { font-size: 2em; margin: 0.67em 0; } mark { background: #ff0; color: #000; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 1em 40px; } hr { box-sizing: content-box; height: 0; } pre { overflow: auto; } code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; } button { overflow: visible; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } input { line-height: normal; } input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } input[type="search"] { -webkit-appearance: textfield; box-sizing: content-box; } input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } legend { border: 0; padding: 0; } textarea { overflow: auto; } optgroup { font-weight: bold; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ @media print { *, *:before, *:after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]:after { content: " (" attr(href) ")"; } abbr[title]:after { content: " (" attr(title) ")"; } a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } .navbar { display: none; } .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px solid #000; } .table { border-collapse: collapse !important; } .table td, .table th { background-color: #fff !important; } .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; } } @font-face { font-family: 'Glyphicons Halflings'; src: url('http://bootstrap-live-customizer.com/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.eot'); src: url('http://bootstrap-live-customizer.com/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('http://bootstrap-live-customizer.com/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('http://bootstrap-live-customizer.com/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.woff') format('woff'), url('http://bootstrap-live-customizer.com/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('http://bootstrap-live-customizer.com/bootstrap-3.3.5/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .glyphicon-asterisk:before { content: "\2a"; } .glyphicon-plus:before { content: "\2b"; } .glyphicon-euro:before, .glyphicon-eur:before { content: "\20ac"; } .glyphicon-minus:before { content: "\2212"; } .glyphicon-cloud:before { content: "\2601"; } .glyphicon-envelope:before { content: "\2709"; } .glyphicon-pencil:before { content: "\270f"; } .glyphicon-glass:before { content: "\e001"; } .glyphicon-music:before { content: "\e002"; } .glyphicon-search:before { content: "\e003"; } .glyphicon-heart:before { content: "\e005"; } .glyphicon-star:before { content: "\e006"; } .glyphicon-star-empty:before { content: "\e007"; } .glyphicon-user:before { content: "\e008"; } .glyphicon-film:before { content: "\e009"; } .glyphicon-th-large:before { content: "\e010"; } .glyphicon-th:before { content: "\e011"; } .glyphicon-th-list:before { content: "\e012"; } .glyphicon-ok:before { content: "\e013"; } .glyphicon-remove:before { content: "\e014"; } .glyphicon-zoom-in:before { content: "\e015"; } .glyphicon-zoom-out:before { content: "\e016"; } .glyphicon-off:before { content: "\e017"; } .glyphicon-signal:before { content: "\e018"; } .glyphicon-cog:before { content: "\e019"; } .glyphicon-trash:before { content: "\e020"; } .glyphicon-home:before { content: "\e021"; } .glyphicon-file:before { content: "\e022"; } .glyphicon-time:before { content: "\e023"; } .glyphicon-road:before { content: "\e024"; } .glyphicon-download-alt:before { content: "\e025"; } .glyphicon-download:before { content: "\e026"; } .glyphicon-upload:before { content: "\e027"; } .glyphicon-inbox:before { content: "\e028"; } .glyphicon-play-circle:before { content: "\e029"; } .glyphicon-repeat:before { content: "\e030"; } .glyphicon-refresh:before { content: "\e031"; } .glyphicon-list-alt:before { content: "\e032"; } .glyphicon-lock:before { content: "\e033"; } .glyphicon-flag:before { content: "\e034"; } .glyphicon-headphones:before { content: "\e035"; } .glyphicon-volume-off:before { content: "\e036"; } .glyphicon-volume-down:before { content: "\e037"; } .glyphicon-volume-up:before { content: "\e038"; } .glyphicon-qrcode:before { content: "\e039"; } .glyphicon-barcode:before { content: "\e040"; } .glyphicon-tag:before { content: "\e041"; } .glyphicon-tags:before { content: "\e042"; } .glyphicon-book:before { content: "\e043"; } .glyphicon-bookmark:before { content: "\e044"; } .glyphicon-print:before { content: "\e045"; } .glyphicon-camera:before { content: "\e046"; } .glyphicon-font:before { content: "\e047"; } .glyphicon-bold:before { content: "\e048"; } .glyphicon-italic:before { content: "\e049"; } .glyphicon-text-height:before { content: "\e050"; } .glyphicon-text-width:before { content: "\e051"; } .glyphicon-align-left:before { content: "\e052"; } .glyphicon-align-center:before { content: "\e053"; } .glyphicon-align-right:before { content: "\e054"; } .glyphicon-align-justify:before { content: "\e055"; } .glyphicon-list:before { content: "\e056"; } .glyphicon-indent-left:before { content: "\e057"; } .glyphicon-indent-right:before { content: "\e058"; } .glyphicon-facetime-video:before { content: "\e059"; } .glyphicon-picture:before { content: "\e060"; } .glyphicon-map-marker:before { content: "\e062"; } .glyphicon-adjust:before { content: "\e063"; } .glyphicon-tint:before { content: "\e064"; } .glyphicon-edit:before { content: "\e065"; } .glyphicon-share:before { content: "\e066"; } .glyphicon-check:before { content: "\e067"; } .glyphicon-move:before { content: "\e068"; } .glyphicon-step-backward:before { content: "\e069"; } .glyphicon-fast-backward:before { content: "\e070"; } .glyphicon-backward:before { content: "\e071"; } .glyphicon-play:before { content: "\e072"; } .glyphicon-pause:before { content: "\e073"; } .glyphicon-stop:before { content: "\e074"; } .glyphicon-forward:before { content: "\e075"; } .glyphicon-fast-forward:before { content: "\e076"; } .glyphicon-step-forward:before { content: "\e077"; } .glyphicon-eject:before { content: "\e078"; } .glyphicon-chevron-left:before { content: "\e079"; } .glyphicon-chevron-right:before { content: "\e080"; } .glyphicon-plus-sign:before { content: "\e081"; } .glyphicon-minus-sign:before { content: "\e082"; } .glyphicon-remove-sign:before { content: "\e083"; } .glyphicon-ok-sign:before { content: "\e084"; } .glyphicon-question-sign:before { content: "\e085"; } .glyphicon-info-sign:before { content: "\e086"; } .glyphicon-screenshot:before { content: "\e087"; } .glyphicon-remove-circle:before { content: "\e088"; } .glyphicon-ok-circle:before { content: "\e089"; } .glyphicon-ban-circle:before { content: "\e090"; } .glyphicon-arrow-left:before { content: "\e091"; } .glyphicon-arrow-right:before { content: "\e092"; } .glyphicon-arrow-up:before { content: "\e093"; } .glyphicon-arrow-down:before { content: "\e094"; } .glyphicon-share-alt:before { content: "\e095"; } .glyphicon-resize-full:before { content: "\e096"; } .glyphicon-resize-small:before { content: "\e097"; } .glyphicon-exclamation-sign:before { content: "\e101"; } .glyphicon-gift:before { content: "\e102"; } .glyphicon-leaf:before { content: "\e103"; } .glyphicon-fire:before { content: "\e104"; } .glyphicon-eye-open:before { content: "\e105"; } .glyphicon-eye-close:before { content: "\e106"; } .glyphicon-warning-sign:before { content: "\e107"; } .glyphicon-plane:before { content: "\e108"; } .glyphicon-calendar:before { content: "\e109"; } .glyphicon-random:before { content: "\e110"; } .glyphicon-comment:before { content: "\e111"; } .glyphicon-magnet:before { content: "\e112"; } .glyphicon-chevron-up:before { content: "\e113"; } .glyphicon-chevron-down:before { content: "\e114"; } .glyphicon-retweet:before { content: "\e115"; } .glyphicon-shopping-cart:before { content: "\e116"; } .glyphicon-folder-close:before { content: "\e117"; } .glyphicon-folder-open:before { content: "\e118"; } .glyphicon-resize-vertical:before { content: "\e119"; } .glyphicon-resize-horizontal:before { content: "\e120"; } .glyphicon-hdd:before { content: "\e121"; } .glyphicon-bullhorn:before { content: "\e122"; } .glyphicon-bell:before { content: "\e123"; } .glyphicon-certificate:before { content: "\e124"; } .glyphicon-thumbs-up:before { content: "\e125"; } .glyphicon-thumbs-down:before { content: "\e126"; } .glyphicon-hand-right:before { content: "\e127"; } .glyphicon-hand-left:before { content: "\e128"; } .glyphicon-hand-up:before { content: "\e129"; } .glyphicon-hand-down:before { content: "\e130"; } .glyphicon-circle-arrow-right:before { content: "\e131"; } .glyphicon-circle-arrow-left:before { content: "\e132"; } .glyphicon-circle-arrow-up:before { content: "\e133"; } .glyphicon-circle-arrow-down:before { content: "\e134"; } .glyphicon-globe:before { content: "\e135"; } .glyphicon-wrench:before { content: "\e136"; } .glyphicon-tasks:before { content: "\e137"; } .glyphicon-filter:before { content: "\e138"; } .glyphicon-briefcase:before { content: "\e139"; } .glyphicon-fullscreen:before { content: "\e140"; } .glyphicon-dashboard:before { content: "\e141"; } .glyphicon-paperclip:before { content: "\e142"; } .glyphicon-heart-empty:before { content: "\e143"; } .glyphicon-link:before { content: "\e144"; } .glyphicon-phone:before { content: "\e145"; } .glyphicon-pushpin:before { content: "\e146"; } .glyphicon-usd:before { content: "\e148"; } .glyphicon-gbp:before { content: "\e149"; } .glyphicon-sort:before { content: "\e150"; } .glyphicon-sort-by-alphabet:before { content: "\e151"; } .glyphicon-sort-by-alphabet-alt:before { content: "\e152"; } .glyphicon-sort-by-order:before { content: "\e153"; } .glyphicon-sort-by-order-alt:before { content: "\e154"; } .glyphicon-sort-by-attributes:before { content: "\e155"; } .glyphicon-sort-by-attributes-alt:before { content: "\e156"; } .glyphicon-unchecked:before { content: "\e157"; } .glyphicon-expand:before { content: "\e158"; } .glyphicon-collapse-down:before { content: "\e159"; } .glyphicon-collapse-up:before { content: "\e160"; } .glyphicon-log-in:before { content: "\e161"; } .glyphicon-flash:before { content: "\e162"; } .glyphicon-log-out:before { content: "\e163"; } .glyphicon-new-window:before { content: "\e164"; } .glyphicon-record:before { content: "\e165"; } .glyphicon-save:before { content: "\e166"; } .glyphicon-open:before { content: "\e167"; } .glyphicon-saved:before { content: "\e168"; } .glyphicon-import:before { content: "\e169"; } .glyphicon-export:before { content: "\e170"; } .glyphicon-send:before { content: "\e171"; } .glyphicon-floppy-disk:before { content: "\e172"; } .glyphicon-floppy-saved:before { content: "\e173"; } .glyphicon-floppy-remove:before { content: "\e174"; } .glyphicon-floppy-save:before { content: "\e175"; } .glyphicon-floppy-open:before { content: "\e176"; } .glyphicon-credit-card:before { content: "\e177"; } .glyphicon-transfer:before { content: "\e178"; } .glyphicon-cutlery:before { content: "\e179"; } .glyphicon-header:before { content: "\e180"; } .glyphicon-compressed:before { content: "\e181"; } .glyphicon-earphone:before { content: "\e182"; } .glyphicon-phone-alt:before { content: "\e183"; } .glyphicon-tower:before { content: "\e184"; } .glyphicon-stats:before { content: "\e185"; } .glyphicon-sd-video:before { content: "\e186"; } .glyphicon-hd-video:before { content: "\e187"; } .glyphicon-subtitles:before { content: "\e188"; } .glyphicon-sound-stereo:before { content: "\e189"; } .glyphicon-sound-dolby:before { content: "\e190"; } .glyphicon-sound-5-1:before { content: "\e191"; } .glyphicon-sound-6-1:before { content: "\e192"; } .glyphicon-sound-7-1:before { content: "\e193"; } .glyphicon-copyright-mark:before { content: "\e194"; } .glyphicon-registration-mark:before { content: "\e195"; } .glyphicon-cloud-download:before { content: "\e197"; } .glyphicon-cloud-upload:before { content: "\e198"; } .glyphicon-tree-conifer:before { content: "\e199"; } .glyphicon-tree-deciduous:before { content: "\e200"; } .glyphicon-cd:before { content: "\e201"; } .glyphicon-save-file:before { content: "\e202"; } .glyphicon-open-file:before { content: "\e203"; } .glyphicon-level-up:before { content: "\e204"; } .glyphicon-copy:before { content: "\e205"; } .glyphicon-paste:before { content: "\e206"; } .glyphicon-alert:before { content: "\e209"; } .glyphicon-equalizer:before { content: "\e210"; } .glyphicon-king:before { content: "\e211"; } .glyphicon-queen:before { content: "\e212"; } .glyphicon-pawn:before { content: "\e213"; } .glyphicon-bishop:before { content: "\e214"; } .glyphicon-knight:before { content: "\e215"; } .glyphicon-baby-formula:before { content: "\e216"; } .glyphicon-tent:before { content: "\26fa"; } .glyphicon-blackboard:before { content: "\e218"; } .glyphicon-bed:before { content: "\e219"; } .glyphicon-apple:before { content: "\f8ff"; } .glyphicon-erase:before { content: "\e221"; } .glyphicon-hourglass:before { content: "\231b"; } .glyphicon-lamp:before { content: "\e223"; } .glyphicon-duplicate:before { content: "\e224"; } .glyphicon-piggy-bank:before { content: "\e225"; } .glyphicon-scissors:before { content: "\e226"; } .glyphicon-bitcoin:before { content: "\e227"; } .glyphicon-btc:before { content: "\e227"; } .glyphicon-xbt:before { content: "\e227"; } .glyphicon-yen:before { content: "\00a5"; } .glyphicon-jpy:before { content: "\00a5"; } .glyphicon-ruble:before { content: "\20bd"; } .glyphicon-rub:before { content: "\20bd"; } .glyphicon-scale:before { content: "\e230"; } .glyphicon-ice-lolly:before { content: "\e231"; } .glyphicon-ice-lolly-tasted:before { content: "\e232"; } .glyphicon-education:before { content: "\e233"; } .glyphicon-option-horizontal:before { content: "\e234"; } .glyphicon-option-vertical:before { content: "\e235"; } .glyphicon-menu-hamburger:before { content: "\e236"; } .glyphicon-modal-window:before { content: "\e237"; } .glyphicon-oil:before { content: "\e238"; } .glyphicon-grain:before { content: "\e239"; } .glyphicon-sunglasses:before { content: "\e240"; } .glyphicon-text-size:before { content: "\e241"; } .glyphicon-text-color:before { content: "\e242"; } .glyphicon-text-background:before { content: "\e243"; } .glyphicon-object-align-top:before { content: "\e244"; } .glyphicon-object-align-bottom:before { content: "\e245"; } .glyphicon-object-align-horizontal:before { content: "\e246"; } .glyphicon-object-align-left:before { content: "\e247"; } .glyphicon-object-align-vertical:before { content: "\e248"; } .glyphicon-object-align-right:before { content: "\e249"; } .glyphicon-triangle-right:before { content: "\e250"; } .glyphicon-triangle-left:before { content: "\e251"; } .glyphicon-triangle-bottom:before { content: "\e252"; } .glyphicon-triangle-top:before { content: "\e253"; } .glyphicon-console:before { content: "\e254"; } .glyphicon-superscript:before { content: "\e255"; } .glyphicon-subscript:before { content: "\e256"; } .glyphicon-menu-left:before { content: "\e257"; } .glyphicon-menu-right:before { content: "\e258"; } .glyphicon-menu-down:before { content: "\e259"; } .glyphicon-menu-up:before { content: "\e260"; } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 10px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; color: #c8c8c8; background-color: #272b30; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #ffffff; text-decoration: none; } a:hover, a:focus { color: #ffffff; text-decoration: underline; } a:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-thumbnail { padding: 4px; line-height: 1.42857143; background-color: #1c1e22; border: 1px solid #0c0d0e; border-radius: 4px; -webkit-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; display: inline-block; max-width: 100%; height: auto; } .img-circle { border-radius: 50%; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #1c1e22; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; } [role="button"] { cursor: pointer; } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small { font-weight: normal; line-height: 1; color: #7a8288; } h1, .h1, h2, .h2, h3, .h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, .h1 small, h2 small, .h2 small, h3 small, .h3 small, h1 .small, .h1 .small, h2 .small, .h2 .small, h3 .small, .h3 .small { font-size: 65%; } h4, .h4, h5, .h5, h6, .h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, .h4 small, h5 small, .h5 small, h6 small, .h6 small, h4 .small, .h4 .small, h5 .small, .h5 .small, h6 .small, .h6 .small { font-size: 75%; } h1, .h1 { font-size: 36px; } h2, .h2 { font-size: 30px; } h3, .h3 { font-size: 24px; } h4, .h4 { font-size: 18px; } h5, .h5 { font-size: 14px; } h6, .h6 { font-size: 12px; } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 21px; } } small, .small { font-size: 85%; } mark, .mark { background-color: #f89406; padding: .2em; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-justify { text-align: justify; } .text-nowrap { white-space: nowrap; } .text-lowercase { text-transform: lowercase; } .text-uppercase { text-transform: uppercase; } .text-capitalize { text-transform: capitalize; } .text-muted { color: #7a8288; } .text-primary { color: #7a8288; } a.text-primary:hover, a.text-primary:focus { color: #62686d; } .text-success { color: #ffffff; } a.text-success:hover, a.text-success:focus { color: #e6e6e6; } .text-info { color: #ffffff; } a.text-info:hover, a.text-info:focus { color: #e6e6e6; } .text-warning { color: #ffffff; } a.text-warning:hover, a.text-warning:focus { color: #e6e6e6; } .text-danger { color: #ffffff; } a.text-danger:hover, a.text-danger:focus { color: #e6e6e6; } .bg-primary { color: #fff; background-color: #7a8288; } a.bg-primary:hover, a.bg-primary:focus { background-color: #62686d; } .bg-success { background-color: #62c462; } a.bg-success:hover, a.bg-success:focus { background-color: #42b142; } .bg-info { background-color: #5bc0de; } a.bg-info:hover, a.bg-info:focus { background-color: #31b0d5; } .bg-warning { background-color: #f89406; } a.bg-warning:hover, a.bg-warning:focus { background-color: #c67605; } .bg-danger { background-color: #ee5f5b; } a.bg-danger:hover, a.bg-danger:focus { background-color: #e9322d; } .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid #1c1e22; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } .list-inline { padding-left: 0; list-style: none; margin-left: -5px; } .list-inline > li { display: inline-block; padding-left: 5px; padding-right: 5px; } dl { margin-top: 0; margin-bottom: 20px; } dt, dd { line-height: 1.42857143; } dt { font-weight: bold; } dd { margin-left: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; clear: left; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } } abbr[title], abbr[data-original-title] { cursor: help; border-bottom: 1px dotted #7a8288; } .initialism { font-size: 90%; text-transform: uppercase; } blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid #7a8288; } blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child { margin-bottom: 0; } blockquote footer, blockquote small, blockquote .small { display: block; font-size: 80%; line-height: 1.42857143; color: #7a8288; } blockquote footer:before, blockquote small:before, blockquote .small:before { content: '\2014 \00A0'; } .blockquote-reverse, blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #7a8288; border-left: 0; text-align: right; } .blockquote-reverse footer:before, blockquote.pull-right footer:before, .blockquote-reverse small:before, blockquote.pull-right small:before, .blockquote-reverse .small:before, blockquote.pull-right .small:before { content: ''; } .blockquote-reverse footer:after, blockquote.pull-right footer:after, .blockquote-reverse small:after, blockquote.pull-right small:after, .blockquote-reverse .small:after, blockquote.pull-right .small:after { content: '\00A0 \2014'; } address { margin-bottom: 20px; font-style: normal; line-height: 1.42857143; } code, kbd, pre, samp { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; } code { padding: 2px 4px; font-size: 90%; color: #c7254e; background-color: #f9f2f4; border-radius: 4px; } kbd { padding: 2px 4px; font-size: 90%; color: #ffffff; background-color: #333333; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); } kbd kbd { padding: 0; font-size: 100%; font-weight: bold; box-shadow: none; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 13px; line-height: 1.42857143; word-break: break-all; word-wrap: break-word; color: #3a3f44; background-color: #f5f5f5; border: 1px solid #cccccc; border-radius: 4px; } pre code { padding: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border-radius: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .container { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } @media (min-width: 768px) { .container { width: 750px; } } @media (min-width: 992px) { .container { width: 970px; } } @media (min-width: 1200px) { .container { width: 1170px; } } .container-fluid { margin-right: auto; margin-left: auto; padding-left: 15px; padding-right: 15px; } .row { margin-left: -15px; margin-right: -15px; } .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { float: left; } .col-xs-12 { width: 100%; } .col-xs-11 { width: 91.66666667%; } .col-xs-10 { width: 83.33333333%; } .col-xs-9 { width: 75%; } .col-xs-8 { width: 66.66666667%; } .col-xs-7 { width: 58.33333333%; } .col-xs-6 { width: 50%; } .col-xs-5 { width: 41.66666667%; } .col-xs-4 { width: 33.33333333%; } .col-xs-3 { width: 25%; } .col-xs-2 { width: 16.66666667%; } .col-xs-1 { width: 8.33333333%; } .col-xs-pull-12 { right: 100%; } .col-xs-pull-11 { right: 91.66666667%; } .col-xs-pull-10 { right: 83.33333333%; } .col-xs-pull-9 { right: 75%; } .col-xs-pull-8 { right: 66.66666667%; } .col-xs-pull-7 { right: 58.33333333%; } .col-xs-pull-6 { right: 50%; } .col-xs-pull-5 { right: 41.66666667%; } .col-xs-pull-4 { right: 33.33333333%; } .col-xs-pull-3 { right: 25%; } .col-xs-pull-2 { right: 16.66666667%; } .col-xs-pull-1 { right: 8.33333333%; } .col-xs-pull-0 { right: auto; } .col-xs-push-12 { left: 100%; } .col-xs-push-11 { left: 91.66666667%; } .col-xs-push-10 { left: 83.33333333%; } .col-xs-push-9 { left: 75%; } .col-xs-push-8 { left: 66.66666667%; } .col-xs-push-7 { left: 58.33333333%; } .col-xs-push-6 { left: 50%; } .col-xs-push-5 { left: 41.66666667%; } .col-xs-push-4 { left: 33.33333333%; } .col-xs-push-3 { left: 25%; } .col-xs-push-2 { left: 16.66666667%; } .col-xs-push-1 { left: 8.33333333%; } .col-xs-push-0 { left: auto; } .col-xs-offset-12 { margin-left: 100%; } .col-xs-offset-11 { margin-left: 91.66666667%; } .col-xs-offset-10 { margin-left: 83.33333333%; } .col-xs-offset-9 { margin-left: 75%; } .col-xs-offset-8 { margin-left: 66.66666667%; } .col-xs-offset-7 { margin-left: 58.33333333%; } .col-xs-offset-6 { margin-left: 50%; } .col-xs-offset-5 { margin-left: 41.66666667%; } .col-xs-offset-4 { margin-left: 33.33333333%; } .col-xs-offset-3 { margin-left: 25%; } .col-xs-offset-2 { margin-left: 16.66666667%; } .col-xs-offset-1 { margin-left: 8.33333333%; } .col-xs-offset-0 { margin-left: 0%; } @media (min-width: 768px) { .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { float: left; } .col-sm-12 { width: 100%; } .col-sm-11 { width: 91.66666667%; } .col-sm-10 { width: 83.33333333%; } .col-sm-9 { width: 75%; } .col-sm-8 { width: 66.66666667%; } .col-sm-7 { width: 58.33333333%; } .col-sm-6 { width: 50%; } .col-sm-5 { width: 41.66666667%; } .col-sm-4 { width: 33.33333333%; } .col-sm-3 { width: 25%; } .col-sm-2 { width: 16.66666667%; } .col-sm-1 { width: 8.33333333%; } .col-sm-pull-12 { right: 100%; } .col-sm-pull-11 { right: 91.66666667%; } .col-sm-pull-10 { right: 83.33333333%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-8 { right: 66.66666667%; } .col-sm-pull-7 { right: 58.33333333%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-5 { right: 41.66666667%; } .col-sm-pull-4 { right: 33.33333333%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-2 { right: 16.66666667%; } .col-sm-pull-1 { right: 8.33333333%; } .col-sm-pull-0 { right: auto; } .col-sm-push-12 { left: 100%; } .col-sm-push-11 { left: 91.66666667%; } .col-sm-push-10 { left: 83.33333333%; } .col-sm-push-9 { left: 75%; } .col-sm-push-8 { left: 66.66666667%; } .col-sm-push-7 { left: 58.33333333%; } .col-sm-push-6 { left: 50%; } .col-sm-push-5 { left: 41.66666667%; } .col-sm-push-4 { left: 33.33333333%; } .col-sm-push-3 { left: 25%; } .col-sm-push-2 { left: 16.66666667%; } .col-sm-push-1 { left: 8.33333333%; } .col-sm-push-0 { left: auto; } .col-sm-offset-12 { margin-left: 100%; } .col-sm-offset-11 { margin-left: 91.66666667%; } .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-7 { margin-left: 58.33333333%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-5 { margin-left: 41.66666667%; } .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-0 { margin-left: 0%; } } @media (min-width: 992px) { .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { float: left; } .col-md-12 { width: 100%; } .col-md-11 { width: 91.66666667%; } .col-md-10 { width: 83.33333333%; } .col-md-9 { width: 75%; } .col-md-8 { width: 66.66666667%; } .col-md-7 { width: 58.33333333%; } .col-md-6 { width: 50%; } .col-md-5 { width: 41.66666667%; } .col-md-4 { width: 33.33333333%; } .col-md-3 { width: 25%; } .col-md-2 { width: 16.66666667%; } .col-md-1 { width: 8.33333333%; } .col-md-pull-12 { right: 100%; } .col-md-pull-11 { right: 91.66666667%; } .col-md-pull-10 { right: 83.33333333%; } .col-md-pull-9 { right: 75%; } .col-md-pull-8 { right: 66.66666667%; } .col-md-pull-7 { right: 58.33333333%; } .col-md-pull-6 { right: 50%; } .col-md-pull-5 { right: 41.66666667%; } .col-md-pull-4 { right: 33.33333333%; } .col-md-pull-3 { right: 25%; } .col-md-pull-2 { right: 16.66666667%; } .col-md-pull-1 { right: 8.33333333%; } .col-md-pull-0 { right: auto; } .col-md-push-12 { left: 100%; } .col-md-push-11 { left: 91.66666667%; } .col-md-push-10 { left: 83.33333333%; } .col-md-push-9 { left: 75%; } .col-md-push-8 { left: 66.66666667%; } .col-md-push-7 { left: 58.33333333%; } .col-md-push-6 { left: 50%; } .col-md-push-5 { left: 41.66666667%; } .col-md-push-4 { left: 33.33333333%; } .col-md-push-3 { left: 25%; } .col-md-push-2 { left: 16.66666667%; } .col-md-push-1 { left: 8.33333333%; } .col-md-push-0 { left: auto; } .col-md-offset-12 { margin-left: 100%; } .col-md-offset-11 { margin-left: 91.66666667%; } .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-7 { margin-left: 58.33333333%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-5 { margin-left: 41.66666667%; } .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-0 { margin-left: 0%; } } @media (min-width: 1200px) { .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { float: left; } .col-lg-12 { width: 100%; } .col-lg-11 { width: 91.66666667%; } .col-lg-10 { width: 83.33333333%; } .col-lg-9 { width: 75%; } .col-lg-8 { width: 66.66666667%; } .col-lg-7 { width: 58.33333333%; } .col-lg-6 { width: 50%; } .col-lg-5 { width: 41.66666667%; } .col-lg-4 { width: 33.33333333%; } .col-lg-3 { width: 25%; } .col-lg-2 { width: 16.66666667%; } .col-lg-1 { width: 8.33333333%; } .col-lg-pull-12 { right: 100%; } .col-lg-pull-11 { right: 91.66666667%; } .col-lg-pull-10 { right: 83.33333333%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-8 { right: 66.66666667%; } .col-lg-pull-7 { right: 58.33333333%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-5 { right: 41.66666667%; } .col-lg-pull-4 { right: 33.33333333%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-2 { right: 16.66666667%; } .col-lg-pull-1 { right: 8.33333333%; } .col-lg-pull-0 { right: auto; } .col-lg-push-12 { left: 100%; } .col-lg-push-11 { left: 91.66666667%; } .col-lg-push-10 { left: 83.33333333%; } .col-lg-push-9 { left: 75%; } .col-lg-push-8 { left: 66.66666667%; } .col-lg-push-7 { left: 58.33333333%; } .col-lg-push-6 { left: 50%; } .col-lg-push-5 { left: 41.66666667%; } .col-lg-push-4 { left: 33.33333333%; } .col-lg-push-3 { left: 25%; } .col-lg-push-2 { left: 16.66666667%; } .col-lg-push-1 { left: 8.33333333%; } .col-lg-push-0 { left: auto; } .col-lg-offset-12 { margin-left: 100%; } .col-lg-offset-11 { margin-left: 91.66666667%; } .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-7 { margin-left: 58.33333333%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-5 { margin-left: 41.66666667%; } .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-1 { margin-left: 8.33333333%; } .col-lg-offset-0 { margin-left: 0%; } } table { background-color: #2e3338; } caption { padding-top: 8px; padding-bottom: 8px; color: #7a8288; text-align: left; } th { text-align: left; } .table { width: 100%; max-width: 100%; margin-bottom: 20px; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 8px; line-height: 1.42857143; vertical-align: top; border-top: 1px solid #1c1e22; } .table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #1c1e22; } .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; } .table > tbody + tbody { border-top: 2px solid #1c1e22; } .table .table { background-color: #272b30; } .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; } .table-bordered { border: 1px solid #1c1e22; } .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #1c1e22; } .table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; } .table-striped > tbody > tr:nth-of-type(odd) { background-color: #353a41; } .table-hover > tbody > tr:hover { background-color: #49515a; } table col[class*="col-"] { position: static; float: none; display: table-column; } table td[class*="col-"], table th[class*="col-"] { position: static; float: none; display: table-cell; } .table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th { background-color: #49515a; } .table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr:hover > .active, .table-hover > tbody > tr.active:hover > th { background-color: #3e444c; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #62c462; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr:hover > .success, .table-hover > tbody > tr.success:hover > th { background-color: #4fbd4f; } .table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th { background-color: #5bc0de; } .table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr:hover > .info, .table-hover > tbody > tr.info:hover > th { background-color: #46b8da; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #f89406; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr:hover > .warning, .table-hover > tbody > tr.warning:hover > th { background-color: #df8505; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #ee5f5b; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { background-color: #ec4844; } .table-responsive { overflow-x: auto; min-height: 0.01%; } @media screen and (max-width: 767px) { .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; border: 1px solid #1c1e22; } .table-responsive > .table { margin-bottom: 0; } .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th, .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; } .table-responsive > .table-bordered { border: 0; } .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child, .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child, .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th, .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; } } fieldset { padding: 0; margin: 0; border: 0; min-width: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #c8c8c8; border: 0; border-bottom: 1px solid #1c1e22; } label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; line-height: normal; } input[type="file"] { display: block; } input[type="range"] { display: block; width: 100%; } select[multiple], select[size] { height: auto; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } output { display: block; padding-top: 9px; font-size: 14px; line-height: 1.42857143; color: #272b30; } .form-control { display: block; width: 100%; height: 38px; padding: 8px 12px; font-size: 14px; line-height: 1.42857143; color: #272b30; background-color: #ffffff; background-image: none; border: 1px solid #cccccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .form-control:focus { border-color: #66afe9; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); } .form-control::-moz-placeholder { color: #7a8288; opacity: 1; } .form-control:-ms-input-placeholder { color: #7a8288; } .form-control::-webkit-input-placeholder { color: #7a8288; } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #999999; opacity: 1; } .form-control[disabled], fieldset[disabled] .form-control { cursor: not-allowed; } textarea.form-control { height: auto; } input[type="search"] { -webkit-appearance: none; } @media screen and (-webkit-min-device-pixel-ratio: 0) { input[type="date"].form-control, input[type="time"].form-control, input[type="datetime-local"].form-control, input[type="month"].form-control { line-height: 38px; } input[type="date"].input-sm, input[type="time"].input-sm, input[type="datetime-local"].input-sm, input[type="month"].input-sm, .input-group-sm input[type="date"], .input-group-sm input[type="time"], .input-group-sm input[type="datetime-local"], .input-group-sm input[type="month"] { line-height: 30px; } input[type="date"].input-lg, input[type="time"].input-lg, input[type="datetime-local"].input-lg, input[type="month"].input-lg, .input-group-lg input[type="date"], .input-group-lg input[type="time"], .input-group-lg input[type="datetime-local"], .input-group-lg input[type="month"] { line-height: 54px; } } .form-group { margin-bottom: 15px; } .radio, .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } .radio label, .checkbox label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { position: absolute; margin-left: -20px; margin-top: 4px \9; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { position: relative; display: inline-block; padding-left: 20px; margin-bottom: 0; vertical-align: middle; font-weight: normal; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], input[type="radio"].disabled, input[type="checkbox"].disabled, fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"] { cursor: not-allowed; } .radio-inline.disabled, .checkbox-inline.disabled, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .radio.disabled label, .checkbox.disabled label, fieldset[disabled] .radio label, fieldset[disabled] .checkbox label { cursor: not-allowed; } .form-control-static { padding-top: 9px; padding-bottom: 9px; margin-bottom: 0; min-height: 34px; } .form-control-static.input-lg, .form-control-static.input-sm { padding-left: 0; padding-right: 0; } .input-sm { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 30px; line-height: 30px; } textarea.input-sm, select[multiple].input-sm { height: auto; } .form-group-sm .form-control { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .form-group-sm select.form-control { height: 30px; line-height: 30px; } .form-group-sm textarea.form-control, .form-group-sm select[multiple].form-control { height: auto; } .form-group-sm .form-control-static { height: 30px; min-height: 32px; padding: 6px 10px; font-size: 12px; line-height: 1.5; } .input-lg { height: 54px; padding: 14px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-lg { height: 54px; line-height: 54px; } textarea.input-lg, select[multiple].input-lg { height: auto; } .form-group-lg .form-control { height: 54px; padding: 14px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } .form-group-lg select.form-control { height: 54px; line-height: 54px; } .form-group-lg textarea.form-control, .form-group-lg select[multiple].form-control { height: auto; } .form-group-lg .form-control-static { height: 54px; min-height: 38px; padding: 15px 16px; font-size: 18px; line-height: 1.33; } .has-feedback { position: relative; } .has-feedback .form-control { padding-right: 47.5px; } .form-control-feedback { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 38px; height: 38px; line-height: 38px; text-align: center; pointer-events: none; } .input-lg + .form-control-feedback, .input-group-lg + .form-control-feedback, .form-group-lg .form-control + .form-control-feedback { width: 54px; height: 54px; line-height: 54px; } .input-sm + .form-control-feedback, .input-group-sm + .form-control-feedback, .form-group-sm .form-control + .form-control-feedback { width: 30px; height: 30px; line-height: 30px; } .has-success .help-block, .has-success .control-label, .has-success .radio, .has-success .checkbox, .has-success .radio-inline, .has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label { color: #ffffff; } .has-success .form-control { border-color: #ffffff; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-success .form-control:focus { border-color: #e6e6e6; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .has-success .input-group-addon { color: #ffffff; border-color: #ffffff; background-color: #62c462; } .has-success .form-control-feedback { color: #ffffff; } .has-warning .help-block, .has-warning .control-label, .has-warning .radio, .has-warning .checkbox, .has-warning .radio-inline, .has-warning .checkbox-inline, .has-warning.radio label, .has-warning.checkbox label, .has-warning.radio-inline label, .has-warning.checkbox-inline label { color: #ffffff; } .has-warning .form-control { border-color: #ffffff; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-warning .form-control:focus { border-color: #e6e6e6; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .has-warning .input-group-addon { color: #ffffff; border-color: #ffffff; background-color: #f89406; } .has-warning .form-control-feedback { color: #ffffff; } .has-error .help-block, .has-error .control-label, .has-error .radio, .has-error .checkbox, .has-error .radio-inline, .has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label { color: #ffffff; } .has-error .form-control { border-color: #ffffff; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } .has-error .form-control:focus { border-color: #e6e6e6; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffffff; } .has-error .input-group-addon { color: #ffffff; border-color: #ffffff; background-color: #ee5f5b; } .has-error .form-control-feedback { color: #ffffff; } .has-feedback label ~ .form-control-feedback { top: 25px; } .has-feedback label.sr-only ~ .form-control-feedback { top: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #ffffff; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; } .form-inline .form-control-static { display: inline-block; } .form-inline .input-group { display: inline-table; vertical-align: middle; } .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn, .form-inline .input-group .form-control { width: auto; } .form-inline .input-group > .form-control { width: 100%; } .form-inline .control-label { margin-bottom: 0; vertical-align: middle; } .form-inline .radio, .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .form-inline .radio label, .form-inline .checkbox label { padding-left: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .form-inline .has-feedback .form-control-feedback { top: 0; } } .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { margin-top: 0; margin-bottom: 0; padding-top: 9px; } .form-horizontal .radio, .form-horizontal .checkbox { min-height: 29px; } .form-horizontal .form-group { margin-left: -15px; margin-right: -15px; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; margin-bottom: 0; padding-top: 9px; } } .form-horizontal .has-feedback .form-control-feedback { right: 15px; } @media (min-width: 768px) { .form-horizontal .form-group-lg .control-label { padding-top: 19.62px; font-size: 18px; } } @media (min-width: 768px) { .form-horizontal .form-group-sm .control-label { padding-top: 6px; font-size: 12px; } } .btn { display: inline-block; margin-bottom: 0; font-weight: normal; text-align: center; vertical-align: middle; touch-action: manipulation; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; padding: 8px 12px; font-size: 14px; line-height: 1.42857143; border-radius: 4px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .btn:focus, .btn:active:focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn.active.focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn:hover, .btn:focus, .btn.focus { color: #ffffff; text-decoration: none; } .btn:active, .btn.active { outline: 0; background-image: none; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; } a.btn.disabled, fieldset[disabled] a.btn { pointer-events: none; } .btn-default { color: #ffffff; background-color: #3a3f44; border-color: #3a3f44; } .btn-default:focus, .btn-default.focus { color: #ffffff; background-color: #232628; border-color: #000000; } .btn-default:hover { color: #ffffff; background-color: #232628; border-color: #1e2023; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { color: #ffffff; background-color: #232628; border-color: #1e2023; } .btn-default:active:hover, .btn-default.active:hover, .open > .dropdown-toggle.btn-default:hover, .btn-default:active:focus, .btn-default.active:focus, .open > .dropdown-toggle.btn-default:focus, .btn-default:active.focus, .btn-default.active.focus, .open > .dropdown-toggle.btn-default.focus { color: #ffffff; background-color: #121415; border-color: #000000; } .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default { background-image: none; } .btn-default.disabled, .btn-default[disabled], fieldset[disabled] .btn-default, .btn-default.disabled:hover, .btn-default[disabled]:hover, fieldset[disabled] .btn-default:hover, .btn-default.disabled:focus, .btn-default[disabled]:focus, fieldset[disabled] .btn-default:focus, .btn-default.disabled.focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default.focus, .btn-default.disabled:active, .btn-default[disabled]:active, fieldset[disabled] .btn-default:active, .btn-default.disabled.active, .btn-default[disabled].active, fieldset[disabled] .btn-default.active { background-color: #3a3f44; border-color: #3a3f44; } .btn-default .badge { color: #3a3f44; background-color: #ffffff; } .btn-primary { color: #ffffff; background-color: #7a8288; border-color: #7a8288; } .btn-primary:focus, .btn-primary.focus { color: #ffffff; background-color: #62686d; border-color: #3e4245; } .btn-primary:hover { color: #ffffff; background-color: #62686d; border-color: #5d6368; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { color: #ffffff; background-color: #62686d; border-color: #5d6368; } .btn-primary:active:hover, .btn-primary.active:hover, .open > .dropdown-toggle.btn-primary:hover, .btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary:focus, .btn-primary:active.focus, .btn-primary.active.focus, .open > .dropdown-toggle.btn-primary.focus { color: #ffffff; background-color: #51565a; border-color: #3e4245; } .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary { background-image: none; } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled.focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary.focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #7a8288; border-color: #7a8288; } .btn-primary .badge { color: #7a8288; background-color: #ffffff; } .btn-success { color: #ffffff; background-color: #62c462; border-color: #62c462; } .btn-success:focus, .btn-success.focus { color: #ffffff; background-color: #42b142; border-color: #2d792d; } .btn-success:hover { color: #ffffff; background-color: #42b142; border-color: #40a940; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { color: #ffffff; background-color: #42b142; border-color: #40a940; } .btn-success:active:hover, .btn-success.active:hover, .open > .dropdown-toggle.btn-success:hover, .btn-success:active:focus, .btn-success.active:focus, .open > .dropdown-toggle.btn-success:focus, .btn-success:active.focus, .btn-success.active.focus, .open > .dropdown-toggle.btn-success.focus { color: #ffffff; background-color: #399739; border-color: #2d792d; } .btn-success:active, .btn-success.active, .open > .dropdown-toggle.btn-success { background-image: none; } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled.focus, .btn-success[disabled].focus, fieldset[disabled] .btn-success.focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #62c462; border-color: #62c462; } .btn-success .badge { color: #62c462; background-color: #ffffff; } .btn-info { color: #ffffff; background-color: #5bc0de; border-color: #5bc0de; } .btn-info:focus, .btn-info.focus { color: #ffffff; background-color: #31b0d5; border-color: #1f7e9a; } .btn-info:hover { color: #ffffff; background-color: #31b0d5; border-color: #2aabd2; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { color: #ffffff; background-color: #31b0d5; border-color: #2aabd2; } .btn-info:active:hover, .btn-info.active:hover, .open > .dropdown-toggle.btn-info:hover, .btn-info:active:focus, .btn-info.active:focus, .open > .dropdown-toggle.btn-info:focus, .btn-info:active.focus, .btn-info.active.focus, .open > .dropdown-toggle.btn-info.focus { color: #ffffff; background-color: #269abc; border-color: #1f7e9a; } .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info { background-image: none; } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled.focus, .btn-info[disabled].focus, fieldset[disabled] .btn-info.focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #5bc0de; border-color: #5bc0de; } .btn-info .badge { color: #5bc0de; background-color: #ffffff; } .btn-warning { color: #ffffff; background-color: #f89406; border-color: #f89406; } .btn-warning:focus, .btn-warning.focus { color: #ffffff; background-color: #c67605; border-color: #7c4a03; } .btn-warning:hover { color: #ffffff; background-color: #c67605; border-color: #bc7005; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { color: #ffffff; background-color: #c67605; border-color: #bc7005; } .btn-warning:active:hover, .btn-warning.active:hover, .open > .dropdown-toggle.btn-warning:hover, .btn-warning:active:focus, .btn-warning.active:focus, .open > .dropdown-toggle.btn-warning:focus, .btn-warning:active.focus, .btn-warning.active.focus, .open > .dropdown-toggle.btn-warning.focus { color: #ffffff; background-color: #a36104; border-color: #7c4a03; } .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning { background-image: none; } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled.focus, .btn-warning[disabled].focus, fieldset[disabled] .btn-warning.focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f89406; border-color: #f89406; } .btn-warning .badge { color: #f89406; background-color: #ffffff; } .btn-danger { color: #ffffff; background-color: #ee5f5b; border-color: #ee5f5b; } .btn-danger:focus, .btn-danger.focus { color: #ffffff; background-color: #e9322d; border-color: #b71713; } .btn-danger:hover { color: #ffffff; background-color: #e9322d; border-color: #e82924; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { color: #ffffff; background-color: #e9322d; border-color: #e82924; } .btn-danger:active:hover, .btn-danger.active:hover, .open > .dropdown-toggle.btn-danger:hover, .btn-danger:active:focus, .btn-danger.active:focus, .open > .dropdown-toggle.btn-danger:focus, .btn-danger:active.focus, .btn-danger.active.focus, .open > .dropdown-toggle.btn-danger.focus { color: #ffffff; background-color: #dc1c17; border-color: #b71713; } .btn-danger:active, .btn-danger.active, .open > .dropdown-toggle.btn-danger { background-image: none; } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled.focus, .btn-danger[disabled].focus, fieldset[disabled] .btn-danger.focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #ee5f5b; border-color: #ee5f5b; } .btn-danger .badge { color: #ee5f5b; background-color: #ffffff; } .btn-link { color: #ffffff; font-weight: normal; border-radius: 0; } .btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], fieldset[disabled] .btn-link { background-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { border-color: transparent; } .btn-link:hover, .btn-link:focus { color: #ffffff; text-decoration: underline; background-color: transparent; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #7a8288; text-decoration: none; } .btn-lg, .btn-group-lg > .btn { padding: 14px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } .btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-xs, .btn-group-xs > .btn { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; } .btn-block { display: block; width: 100%; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .fade { opacity: 0; -webkit-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; } .fade.in { opacity: 1; } .collapse { display: none; } .collapse.in { display: block; } tr.collapse.in { display: table-row; } tbody.collapse.in { display: table-row-group; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition-property: height, visibility; transition-property: height, visibility; -webkit-transition-duration: 0.35s; transition-duration: 0.35s; -webkit-transition-timing-function: ease; transition-timing-function: ease; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px dashed; border-top: 4px solid \9; border-right: 4px solid transparent; border-left: 4px solid transparent; } .dropup, .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 14px; text-align: left; background-color: #3a3f44; border: 1px solid #272b30; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #272b30; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #c8c8c8; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { text-decoration: none; color: #ffffff; background-color: #272b30; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #ffffff; text-decoration: none; outline: 0; background-color: #272b30; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #7a8288; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); cursor: not-allowed; } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-menu-right { left: auto; right: 0; } .dropdown-menu-left { left: 0; right: auto; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; line-height: 1.42857143; color: #7a8288; white-space: nowrap; } .dropdown-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { border-top: 0; border-bottom: 4px dashed; border-bottom: 4px solid \9; content: ""; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 2px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { left: auto; right: 0; } .navbar-right .dropdown-menu-left { left: 0; right: auto; } } .btn-group, .btn-group-vertical { position: relative; display: inline-block; vertical-align: middle; } .btn-group > .btn, .btn-group-vertical > .btn { position: relative; float: left; } .btn-group > .btn:hover, .btn-group-vertical > .btn:hover, .btn-group > .btn:focus, .btn-group-vertical > .btn:focus, .btn-group > .btn:active, .btn-group-vertical > .btn:active, .btn-group > .btn.active, .btn-group-vertical > .btn.active { z-index: 2; } .btn-group .btn + .btn, .btn-group .btn + .btn-group, .btn-group .btn-group + .btn, .btn-group .btn-group + .btn-group { margin-left: -1px; } .btn-toolbar { margin-left: -5px; } .btn-toolbar .btn, .btn-toolbar .btn-group, .btn-toolbar .input-group { float: left; } .btn-toolbar > .btn, .btn-toolbar > .btn-group, .btn-toolbar > .input-group { margin-left: 5px; } .btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { border-radius: 0; } .btn-group > .btn:first-child { margin-left: 0; } .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child) { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group > .btn-group { float: left; } .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-top-right-radius: 0; } .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { border-bottom-left-radius: 0; border-top-left-radius: 0; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group > .btn + .dropdown-toggle { padding-left: 8px; padding-right: 8px; } .btn-group > .btn-lg + .dropdown-toggle { padding-left: 12px; padding-right: 12px; } .btn-group.open .dropdown-toggle { -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } .btn-group.open .dropdown-toggle.btn-link { -webkit-box-shadow: none; box-shadow: none; } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } .btn-group-vertical > .btn, .btn-group-vertical > .btn-group, .btn-group-vertical > .btn-group > .btn { display: block; float: none; width: 100%; max-width: 100%; } .btn-group-vertical > .btn-group > .btn { float: none; } .btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group { margin-top: -1px; margin-left: 0; } .btn-group-vertical > .btn:not(:first-child):not(:last-child) { border-radius: 0; } .btn-group-vertical > .btn:first-child:not(:last-child) { border-top-right-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn:last-child:not(:first-child) { border-bottom-left-radius: 4px; border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { border-radius: 0; } .btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, .btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .btn-group-justified { display: table; width: 100%; table-layout: fixed; border-collapse: separate; } .btn-group-justified > .btn, .btn-group-justified > .btn-group { float: none; display: table-cell; width: 1%; } .btn-group-justified > .btn-group .btn { width: 100%; } .btn-group-justified > .btn-group .dropdown-menu { left: auto; } [data-toggle="buttons"] > .btn input[type="radio"], [data-toggle="buttons"] > .btn-group > .btn input[type="radio"], [data-toggle="buttons"] > .btn input[type="checkbox"], [data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-left: 0; padding-right: 0; } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 54px; padding: 14px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 54px; line-height: 54px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn, select[multiple].input-group-lg > .form-control, select[multiple].input-group-lg > .input-group-addon, select[multiple].input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 30px; line-height: 30px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn, select[multiple].input-group-sm > .form-control, select[multiple].input-group-sm > .input-group-addon, select[multiple].input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 8px 12px; font-size: 14px; font-weight: normal; line-height: 1; color: #272b30; text-align: center; background-color: #999999; border: 1px solid #cccccc; border-radius: 4px; } .input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 14px 16px; font-size: 18px; border-radius: 6px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { border-bottom-right-radius: 0; border-top-right-radius: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { border-bottom-left-radius: 0; border-top-left-radius: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { margin-right: -1px; } .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { z-index: 2; margin-left: -1px; } .nav { margin-bottom: 0; padding-left: 0; list-style: none; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 10px 15px; } .nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #3e444c; } .nav > li.disabled > a { color: #7a8288; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #7a8288; text-decoration: none; background-color: transparent; cursor: not-allowed; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #3e444c; border-color: #ffffff; } .nav .nav-divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .nav > li > a > img { max-width: none; } .nav-tabs { border-bottom: 1px solid #1c1e22; } .nav-tabs > li { float: left; margin-bottom: -1px; } .nav-tabs > li > a { margin-right: 2px; line-height: 1.42857143; border: 1px solid transparent; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #1c1e22 #1c1e22 #1c1e22; } .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { color: #ffffff; background-color: #3e444c; border: 1px solid #1c1e22; border-bottom-color: transparent; cursor: default; } .nav-tabs.nav-justified { width: 100%; border-bottom: 0; } .nav-tabs.nav-justified > li { float: none; } .nav-tabs.nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-tabs.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-tabs.nav-justified > li { display: table-cell; width: 1%; } .nav-tabs.nav-justified > li > a { margin-bottom: 0; } } .nav-tabs.nav-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border: 1px solid #1c1e22; } @media (min-width: 768px) { .nav-tabs.nav-justified > li > a { border-bottom: 1px solid #1c1e22; border-radius: 4px 4px 0 0; } .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #272b30; } } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 4px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #ffffff; background-color: transparent; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { text-align: center; margin-bottom: 5px; } .nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } } .nav-tabs-justified { border-bottom: 0; } .nav-tabs-justified > li > a { margin-right: 0; border-radius: 4px; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border: 1px solid #1c1e22; } @media (min-width: 768px) { .nav-tabs-justified > li > a { border-bottom: 1px solid #1c1e22; border-radius: 4px 4px 0 0; } .nav-tabs-justified > .active > a, .nav-tabs-justified > .active > a:hover, .nav-tabs-justified > .active > a:focus { border-bottom-color: #272b30; } } .tab-content > .tab-pane { display: none; } .tab-content > .active { display: block; } .nav-tabs .dropdown-menu { margin-top: -1px; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar { position: relative; min-height: 50px; margin-bottom: 20px; border: 1px solid transparent; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { overflow-x: visible; padding-right: 15px; padding-left: 15px; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-overflow-scrolling: touch; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { padding-left: 0; padding-right: 0; } } .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 340px; } @media (max-device-width: 480px) and (orientation: landscape) { .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { max-height: 200px; } } .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: -15px; margin-left: -15px; } @media (min-width: 768px) { .container > .navbar-header, .container-fluid > .navbar-header, .container > .navbar-collapse, .container-fluid > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { z-index: 1000; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; z-index: 1030; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; } .navbar-brand { float: left; padding: 15px 15px; font-size: 18px; line-height: 20px; height: 50px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } .navbar-brand > img { display: block; } @media (min-width: 768px) { .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { margin-left: -15px; } } .navbar-toggle { position: relative; float: right; margin-right: 15px; padding: 9px 10px; margin-top: 8px; margin-bottom: 8px; background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle:focus { outline: 0; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 7.5px -15px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; } } .navbar-form { margin-left: -15px; margin-right: -15px; padding: 10px 15px; border-top: 1px solid transparent; border-bottom: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); margin-top: 6px; margin-bottom: 6px; } @media (min-width: 768px) { .navbar-form .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .navbar-form .form-control { display: inline-block; width: auto; vertical-align: middle; } .navbar-form .form-control-static { display: inline-block; } .navbar-form .input-group { display: inline-table; vertical-align: middle; } .navbar-form .input-group .input-group-addon, .navbar-form .input-group .input-group-btn, .navbar-form .input-group .form-control { width: auto; } .navbar-form .input-group > .form-control { width: 100%; } .navbar-form .control-label { margin-bottom: 0; vertical-align: middle; } .navbar-form .radio, .navbar-form .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; } .navbar-form .radio label, .navbar-form .checkbox label { padding-left: 0; } .navbar-form .radio input[type="radio"], .navbar-form .checkbox input[type="checkbox"] { position: relative; margin-left: 0; } .navbar-form .has-feedback .form-control-feedback { top: 0; } } @media (max-width: 767px) { .navbar-form .form-group { margin-bottom: 5px; } .navbar-form .form-group:last-child { margin-bottom: 0; } } @media (min-width: 768px) { .navbar-form { width: auto; border: 0; margin-left: 0; margin-right: 0; padding-top: 0; padding-bottom: 0; -webkit-box-shadow: none; box-shadow: none; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { margin-bottom: 0; border-top-right-radius: 4px; border-top-left-radius: 4px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .navbar-btn { margin-top: 6px; margin-bottom: 6px; } .navbar-btn.btn-sm { margin-top: 10px; margin-bottom: 10px; } .navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px; } .navbar-text { margin-top: 15px; margin-bottom: 15px; } @media (min-width: 768px) { .navbar-text { float: left; margin-left: 15px; margin-right: 15px; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; margin-right: -15px; } .navbar-right ~ .navbar-right { margin-right: 0; } } .navbar-default { background-color: #3a3f44; border-color: #2b2e32; } .navbar-default .navbar-brand { color: #c8c8c8; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #ffffff; background-color: none; } .navbar-default .navbar-text { color: #c8c8c8; } .navbar-default .navbar-nav > li > a { color: #c8c8c8; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #ffffff; background-color: #272b2e; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #ffffff; background-color: #272b2e; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #272b2e; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #272b2e; } .navbar-default .navbar-toggle .icon-bar { background-color: #c8c8c8; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #2b2e32; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { background-color: #272b2e; color: #ffffff; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #c8c8c8; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: #272b2e; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #272b2e; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-default .navbar-link { color: #c8c8c8; } .navbar-default .navbar-link:hover { color: #ffffff; } .navbar-default .btn-link { color: #c8c8c8; } .navbar-default .btn-link:hover, .navbar-default .btn-link:focus { color: #ffffff; } .navbar-default .btn-link[disabled]:hover, fieldset[disabled] .navbar-default .btn-link:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:focus { color: #cccccc; } .navbar-inverse { background-color: #7a8288; border-color: #62686d; } .navbar-inverse .navbar-brand { color: #cccccc; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #ffffff; background-color: none; } .navbar-inverse .navbar-text { color: #cccccc; } .navbar-inverse .navbar-nav > li > a { color: #cccccc; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #ffffff; background-color: #5d6368; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #ffffff; background-color: #5d6368; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #cccccc; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #5d6368; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #5d6368; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #ffffff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #697075; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { background-color: #5d6368; color: #ffffff; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #62686d; } .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #62686d; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #cccccc; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #ffffff; background-color: #5d6368; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #ffffff; background-color: #5d6368; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #cccccc; background-color: transparent; } } .navbar-inverse .navbar-link { color: #cccccc; } .navbar-inverse .navbar-link:hover { color: #ffffff; } .navbar-inverse .btn-link { color: #cccccc; } .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link:focus { color: #ffffff; } .navbar-inverse .btn-link[disabled]:hover, fieldset[disabled] .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:focus { color: #cccccc; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: transparent; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { content: "/\00a0"; padding: 0 5px; color: #cccccc; } .breadcrumb > .active { color: #7a8288; } .pagination { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pagination > li { display: inline; } .pagination > li > a, .pagination > li > span { position: relative; float: left; padding: 8px 12px; line-height: 1.42857143; text-decoration: none; color: #ffffff; background-color: #3a3f44; border: 1px solid rgba(0, 0, 0, 0.6); margin-left: -1px; } .pagination > li:first-child > a, .pagination > li:first-child > span { margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px; } .pagination > li:last-child > a, .pagination > li:last-child > span { border-bottom-right-radius: 4px; border-top-right-radius: 4px; } .pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus { z-index: 3; color: #ffffff; background-color: transparent; border-color: rgba(0, 0, 0, 0.6); } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { z-index: 2; color: #ffffff; background-color: #232628; border-color: rgba(0, 0, 0, 0.6); cursor: default; } .pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus { color: #7a8288; background-color: #ffffff; border-color: rgba(0, 0, 0, 0.6); cursor: not-allowed; } .pagination-lg > li > a, .pagination-lg > li > span { padding: 14px 16px; font-size: 18px; line-height: 1.33; } .pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span { border-bottom-left-radius: 6px; border-top-left-radius: 6px; } .pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span { border-bottom-right-radius: 6px; border-top-right-radius: 6px; } .pagination-sm > li > a, .pagination-sm > li > span { padding: 5px 10px; font-size: 12px; line-height: 1.5; } .pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span { border-bottom-left-radius: 3px; border-top-left-radius: 3px; } .pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span { border-bottom-right-radius: 3px; border-top-right-radius: 3px; } .pager { padding-left: 0; margin: 20px 0; list-style: none; text-align: center; } .pager li { display: inline; } .pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #3a3f44; border: 1px solid rgba(0, 0, 0, 0.6); border-radius: 15px; } .pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: transparent; } .pager .next > a, .pager .next > span { float: right; } .pager .previous > a, .pager .previous > span { float: left; } .pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #7a8288; background-color: #3a3f44; cursor: not-allowed; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: bold; line-height: 1; color: #ffffff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; } a.label:hover, a.label:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .btn .label { position: relative; top: -1px; } .label-default { background-color: #3a3f44; } .label-default[href]:hover, .label-default[href]:focus { background-color: #232628; } .label-primary { background-color: #7a8288; } .label-primary[href]:hover, .label-primary[href]:focus { background-color: #62686d; } .label-success { background-color: #62c462; } .label-success[href]:hover, .label-success[href]:focus { background-color: #42b142; } .label-info { background-color: #5bc0de; } .label-info[href]:hover, .label-info[href]:focus { background-color: #31b0d5; } .label-warning { background-color: #f89406; } .label-warning[href]:hover, .label-warning[href]:focus { background-color: #c67605; } .label-danger { background-color: #ee5f5b; } .label-danger[href]:hover, .label-danger[href]:focus { background-color: #e9322d; } .badge { display: inline-block; min-width: 10px; padding: 3px 7px; font-size: 12px; font-weight: bold; color: #ffffff; line-height: 1; vertical-align: middle; white-space: nowrap; text-align: center; background-color: #7a8288; border-radius: 10px; } .badge:empty { display: none; } .btn .badge { position: relative; top: -1px; } .btn-xs .badge, .btn-group-xs > .btn .badge { top: 0; padding: 1px 5px; } a.badge:hover, a.badge:focus { color: #ffffff; text-decoration: none; cursor: pointer; } .list-group-item.active > .badge, .nav-pills > .active > a > .badge { color: #ffffff; background-color: #7a8288; } .list-group-item > .badge { float: right; } .list-group-item > .badge + .badge { margin-right: 5px; } .nav-pills > li > a > .badge { margin-left: 3px; } .jumbotron { padding-top: 30px; padding-bottom: 30px; margin-bottom: 30px; color: inherit; background-color: #1c1e22; } .jumbotron h1, .jumbotron .h1 { color: inherit; } .jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; } .jumbotron > hr { border-top-color: #050506; } .container .jumbotron, .container-fluid .jumbotron { border-radius: 6px; } .jumbotron .container { max-width: 100%; } @media screen and (min-width: 768px) { .jumbotron { padding-top: 48px; padding-bottom: 48px; } .container .jumbotron, .container-fluid .jumbotron { padding-left: 60px; padding-right: 60px; } .jumbotron h1, .jumbotron .h1 { font-size: 63px; } } .thumbnail { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #1c1e22; border: 1px solid #0c0d0e; border-radius: 4px; -webkit-transition: border 0.2s ease-in-out; -o-transition: border 0.2s ease-in-out; transition: border 0.2s ease-in-out; } .thumbnail > img, .thumbnail a > img { margin-left: auto; margin-right: auto; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #ffffff; } .thumbnail .caption { padding: 9px; color: #c8c8c8; } .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable, .alert-dismissible { padding-right: 35px; } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #62c462; border-color: #62bd4f; color: #ffffff; } .alert-success hr { border-top-color: #55b142; } .alert-success .alert-link { color: #e6e6e6; } .alert-info { background-color: #5bc0de; border-color: #3dced8; color: #ffffff; } .alert-info hr { border-top-color: #2ac7d2; } .alert-info .alert-link { color: #e6e6e6; } .alert-warning { background-color: #f89406; border-color: #e96506; color: #ffffff; } .alert-warning hr { border-top-color: #d05a05; } .alert-warning .alert-link { color: #e6e6e6; } .alert-danger { background-color: #ee5f5b; border-color: #ed4d63; color: #ffffff; } .alert-danger hr { border-top-color: #ea364f; } .alert-danger .alert-link { color: #e6e6e6; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } .progress { overflow: hidden; height: 20px; margin-bottom: 20px; background-color: #1c1e22; border-radius: 4px; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } .progress-bar { float: left; width: 0%; height: 100%; font-size: 12px; line-height: 20px; color: #ffffff; text-align: center; background-color: #7a8288; -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .progress-bar, .progress-bar-striped { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-size: 40px 40px; } .progress.active .progress-bar, .progress-bar.active { -webkit-animation: progress-bar-stripes 2s linear infinite; -o-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-bar-success { background-color: #62c462; } .progress-striped .progress-bar-success { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-info { background-color: #5bc0de; } .progress-striped .progress-bar-info { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-warning { background-color: #f89406; } .progress-striped .progress-bar-warning { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-bar-danger { background-color: #ee5f5b; } .progress-striped .progress-bar-danger { background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .media { margin-top: 15px; } .media:first-child { margin-top: 0; } .media, .media-body { zoom: 1; overflow: hidden; } .media-body { width: 10000px; } .media-object { display: block; } .media-object.img-thumbnail { max-width: none; } .media-right, .media > .pull-right { padding-left: 10px; } .media-left, .media > .pull-left { padding-right: 10px; } .media-left, .media-right, .media-body { display: table-cell; vertical-align: top; } .media-middle { vertical-align: middle; } .media-bottom { vertical-align: bottom; } .media-heading { margin-top: 0; margin-bottom: 5px; } .media-list { padding-left: 0; list-style: none; } .list-group { margin-bottom: 20px; padding-left: 0; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #32383e; border: 1px solid rgba(0, 0, 0, 0.6); } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } a.list-group-item, button.list-group-item { color: #c8c8c8; } a.list-group-item .list-group-item-heading, button.list-group-item .list-group-item-heading { color: #ffffff; } a.list-group-item:hover, button.list-group-item:hover, a.list-group-item:focus, button.list-group-item:focus { text-decoration: none; color: #c8c8c8; background-color: #3e444c; } button.list-group-item { width: 100%; text-align: left; } .list-group-item.disabled, .list-group-item.disabled:hover, .list-group-item.disabled:focus { background-color: #999999; color: #7a8288; cursor: not-allowed; } .list-group-item.disabled .list-group-item-heading, .list-group-item.disabled:hover .list-group-item-heading, .list-group-item.disabled:focus .list-group-item-heading { color: inherit; } .list-group-item.disabled .list-group-item-text, .list-group-item.disabled:hover .list-group-item-text, .list-group-item.disabled:focus .list-group-item-text { color: #7a8288; } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #ffffff; background-color: #3e444c; border-color: rgba(0, 0, 0, 0.6); } .list-group-item.active .list-group-item-heading, .list-group-item.active:hover .list-group-item-heading, .list-group-item.active:focus .list-group-item-heading, .list-group-item.active .list-group-item-heading > small, .list-group-item.active:hover .list-group-item-heading > small, .list-group-item.active:focus .list-group-item-heading > small, .list-group-item.active .list-group-item-heading > .small, .list-group-item.active:hover .list-group-item-heading > .small, .list-group-item.active:focus .list-group-item-heading > .small { color: inherit; } .list-group-item.active .list-group-item-text, .list-group-item.active:hover .list-group-item-text, .list-group-item.active:focus .list-group-item-text { color: #a2aab4; } .list-group-item-success { color: #ffffff; background-color: #62c462; } a.list-group-item-success, button.list-group-item-success { color: #ffffff; } a.list-group-item-success .list-group-item-heading, button.list-group-item-success .list-group-item-heading { color: inherit; } a.list-group-item-success:hover, button.list-group-item-success:hover, a.list-group-item-success:focus, button.list-group-item-success:focus { color: #ffffff; background-color: #4fbd4f; } a.list-group-item-success.active, button.list-group-item-success.active, a.list-group-item-success.active:hover, button.list-group-item-success.active:hover, a.list-group-item-success.active:focus, button.list-group-item-success.active:focus { color: #fff; background-color: #ffffff; border-color: #ffffff; } .list-group-item-info { color: #ffffff; background-color: #5bc0de; } a.list-group-item-info, button.list-group-item-info { color: #ffffff; } a.list-group-item-info .list-group-item-heading, button.list-group-item-info .list-group-item-heading { color: inherit; } a.list-group-item-info:hover, button.list-group-item-info:hover, a.list-group-item-info:focus, button.list-group-item-info:focus { color: #ffffff; background-color: #46b8da; } a.list-group-item-info.active, button.list-group-item-info.active, a.list-group-item-info.active:hover, button.list-group-item-info.active:hover, a.list-group-item-info.active:focus, button.list-group-item-info.active:focus { color: #fff; background-color: #ffffff; border-color: #ffffff; } .list-group-item-warning { color: #ffffff; background-color: #f89406; } a.list-group-item-warning, button.list-group-item-warning { color: #ffffff; } a.list-group-item-warning .list-group-item-heading, button.list-group-item-warning .list-group-item-heading { color: inherit; } a.list-group-item-warning:hover, button.list-group-item-warning:hover, a.list-group-item-warning:focus, button.list-group-item-warning:focus { color: #ffffff; background-color: #df8505; } a.list-group-item-warning.active, button.list-group-item-warning.active, a.list-group-item-warning.active:hover, button.list-group-item-warning.active:hover, a.list-group-item-warning.active:focus, button.list-group-item-warning.active:focus { color: #fff; background-color: #ffffff; border-color: #ffffff; } .list-group-item-danger { color: #ffffff; background-color: #ee5f5b; } a.list-group-item-danger, button.list-group-item-danger { color: #ffffff; } a.list-group-item-danger .list-group-item-heading, button.list-group-item-danger .list-group-item-heading { color: inherit; } a.list-group-item-danger:hover, button.list-group-item-danger:hover, a.list-group-item-danger:focus, button.list-group-item-danger:focus { color: #ffffff; background-color: #ec4844; } a.list-group-item-danger.active, button.list-group-item-danger.active, a.list-group-item-danger.active:hover, button.list-group-item-danger.active:hover, a.list-group-item-danger.active:focus, button.list-group-item-danger.active:focus { color: #fff; background-color: #ffffff; border-color: #ffffff; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #2e3338; border: 1px solid transparent; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-body { padding: 15px; } .panel-heading { padding: 10px 15px; border-bottom: 1px solid transparent; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading > .dropdown .dropdown-toggle { color: inherit; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 16px; color: inherit; } .panel-title > a, .panel-title > small, .panel-title > .small, .panel-title > small > a, .panel-title > .small > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #3e444c; border-top: 1px solid rgba(0, 0, 0, 0.6); border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .list-group, .panel > .panel-collapse > .list-group { margin-bottom: 0; } .panel > .list-group .list-group-item, .panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; } .panel > .list-group:first-child .list-group-item:first-child, .panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { border-top: 0; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .list-group:last-child .list-group-item:last-child, .panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { border-bottom: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; } .list-group + .panel-footer { border-top-width: 0; } .panel > .table, .panel > .table-responsive > .table, .panel > .panel-collapse > .table { margin-bottom: 0; } .panel > .table caption, .panel > .table-responsive > .table caption, .panel > .panel-collapse > .table caption { padding-left: 15px; padding-right: 15px; } .panel > .table:first-child, .panel > .table-responsive:first-child > .table:first-child { border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { border-top-left-radius: 3px; border-top-right-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { border-top-left-radius: 3px; } .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { border-top-right-radius: 3px; } .panel > .table:last-child, .panel > .table-responsive:last-child > .table:last-child { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { border-bottom-left-radius: 3px; } .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { border-bottom-right-radius: 3px; } .panel > .panel-body + .table, .panel > .panel-body + .table-responsive, .panel > .table + .panel-body, .panel > .table-responsive + .panel-body { border-top: 1px solid #1c1e22; } .panel > .table > tbody:first-child > tr:first-child th, .panel > .table > tbody:first-child > tr:first-child td { border-top: 0; } .panel > .table-bordered, .panel > .table-responsive > .table-bordered { border: 0; } .panel > .table-bordered > thead > tr > th:first-child, .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, .panel > .table-bordered > tbody > tr > th:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, .panel > .table-bordered > tfoot > tr > th:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, .panel > .table-bordered > thead > tr > td:first-child, .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, .panel > .table-bordered > tbody > tr > td:first-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, .panel > .table-bordered > tfoot > tr > td:first-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; } .panel > .table-bordered > thead > tr > th:last-child, .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, .panel > .table-bordered > tbody > tr > th:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, .panel > .table-bordered > tfoot > tr > th:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, .panel > .table-bordered > thead > tr > td:last-child, .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, .panel > .table-bordered > tbody > tr > td:last-child, .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, .panel > .table-bordered > tfoot > tr > td:last-child, .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; } .panel > .table-bordered > thead > tr:first-child > td, .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, .panel > .table-bordered > tbody > tr:first-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, .panel > .table-bordered > thead > tr:first-child > th, .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, .panel > .table-bordered > tbody > tr:first-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; } .panel > .table-bordered > tbody > tr:last-child > td, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, .panel > .table-bordered > tfoot > tr:last-child > td, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, .panel > .table-bordered > tbody > tr:last-child > th, .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, .panel > .table-bordered > tfoot > tr:last-child > th, .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; } .panel > .table-responsive { border: 0; margin-bottom: 0; } .panel-group { margin-bottom: 20px; } .panel-group .panel { margin-bottom: 0; border-radius: 4px; } .panel-group .panel + .panel { margin-top: 5px; } .panel-group .panel-heading { border-bottom: 0; } .panel-group .panel-heading + .panel-collapse > .panel-body, .panel-group .panel-heading + .panel-collapse > .list-group { border-top: 1px solid rgba(0, 0, 0, 0.6); } .panel-group .panel-footer { border-top: 0; } .panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid rgba(0, 0, 0, 0.6); } .panel-default { border-color: rgba(0, 0, 0, 0.6); } .panel-default > .panel-heading { color: #c8c8c8; background-color: #3e444c; border-color: rgba(0, 0, 0, 0.6); } .panel-default > .panel-heading + .panel-collapse > .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-default > .panel-heading .badge { color: #3e444c; background-color: #c8c8c8; } .panel-default > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-primary { border-color: rgba(0, 0, 0, 0.6); } .panel-primary > .panel-heading { color: #ffffff; background-color: #7a8288; border-color: rgba(0, 0, 0, 0.6); } .panel-primary > .panel-heading + .panel-collapse > .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-primary > .panel-heading .badge { color: #7a8288; background-color: #ffffff; } .panel-primary > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-success { border-color: rgba(0, 0, 0, 0.6); } .panel-success > .panel-heading { color: #ffffff; background-color: #62c462; border-color: rgba(0, 0, 0, 0.6); } .panel-success > .panel-heading + .panel-collapse > .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-success > .panel-heading .badge { color: #62c462; background-color: #ffffff; } .panel-success > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-info { border-color: rgba(0, 0, 0, 0.6); } .panel-info > .panel-heading { color: #ffffff; background-color: #5bc0de; border-color: rgba(0, 0, 0, 0.6); } .panel-info > .panel-heading + .panel-collapse > .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-info > .panel-heading .badge { color: #5bc0de; background-color: #ffffff; } .panel-info > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-warning { border-color: rgba(0, 0, 0, 0.6); } .panel-warning > .panel-heading { color: #ffffff; background-color: #f89406; border-color: rgba(0, 0, 0, 0.6); } .panel-warning > .panel-heading + .panel-collapse > .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-warning > .panel-heading .badge { color: #f89406; background-color: #ffffff; } .panel-warning > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .panel-danger { border-color: rgba(0, 0, 0, 0.6); } .panel-danger > .panel-heading { color: #ffffff; background-color: #ee5f5b; border-color: rgba(0, 0, 0, 0.6); } .panel-danger > .panel-heading + .panel-collapse > .panel-body { border-top-color: rgba(0, 0, 0, 0.6); } .panel-danger > .panel-heading .badge { color: #ee5f5b; background-color: #ffffff; } .panel-danger > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: rgba(0, 0, 0, 0.6); } .embed-responsive { position: relative; display: block; height: 0; padding: 0; overflow: hidden; } .embed-responsive .embed-responsive-item, .embed-responsive iframe, .embed-responsive embed, .embed-responsive object, .embed-responsive video { position: absolute; top: 0; left: 0; bottom: 0; height: 100%; width: 100%; border: 0; } .embed-responsive-16by9 { padding-bottom: 56.25%; } .embed-responsive-4by3 { padding-bottom: 75%; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #1c1e22; border: 1px solid #0c0d0e; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .well-lg { padding: 24px; border-radius: 6px; } .well-sm { padding: 9px; border-radius: 3px; } .close { float: right; font-size: 21px; font-weight: bold; line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover, .close:focus { color: #000000; text-decoration: none; cursor: pointer; opacity: 0.5; filter: alpha(opacity=50); } button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; } .modal-open { overflow: hidden; } .modal { display: none; overflow: hidden; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; -webkit-overflow-scrolling: touch; outline: 0; } .modal.fade .modal-dialog { -webkit-transform: translate(0, -25%); -ms-transform: translate(0, -25%); -o-transform: translate(0, -25%); transform: translate(0, -25%); -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; } .modal.in .modal-dialog { -webkit-transform: translate(0, 0); -ms-transform: translate(0, 0); -o-transform: translate(0, 0); transform: translate(0, 0); } .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .modal-dialog { position: relative; width: auto; margin: 10px; } .modal-content { position: relative; background-color: #2e3338; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); background-clip: padding-box; outline: 0; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; filter: alpha(opacity=0); } .modal-backdrop.in { opacity: 0.5; filter: alpha(opacity=50); } .modal-header { padding: 15px; border-bottom: 1px solid #1c1e22; min-height: 16.42857143px; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.42857143; } .modal-body { position: relative; padding: 20px; } .modal-footer { padding: 20px; text-align: right; border-top: 1px solid #1c1e22; } .modal-footer .btn + .btn { margin-left: 5px; margin-bottom: 0; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; } .modal-content { -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } .modal-sm { width: 300px; } } @media (min-width: 992px) { .modal-lg { width: 900px; } } .tooltip { position: absolute; z-index: 1030; display: block; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; line-break: auto; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; word-wrap: normal; font-size: 12px; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.9; filter: alpha(opacity=90); } .tooltip.top { margin-top: -3px; padding: 5px 0; } .tooltip.right { margin-left: 3px; padding: 0 5px; } .tooltip.bottom { margin-top: 3px; padding: 5px 0; } .tooltip.left { margin-left: -3px; padding: 0 5px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; background-color: rgba(0, 0, 0, 0.9); border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: rgba(0, 0, 0, 0.9); } .tooltip.top-left .tooltip-arrow { bottom: 0; right: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: rgba(0, 0, 0, 0.9); } .tooltip.top-right .tooltip-arrow { bottom: 0; left: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: rgba(0, 0, 0, 0.9); } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: rgba(0, 0, 0, 0.9); } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: rgba(0, 0, 0, 0.9); } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: rgba(0, 0, 0, 0.9); } .tooltip.bottom-left .tooltip-arrow { top: 0; right: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: rgba(0, 0, 0, 0.9); } .tooltip.bottom-right .tooltip-arrow { top: 0; left: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: rgba(0, 0, 0, 0.9); } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 276px; padding: 1px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; font-weight: normal; letter-spacing: normal; line-break: auto; line-height: 1.42857143; text-align: left; text-align: start; text-decoration: none; text-shadow: none; text-transform: none; white-space: normal; word-break: normal; word-spacing: normal; word-wrap: normal; font-size: 14px; background-color: #2e3338; background-clip: padding-box; border: 1px solid #999999; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 6px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover-title { margin: 0; padding: 8px 14px; font-size: 14px; background-color: #2e3338; border-bottom: 1px solid #22262a; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover > .arrow, .popover > .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover > .arrow { border-width: 11px; } .popover > .arrow:after { border-width: 10px; content: ""; } .popover.top > .arrow { left: 50%; margin-left: -11px; border-bottom-width: 0; border-top-color: #666666; border-top-color: rgba(0, 0, 0, 0.25); bottom: -11px; } .popover.top > .arrow:after { content: " "; bottom: 1px; margin-left: -10px; border-bottom-width: 0; border-top-color: #2e3338; } .popover.right > .arrow { top: 50%; left: -11px; margin-top: -11px; border-left-width: 0; border-right-color: #666666; border-right-color: rgba(0, 0, 0, 0.25); } .popover.right > .arrow:after { content: " "; left: 1px; bottom: -10px; border-left-width: 0; border-right-color: #2e3338; } .popover.bottom > .arrow { left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #666666; border-bottom-color: rgba(0, 0, 0, 0.25); top: -11px; } .popover.bottom > .arrow:after { content: " "; top: 1px; margin-left: -10px; border-top-width: 0; border-bottom-color: #2e3338; } .popover.left > .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #666666; border-left-color: rgba(0, 0, 0, 0.25); } .popover.left > .arrow:after { content: " "; right: 1px; border-right-width: 0; border-left-color: #2e3338; bottom: -10px; } .carousel { position: relative; } .carousel-inner { position: relative; overflow: hidden; width: 100%; } .carousel-inner > .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { line-height: 1; } @media all and (transform-3d), (-webkit-transform-3d) { .carousel-inner > .item { -webkit-transition: -webkit-transform 0.6s ease-in-out; -moz-transition: -moz-transform 0.6s ease-in-out; -o-transition: -o-transform 0.6s ease-in-out; transition: transform 0.6s ease-in-out; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; backface-visibility: hidden; -webkit-perspective: 1000px; -moz-perspective: 1000px; perspective: 1000px; } .carousel-inner > .item.next, .carousel-inner > .item.active.right { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); left: 0; } .carousel-inner > .item.prev, .carousel-inner > .item.active.left { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); left: 0; } .carousel-inner > .item.next.left, .carousel-inner > .item.prev.right, .carousel-inner > .item.active { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); left: 0; } } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; left: 0; bottom: 0; width: 15%; opacity: 0.5; filter: alpha(opacity=50); font-size: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-control.left { background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } .carousel-control.right { left: auto; right: 0; background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } .carousel-control:hover, .carousel-control:focus { outline: 0; color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right { position: absolute; top: 50%; margin-top: -10px; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .glyphicon-chevron-left { left: 50%; margin-left: -10px; } .carousel-control .icon-next, .carousel-control .glyphicon-chevron-right { right: 50%; margin-right: -10px; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; line-height: 1; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; margin-left: -30%; padding-left: 0; list-style: none; text-align: center; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; border: 1px solid #ffffff; border-radius: 10px; cursor: pointer; background-color: #000 \9; background-color: rgba(0, 0, 0, 0); } .carousel-indicators .active { margin: 0; width: 12px; height: 12px; background-color: #ffffff; } .carousel-caption { position: absolute; left: 15%; right: 15%; bottom: 20px; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #ffffff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-prev, .carousel-control .icon-next { width: 30px; height: 30px; margin-top: -15px; font-size: 30px; } .carousel-control .glyphicon-chevron-left, .carousel-control .icon-prev { margin-left: -15px; } .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next { margin-right: -15px; } .carousel-caption { left: 20%; right: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .clearfix:before, .clearfix:after, .dl-horizontal dd:before, .dl-horizontal dd:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-footer:before, .modal-footer:after { content: " "; display: table; } .clearfix:after, .dl-horizontal dd:after, .container:after, .container-fluid:after, .row:after, .form-horizontal .form-group:after, .btn-toolbar:after, .btn-group-vertical > .btn-group:after, .nav:after, .navbar:after, .navbar-header:after, .navbar-collapse:after, .pager:after, .panel-body:after, .modal-footer:after { clear: both; } .center-block { display: block; margin-left: auto; margin-right: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none !important; } .show { display: block !important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .hidden { display: none !important; } .affix { position: fixed; } @-ms-viewport { width: device-width; } .visible-xs, .visible-sm, .visible-md, .visible-lg { display: none !important; } .visible-xs-block, .visible-xs-inline, .visible-xs-inline-block, .visible-sm-block, .visible-sm-inline, .visible-sm-inline-block, .visible-md-block, .visible-md-inline, .visible-md-inline-block, .visible-lg-block, .visible-lg-inline, .visible-lg-inline-block { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } table.visible-xs { display: table !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (max-width: 767px) { .visible-xs-block { display: block !important; } } @media (max-width: 767px) { .visible-xs-inline { display: inline !important; } } @media (max-width: 767px) { .visible-xs-inline-block { display: inline-block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } table.visible-sm { display: table !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-block { display: block !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline { display: inline !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm-inline-block { display: inline-block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } table.visible-md { display: table !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-block { display: block !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline { display: inline !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md-inline-block { display: inline-block !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } table.visible-lg { display: table !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg-block { display: block !important; } } @media (min-width: 1200px) { .visible-lg-inline { display: inline !important; } } @media (min-width: 1200px) { .visible-lg-inline-block { display: inline-block !important; } } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } } .visible-print { display: none !important; } @media print { .visible-print { display: block !important; } table.visible-print { display: table !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } } .visible-print-block { display: none !important; } @media print { .visible-print-block { display: block !important; } } .visible-print-inline { display: none !important; } @media print { .visible-print-inline { display: inline !important; } } .visible-print-inline-block { display: none !important; } @media print { .visible-print-inline-block { display: inline-block !important; } } @media print { .hidden-print { display: none !important; } } .navbar { background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; border: 1px solid rgba(0, 0, 0, 0.6); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); } .navbar-inverse { background-image: -webkit-linear-gradient(#8a9196, #7a8288 60%, #70787d); background-image: -o-linear-gradient(#8a9196, #7a8288 60%, #70787d); background-image: linear-gradient(#8a9196, #7a8288 60%, #70787d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8a9196', endColorstr='#ff70787d', GradientType=0); filter: none; } .navbar-inverse .badge { background-color: #5d6368; } .navbar-nav > li > a { border-right: 1px solid rgba(0, 0, 0, 0.2); border-left: 1px solid rgba(255, 255, 255, 0.1); } .navbar-nav > li > a:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; border-left-color: transparent; } .navbar .nav .open > a { border-color: transparent; } .navbar-nav > li.active > a { border-left-color: transparent; } .navbar-form { margin-left: 5px; margin-right: 5px; } .btn, .btn:hover { border-color: rgba(0, 0, 0, 0.6); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); } .btn-default { background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .btn-default:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .btn-primary { background-image: -webkit-linear-gradient(#8a9196, #7a8288 60%, #70787d); background-image: -o-linear-gradient(#8a9196, #7a8288 60%, #70787d); background-image: linear-gradient(#8a9196, #7a8288 60%, #70787d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff8a9196', endColorstr='#ff70787d', GradientType=0); filter: none; } .btn-primary:hover { background-image: -webkit-linear-gradient(#404448, #4e5458 40%, #585e62); background-image: -o-linear-gradient(#404448, #4e5458 40%, #585e62); background-image: linear-gradient(#404448, #4e5458 40%, #585e62); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff404448', endColorstr='#ff585e62', GradientType=0); filter: none; } .btn-success { background-image: -webkit-linear-gradient(#78cc78, #62c462 60%, #53be53); background-image: -o-linear-gradient(#78cc78, #62c462 60%, #53be53); background-image: linear-gradient(#78cc78, #62c462 60%, #53be53); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff78cc78', endColorstr='#ff53be53', GradientType=0); filter: none; } .btn-success:hover { background-image: -webkit-linear-gradient(#2f7d2f, #379337 40%, #3da23d); background-image: -o-linear-gradient(#2f7d2f, #379337 40%, #3da23d); background-image: linear-gradient(#2f7d2f, #379337 40%, #3da23d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff2f7d2f', endColorstr='#ff3da23d', GradientType=0); filter: none; } .btn-info { background-image: -webkit-linear-gradient(#74cae3, #5bc0de 60%, #4ab9db); background-image: -o-linear-gradient(#74cae3, #5bc0de 60%, #4ab9db); background-image: linear-gradient(#74cae3, #5bc0de 60%, #4ab9db); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff74cae3', endColorstr='#ff4ab9db', GradientType=0); filter: none; } .btn-info:hover { background-image: -webkit-linear-gradient(#20829f, #2596b8 40%, #28a4c9); background-image: -o-linear-gradient(#20829f, #2596b8 40%, #28a4c9); background-image: linear-gradient(#20829f, #2596b8 40%, #28a4c9); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff20829f', endColorstr='#ff28a4c9', GradientType=0); filter: none; } .btn-warning { background-image: -webkit-linear-gradient(#faa123, #f89406 60%, #e48806); background-image: -o-linear-gradient(#faa123, #f89406 60%, #e48806); background-image: linear-gradient(#faa123, #f89406 60%, #e48806); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffaa123', endColorstr='#ffe48806', GradientType=0); filter: none; } .btn-warning:hover { background-image: -webkit-linear-gradient(#804d03, #9e5f04 40%, #b26a04); background-image: -o-linear-gradient(#804d03, #9e5f04 40%, #b26a04); background-image: linear-gradient(#804d03, #9e5f04 40%, #b26a04); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff804d03', endColorstr='#ffb26a04', GradientType=0); filter: none; } .btn-danger { background-image: -webkit-linear-gradient(#f17a77, #ee5f5b 60%, #ec4d49); background-image: -o-linear-gradient(#f17a77, #ee5f5b 60%, #ec4d49); background-image: linear-gradient(#f17a77, #ee5f5b 60%, #ec4d49); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff17a77', endColorstr='#ffec4d49', GradientType=0); filter: none; } .btn-danger:hover { background-image: -webkit-linear-gradient(#bb1813, #d71c16 40%, #e7201a); background-image: -o-linear-gradient(#bb1813, #d71c16 40%, #e7201a); background-image: linear-gradient(#bb1813, #d71c16 40%, #e7201a); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffbb1813', endColorstr='#ffe7201a', GradientType=0); filter: none; } .btn-link, .btn-link:hover { border-color: transparent; } h1, h2, h3, h4, h5, h6 { text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3); } .text-primary, .text-primary:hover { color: #7a8288; } .text-success, .text-success:hover { color: #62c462; } .text-danger, .text-danger:hover { color: #ee5f5b; } .text-warning, .text-warning:hover { color: #f89406; } .text-info, .text-info:hover { color: #5bc0de; } .table a { text-decoration: underline; } .table .success, .table .warning, .table .danger, .table .info { color: #fff; } .table-bordered tbody tr.success td, .table-bordered tbody tr.warning td, .table-bordered tbody tr.danger td, .table-bordered tbody tr.success:hover td, .table-bordered tbody tr.warning:hover td, .table-bordered tbody tr.danger:hover td { border-color: #1c1e22; } .table-responsive > .table { background-color: #2e3338; } input, textarea { color: #272b30; } .has-warning .help-block, .has-warning .control-label, .has-warning .form-control-feedback { color: #f89406; } .has-warning .form-control, .has-warning .form-control:focus { border-color: #f89406; } .has-error .help-block, .has-error .control-label, .has-error .form-control-feedback { color: #ee5f5b; } .has-error .form-control, .has-error .form-control:focus { border-color: #ee5f5b; } .has-success .help-block, .has-success .control-label, .has-success .form-control-feedback { color: #62c462; } .has-success .form-control, .has-success .form-control:focus { border-color: #62c462; } legend { color: #fff; } .input-group-addon { border-color: rgba(0, 0, 0, 0.6); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; color: #ffffff; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { border-color: rgba(0, 0, 0, 0.6); } .nav-pills > li > a { background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; border: 1px solid rgba(0, 0, 0, 0.6); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); } .nav-pills > li > a:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; border: 1px solid rgba(0, 0, 0, 0.6); } .nav-pills > li.active > a, .nav-pills > li.active > a:hover { background-color: none; background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; border: 1px solid rgba(0, 0, 0, 0.6); } .nav-pills > li.disabled > a, .nav-pills > li.disabled > a:hover { background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .pagination > li > a { text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .pagination > li > a:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .pagination > li.active > a { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .pagination > li.disabled > a, .pagination > li.disabled > a:hover { background-color: transparent; background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .pager > li > a { background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); } .pager > li > a:hover { background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d); background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d); background-image: linear-gradient(#020202, #101112 40%, #191b1d); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0); filter: none; } .pager > li.disabled > a, .pager > li.disabled > a:hover { background-color: transparent; background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .breadcrumb { border: 1px solid rgba(0, 0, 0, 0.6); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3); background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539); background-image: linear-gradient(#484e55, #3a3f44 60%, #313539); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0); filter: none; } .alert .alert-link, .alert a { color: #fff; text-decoration: underline; } .alert .close { color: #000000; text-decoration: none; } a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active { border-color: #0c0d0e; } .jumbotron { border: 1px solid rgba(0, 0, 0, 0.6); } .panel-primary .panel-heading, .panel-success .panel-heading, .panel-danger .panel-heading, .panel-warning .panel-heading, .panel-info .panel-heading { border-color: #000; }
LiteWaveLabs/LiteWaveWeb
static/css/bootstrap.min.css
CSS
mit
162,109
# cs450 Classwork for CS450, computer graphics
tmiller1996/cs450
README.md
Markdown
mit
47
__version__ = '0.3.2' from datetime import datetime import requests class Item(): def __init__(self, **entries): self.__dict__.update(entries) class User(): def __init__(self, **entries): self.__dict__.update(entries) class HackerNews(): def __init__(self, timeout=5): self.url = 'https://hacker-news.firebaseio.com/v0/{uri}' self.timeout = timeout def request(self, method, uri): url = self.url.format(uri=uri) return requests.request(method, url, timeout=self.timeout) def item(self, item_id): uri = 'item/{item_id}.json'.format(item_id=item_id) response = self.request('GET', uri) item = response.json() if item.get('time'): item['time'] = datetime.fromtimestamp(item['time']) return Item(**item) def user(self, user_id): uri = 'user/{user_id}.json'.format(user_id=user_id) response = self.request('GET', uri) user = response.json() user['created'] = datetime.fromtimestamp(user['created']) return User(**user) def top_stories(self): response = self.request('GET', 'topstories.json') return response.json() def max_item(self): response = self.request('GET', 'maxitem.json') return response.json() def updates(self): response = self.request('GET', 'updates.json') return response.json()
abrinsmead/hackernews-python
hackernews.py
Python
mit
1,430
#!/usr/bin/python # -*- coding:utf-8 -*- # Created Time: Wed May 6 00:22:35 2015 # Purpose: useful functions # Mail: [email protected] __author__ = "Wayne Ho" import json import time from datetime import datetime, date import requests import smtplib from email.mime.text import MIMEText import argparse parser = argparse.ArgumentParser(description='THU Notifier') parser.add_argument("--config", "-f", help="load configuration", required=False, default="", type=str) parser.add_argument("--log-filename", "-l", help="records log", required=False, default=str(int(time.time())) + ".db", type=str) args = parser.parse_args() browser = requests.session() def lprint(content): print json.dumps(content, ensure_ascii=False) def login(browser, username, password): browser.post( 'https://info.tsinghua.edu.cn/Login', { 'redirect': 'NO', 'x': 0, 'y': 0, 'userName': username, 'password': password } ) def send_email(mail_user, mail_passwd, mail_to, smtp, subject, content): # configuration msg = MIMEText(content.encode("utf8")) msg['From'] = mail_user msg['Subject'] = subject msg['To'] = mail_to try: s = smtplib.SMTP() s.connect(smtp) s.login(mail_user, mail_passwd) s.sendmail(mail_user, [mail_to], msg.as_string()) s.close() except Exception, e: print e if __name__ == "__main__": pass
hewr1993/thu_notifier
utils.py
Python
mit
1,619
// This file is automatically generated. package adila.db; /* * HTC One max * * DEVICE: t6ul * MODEL: HTC One max */ final class t6ul_htc20one20max { public static final String DATA = "HTC|One max|"; }
karim/adila
database/src/main/java/adila/db/t6ul_htc20one20max.java
Java
mit
213
#-*- coding:utf-8 -*- import word_cutting if __name__ == "__main__": hashtag_dict = {} with open("../data/NewsEvent.tsv", "r") as file_ob: next(file_ob) for line in file_ob: data = line.split("\t") node_number = data[1] node_text = data[3] if node_number != "0": continue hashtag_list, node_text = word_cutting.filter_syntax_from_text(node_text, "#") for tag in hashtag_list: if hashtag_dict.get(tag) == None: hashtag_dict[tag] = 1 else: hashtag_dict[tag] = hashtag_dict[tag] + 1 file_ob.close() for (k,v) in hashtag_dict.items(): print k,v pass
IDRC-Tsinghua/Vectorize
src/news_event_hashtag.py
Python
mit
755
#pragma once #include <star-tape/tape_archive.hpp> #include <star-tape/tape_entry.hpp> #include <star-tape/tape_operation.hpp> #include <star-tape/tape_convenience.hpp> #include <star-tape/tape_file_proxy.hpp>
5cript/star-tape
include/star-tape/star_tape.hpp
C++
mit
218
Template.iPaypalButton.helpers({ transactionType: function(type, eq){ if(type == eq){ return true; } }, getUrl: function(){ return (_.includes(window.location.origin, 'localhost')) ? 'https://07a592d4.ngrok.io' : window.location.origin; }, getUser: function(){ return Meteor.userId(); } });
ie76/meteor-paypal
client/button/button.js
JavaScript
mit
359
module BzCore VERSION = "0.0.4" end
bitzesty/bz-core
lib/bz_core/version.rb
Ruby
mit
38
<?php /** * The act of forming a personal connection with someone/something (object) unidirectionally/asymmetrically to get updates polled from.Related actions:BefriendAction: Unlike BefriendAction, FollowAction implies that the connection is *not* necessarily reciprocal.SubscribeAction: Unlike SubscribeAction, FollowAction implies that the follower acts as an active agent constantly/actively polling for updates.RegisterAction: Unlike RegisterAction, FollowAction implies that the agent is interested in continuing receiving updates from the object.JoinAction: Unlike JoinAction, FollowAction implies that the agent is interested in getting updates from the object.TrackAction: Unlike TrackAction, FollowAction refers to the polling of updates of all aspects of animate objects rather than the location of inanimate objects (e.g. you track a package, but you don't follow it). * * @see http://schema.org/FollowAction */ abstract class TypeFollowAction extends TypeInteractAction { /** * The Schema.org Type Scope * * @var string */ protected static $scope = 'https://schema.org/FollowAction'; /** * A sub property of object. The person or organization being followed. * Expected Type: Organization, Person * * @var array */ protected static $followee = array('value' => 'followee', 'expectedTypes' => array('Organization', 'Person') ); /** * Return the 'followee' Property value * * @return string */ public static function pFollowee() { return self::getValue(self::$followee); } }
PAlexcom/Spider4Schema
dist/type/followAction.php
PHP
mit
1,534
package ie.cit.caf.lctutorial3.rowmapper; import ie.cit.caf.lctutorial3.domain.Artist; import ie.cit.caf.lctutorial3.domain.Movement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Collections; import org.springframework.jdbc.core.RowMapper; public class ArtistRowMapper implements RowMapper<Artist> { @Override public Artist mapRow(ResultSet rs, int index) throws SQLException { Artist artist = new Artist(); artist.setId(rs.getInt("id")); artist.setName(rs.getString("fullName")); artist.setGender(rs.getString("gender")); artist.setMovements(Collections.<Movement> emptyList()); return artist; } }
dlarkinc/lc_tutorials
lc-tutorial-03/src/main/java/ie/cit/caf/lctutorial3/rowmapper/ArtistRowMapper.java
Java
mit
656
# JHToast [![CI Status](https://img.shields.io/travis/[email protected]/JHToast.svg?style=flat)](https://travis-ci.org/[email protected]/JHToast) [![Version](https://img.shields.io/cocoapods/v/JHToast.svg?style=flat)](https://cocoapods.org/pods/JHToast) [![License](https://img.shields.io/cocoapods/l/JHToast.svg?style=flat)](https://cocoapods.org/pods/JHToast) [![Platform](https://img.shields.io/cocoapods/p/JHToast.svg?style=flat)](https://cocoapods.org/pods/JHToast) ## Example To run the example project, clone the repo, and run `pod install` from the Example directory first. ## Requirements ## Installation JHToast is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod 'JHToast' ``` ## Author [email protected], [email protected] ## License JHToast is available under the MIT license. See the LICENSE file for more info.
love-my-life/JHToast
README.md
Markdown
mit
922
//========================================================================= // Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files(the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and / or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions : // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // #include "common_def.h" #include "bcn_common_api.h" #ifdef USE_CMPMSC #include "bc7_cmpmsc.h" #endif #ifdef USE_MSC #include "./external/bc7_msc.h" #endif #ifdef USE_MSC16 #include "./external/bc7_msc16.h" #endif #ifdef USE_MSC1 #include "./external/bc7_msc1.h" #endif #ifdef USE_INT #include "./external/bc7_int.h" #endif #ifdef USE_RGBCX_RDO #include "./external/bc7_rgbcx_rdo.h" #endif #ifdef USE_VOLT #include "./external/bc7_volt.h" #endif #ifdef USE_ICBC #include "./external/bc7_icbc.h" #endif #ifdef USE_ARRIS #include "./external/bc7_arris.h" #endif static CGU_Vec4ui CompressBlockBC7_UNORM(CMP_IN CGU_Vec4f image_src[16], CMP_IN CGU_FLOAT fquality) { #ifdef USE_CMPMSC return CompressBlockBC7_CMPMSC(image_src, fquality); #endif #ifdef USE_INT return CompressBlockBC7_INT(image_src, fquality); #endif #ifdef USE_RGBCX_RDO return CompressBlockBC7_RGBCX(image_src, fquality); #endif #ifdef USE_VOLT return CompressBlockBC7_VOLT(image_src, fquality); #endif #ifdef USE_ICBC return CompressBlockBC7_ICBC(image_src, fquality); #endif #if defined(USE_MSC) CGU_Vec4ui res = {0, 0, 0, 0}; return res; #endif #ifdef USE_ARRIS return CompressBlockBC7_ARRIS(image_src, fquality); #endif #ifndef USE_NEW_SINGLE_HEADER_INTERFACES CGU_Vec4ui cmp = {0,0,0,0}; CMP_UNUSED(fquality); CMP_UNUSED(image_src); return cmp; #endif }
GPUOpen-Tools/Compressonator
cmp_core/shaders/bc7_common_encoder.h
C
mit
2,611
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from msrest.serialization import Model class AvailableProvidersList(Model): """List of available countries with details. :param countries: List of available countries. :type countries: list[~azure.mgmt.network.v2017_11_01.models.AvailableProvidersListCountry] """ _validation = { 'countries': {'required': True}, } _attribute_map = { 'countries': {'key': 'countries', 'type': '[AvailableProvidersListCountry]'}, } def __init__(self, countries): super(AvailableProvidersList, self).__init__() self.countries = countries
AutorestCI/azure-sdk-for-python
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/available_providers_list.py
Python
mit
1,072
# frozen_string_literal: true module DeepCover class Node::EmptyBody < Node def initialize(base_node, parent:, index: 0, position: ChildCanBeEmpty.last_empty_position) @position = position super(base_node, parent: parent, index: index, base_children: []) end def loc_hash return {} if @position == true {expression: @position} end def is_statement false end # When parent rewrites us, the %{node} must always be at the beginning because our location can # also be rewritten by our parent, and we want the rewrite to be after it. def rewriting_rules rules = super rules.map do |expression, rule| [expression, "%{node};#{rule.sub('%{node}', 'nil;')}"] end end end end
deep-cover/deep-cover
core_gem/lib/deep_cover/node/empty_body.rb
Ruby
mit
770