answer
stringlengths
15
1.25M
package org.lattilad.bestboard.utils; public interface ExtendedCopy { public Object getCopy(); }
// <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> namespace FritzTheDog.Properties { [global::System.Runtime.CompilerServices.<API key>()] [global::System.CodeDom.Compiler.<API key>( "Microsoft.VisualStudio.Editors.SettingsDesigner.<API key>", "11.0.0.0" )] internal sealed partial class Settings : global::System.Configuration.<API key> { private static Settings defaultInstance = ( (Settings)( global::System.Configuration.<API key>.Synchronized( new Settings() ) ) ); public static Settings Default { get { return defaultInstance; } } } }
// HYHomePopAnimator.h // Fleshy #import <Foundation/Foundation.h> @interface HYHomePopAnimator : NSObject<<API key>> @end
import React from 'react'; import PropTypes from 'prop-types'; import { MainInfoContainer, PosterContainer, PosterImage, AnimeDetails, Row, TitleDetail, Detail, } from 'style/animeMainInfo'; const AnimeMainInfo = props => ( <MainInfoContainer> <PosterContainer> <PosterImage src={props.posterImage} alt="Poster Image Anime" /> </PosterContainer> <AnimeDetails> {Object.keys(props.animeDetails).map(titleDetail => ( <Row key={`${titleDetail}`}> <TitleDetail>{titleDetail}: </TitleDetail> <Detail>{props.animeDetails[titleDetail]}</Detail> </Row> ))} </AnimeDetails> </MainInfoContainer> ); AnimeMainInfo.propTypes = { posterImage: PropTypes.string.isRequired, animeDetails: PropTypes.objectOf(PropTypes.oneOfType([ PropTypes.string, PropTypes.number, ])).isRequired, }; export default AnimeMainInfo;
package leds import ( "fmt" "math/rand" // "time" "github.com/siggy/bbox/bbox/color" "github.com/siggy/rpi_ws281x/golang/ws2811" ) const ( // 2x side fins STRAND_COUNT1 = 5 STRAND_LEN1 = 144 // 1x top and back fins STRAND_COUNT2 = 10 STRAND_LEN2 = 60 LED_COUNT1 = STRAND_COUNT1 * STRAND_LEN1 // 5*144 // * 2x(5) // 144/m LED_COUNT2 = STRAND_COUNT2 * STRAND_LEN2 // 10*60 // * 1x(4 + 2 + 4) // 60/m AMPLITUDE_FACTOR = 0.75 ) type Fish struct { ampLevel float64 closing chan struct{} level <-chan float64 press <-chan struct{} } func InitFish(level <-chan float64, press <-chan struct{}) *Fish { InitLeds(DEFAULT_FREQ, LED_COUNT1, LED_COUNT2) return &Fish{ closing: make(chan struct{}), level: level, press: press, } } func (f *Fish) Run() { defer func() { ws2811.Clear() ws2811.Render() ws2811.Wait() ws2811.Fini() }() ws2811.Clear() strand1 := make([]uint32, LED_COUNT1) strand2 := make([]uint32, LED_COUNT2) mode := color.FILL_EQUALIZE // PURPLE_STREAK mode streakLoc1 := 0.0 streakLoc2 := 0.0 length := 200 speed := 10.0 r := 200 g := 0 b := 100 w := 0 // STANDARD mode iter := 0 weight := float64(0) // FLICKER mode flickerIter := 0 // precompute random color rotation randColors := make([]uint32, LED_COUNT1) for i := 0; i < LED_COUNT1; i++ { randColors[i] = color.Make(0, uint32(rand.Int31n(256)), uint32(rand.Int31n(256)), uint32(rand.Int31n(128))) } for { select { case _, more := <-f.press: if more { mode = (mode + 1) % color.NUM_MODES } else { return } case level, more := <-f.level: if more { f.ampLevel = level } else { return } case _, more := <-f.closing: if !more { return } default: ampLevel := uint32(255.0 * f.ampLevel * AMPLITUDE_FACTOR) switch mode { case color.PURPLE_STREAK: speed = 10.0 sineMap := color.GetSineVals(LED_COUNT1, streakLoc1, int(length)) for i, _ := range strand1 { strand1[i] = color.Black } for led, value := range sineMap { multiplier := float64(value) / 255.0 strand1[led] = color.Make( uint32(multiplier*float64(r)), uint32(multiplier*float64(g)), uint32(multiplier*float64(b)), uint32(multiplier*float64(w)), ) } streakLoc1 += speed if streakLoc1 >= LED_COUNT1 { streakLoc1 = 0 } ws2811.SetBitmap(0, strand1) sineMap = color.GetSineVals(LED_COUNT2, streakLoc2, int(length)) for i, _ := range strand2 { strand2[i] = color.Black } for led, value := range sineMap { multiplier := float64(value) / 255.0 strand2[led] = color.Make( uint32(multiplier*float64(r)), uint32(multiplier*float64(g)), uint32(multiplier*float64(b)), uint32(multiplier*float64(w)), ) } streakLoc2 += speed if streakLoc2 >= LED_COUNT2 { streakLoc2 = 0 } ws2811.SetBitmap(1, strand2) case color.COLOR_STREAKS: speed = 10.0 c := color.Colors[(iter)%len(color.Colors)] sineMap := color.GetSineVals(LED_COUNT1, streakLoc1, int(length)) for i, _ := range strand1 { strand1[i] = color.Black } for led, value := range sineMap { multiplier := float64(value) / 255.0 strand1[led] = color.MultiplyColor(c, multiplier) } streakLoc1 += speed if streakLoc1 >= LED_COUNT1 { streakLoc1 = 0 iter = (iter + 1) % len(color.Colors) } ws2811.SetBitmap(0, strand1) sineMap = color.GetSineVals(LED_COUNT2, streakLoc2, int(length)) for i, _ := range strand2 { strand2[i] = color.Black } for led, value := range sineMap { multiplier := float64(value) / 255.0 strand2[led] = color.MultiplyColor(c, multiplier) } streakLoc2 += speed if streakLoc2 >= LED_COUNT2 { streakLoc2 = 0 } ws2811.SetBitmap(1, strand2) case color.FAST_COLOR_STREAKS: speed = 100.0 c := color.Colors[(iter)%len(color.Colors)] sineMap := color.GetSineVals(LED_COUNT1, streakLoc1, int(length)) for i, _ := range strand1 { strand1[i] = color.Black } for led, value := range sineMap { multiplier := float64(value) / 255.0 strand1[led] = color.MultiplyColor(c, multiplier) } streakLoc1 += speed if streakLoc1 >= LED_COUNT1 { streakLoc1 = 0 iter = (iter + 1) % len(color.Colors) } ws2811.SetBitmap(0, strand1) sineMap = color.GetSineVals(LED_COUNT2, streakLoc2, int(length)) for i, _ := range strand2 { strand2[i] = color.Black } for led, value := range sineMap { multiplier := float64(value) / 255.0 strand2[led] = color.MultiplyColor(c, multiplier) } streakLoc2 += speed if streakLoc2 >= LED_COUNT2 { streakLoc2 = 0 } ws2811.SetBitmap(1, strand2) case color.SOUND_COLOR_STREAKS: speed = 100.0*f.ampLevel + 10.0 c := color.Colors[(iter)%len(color.Colors)] sineMap := color.GetSineVals(LED_COUNT1, streakLoc1, int(length)) for i, _ := range strand1 { strand1[i] = color.Black } for led, value := range sineMap { multiplier := float64(value) / 255.0 strand1[led] = color.MultiplyColor(c, multiplier) } streakLoc1 += speed if streakLoc1 >= LED_COUNT1 { streakLoc1 = 0 iter = (iter + 1) % len(color.Colors) } ws2811.SetBitmap(0, strand1) sineMap = color.GetSineVals(LED_COUNT2, streakLoc2, int(length)) for i, _ := range strand2 { strand2[i] = color.Black } for led, value := range sineMap { multiplier := float64(value) / 255.0 strand2[led] = color.MultiplyColor(c, multiplier) } streakLoc2 += speed if streakLoc2 >= LED_COUNT2 { streakLoc2 = 0 } ws2811.SetBitmap(1, strand2) case color.FILL_RED: for i := 0; i < LED_COUNT1; i += 30 { for j := 0; j < i; j++ { ws2811.SetLed(0, j, color.Red) } err := ws2811.Render() if err != nil { fmt.Printf("ws2811.Render failed: %+v\n", err) panic(err) } err = ws2811.Wait() if err != nil { fmt.Printf("ws2811.Wait failed: %+v\n", err) panic(err) } } for i := 0; i < LED_COUNT2; i += 30 { for j := 0; j < i; j++ { ws2811.SetLed(1, j, color.Red) } err := ws2811.Render() if err != nil { fmt.Printf("ws2811.Render failed: %+v\n", err) panic(err) } err = ws2811.Wait() if err != nil { fmt.Printf("ws2811.Wait failed: %+v\n", err) panic(err) } } for i := 0; i < LED_COUNT1; i += 30 { for j := 0; j < i; j++ { ws2811.SetLed(0, j, color.Make(0, 0, 0, 0)) } err := ws2811.Render() if err != nil { fmt.Printf("ws2811.Render failed: %+v\n", err) panic(err) } err = ws2811.Wait() if err != nil { fmt.Printf("ws2811.Wait failed: %+v\n", err) panic(err) } } for i := 0; i < LED_COUNT2; i += 30 { for j := 0; j < i; j++ { ws2811.SetLed(1, j, color.Make(0, 0, 0, 0)) } err := ws2811.Render() if err != nil { fmt.Printf("ws2811.Render failed: %+v\n", err) panic(err) } err = ws2811.Wait() if err != nil { fmt.Printf("ws2811.Wait failed: %+v\n", err) panic(err) } } case color.SLOW_EQUALIZE: for i := 0; i < STRAND_COUNT1; i++ { c := color.Colors[(iter+i)%len(color.Colors)] for j := 0; j < STRAND_LEN1; j++ { strand1[i*STRAND_LEN1+j] = c } } for i := 0; i < STRAND_COUNT2; i++ { c := color.Colors[(iter+i)%len(color.Colors)] for j := 0; j < STRAND_LEN2; j++ { strand2[i*STRAND_LEN2+j] = c } } // for i, c := range strand1 { // // if i == 0 { // ws2811.SetLed(0, i, c) // if i%10 == 0 { // ws2811.Render() // time.Sleep(1 * time.Second) ws2811.SetBitmap(0, strand1) ws2811.SetBitmap(1, strand2) if weight < 1 { weight += 0.01 } else { weight = 0 iter = (iter + 1) % len(color.Colors) } // time.Sleep(1 * time.Second) case color.FILL_EQUALIZE: for i := 0; i < STRAND_COUNT1; i++ { color1 := color.Colors[(iter+i)%len(color.Colors)] color2 := color.Colors[(iter+i+1)%len(color.Colors)] c := color.MkColorWeight(color1, color2, weight) for j := 0; j < STRAND_LEN1; j++ { strand1[i*STRAND_LEN1+j] = c } } for i := 0; i < STRAND_COUNT2; i++ { color1 := color.Colors[(iter+i)%len(color.Colors)] color2 := color.Colors[(iter+i+1)%len(color.Colors)] c := color.MkColorWeight(color1, color2, weight) for j := 0; j < STRAND_LEN2; j++ { strand2[i*STRAND_LEN2+j] = c } } for i, c := range strand1 { // if i == 0 { ws2811.SetLed(0, i, c) if i%10 == 0 { ws2811.Render() } } for i, c := range strand2 { // if i == 0 { ws2811.SetLed(1, i, c) if i%10 == 0 { ws2811.Render() } } iter = (iter + 1) % len(color.Colors) // time.Sleep(1 * time.Second) case color.EQUALIZE: for i := 0; i < STRAND_COUNT1; i++ { color1 := color.Colors[(iter+i)%len(color.Colors)] color2 := color.Colors[(iter+i+1)%len(color.Colors)] c := color.MkColorWeight(color1, color2, weight) for j := 0; j < STRAND_LEN1; j++ { strand1[i*STRAND_LEN1+j] = c } } for i := 0; i < STRAND_COUNT2; i++ { color1 := color.Colors[(iter+i)%len(color.Colors)] color2 := color.Colors[(iter+i+1)%len(color.Colors)] c := color.MkColorWeight(color1, color2, weight) for j := 0; j < STRAND_LEN2; j++ { strand2[i*STRAND_LEN2+j] = c } } for i, c := range strand1 { // if i == 0 { ws2811.SetLed(0, i, c) if i%10 == 0 { ws2811.Render() } } // time.Sleep(1 * time.Second) // ws2811.SetBitmap(0, strand1) ws2811.SetBitmap(1, strand2) if weight < 1 { weight += 0.01 } else { weight = 0 iter = (iter + 1) % len(color.Colors) } // time.Sleep(1 * time.Second) case color.STANDARD: for i := 0; i < STRAND_COUNT1; i++ { color1 := color.Colors[(iter+i)%len(color.Colors)] color2 := color.Colors[(iter+i+1)%len(color.Colors)] c := color.MkColorWeight(color1, color2, weight) ampColor := color.AmpColor(c, ampLevel) for j := 0; j < STRAND_LEN1; j++ { strand1[i*STRAND_LEN1+j] = ampColor } } for i := 0; i < STRAND_COUNT2; i++ { color1 := color.Colors[(iter+i)%len(color.Colors)] color2 := color.Colors[(iter+i+1)%len(color.Colors)] c := color.MkColorWeight(color1, color2, weight) ampColor := color.AmpColor(c, ampLevel) for j := 0; j < STRAND_LEN2; j++ { strand2[i*STRAND_LEN2+j] = ampColor } } ws2811.SetBitmap(0, strand1) ws2811.SetBitmap(1, strand2) if weight < 1 { weight += 0.01 } else { weight = 0 iter = (iter + 1) % len(color.Colors) } case color.FLICKER: for i := 0; i < LED_COUNT1; i++ { ws2811.SetLed(0, i, color.AmpColor(randColors[(i+flickerIter)%LED_COUNT1], ampLevel)) } for i := 0; i < LED_COUNT2; i++ { ws2811.SetLed(1, i, color.AmpColor(randColors[(i+flickerIter)%LED_COUNT1], ampLevel)) } flickerIter++ case color.AUDIO: ampColor := color.AmpColor(color.TrueBlue, ampLevel) for i := 0; i < LED_COUNT1; i++ { ws2811.SetLed(0, i, ampColor) } for i := 0; i < LED_COUNT2; i++ { ws2811.SetLed(1, i, ampColor) } } err := ws2811.Render() if err != nil { fmt.Printf("ws2811.Render failed: %+v\n", err) panic(err) } err = ws2811.Wait() if err != nil { fmt.Printf("ws2811.Wait failed: %+v\n", err) panic(err) } } } } func (f *Fish) Close() { // TODO: this doesn't block? close(f.closing) }
#!/bin/bash # Stop processing on any error. set -e function <API key>() { declare -r formula="$1" if [[ $(brew list ${formula} &>/dev/null; echo $?) -ne 0 ]]; then brew install ${formula} else echo "$0 - ${formula} is already installed." fi } brew update <API key> cmake <API key> glog <API key> gflags <API key> eigen
module Cryptoexchange::Exchanges module Etorox module Services class Trades < Cryptoexchange::Services::Market def fetch(market_pair) output = super(ticker_url(market_pair)) adapt(output, market_pair) end def ticker_url(market_pair) "#{Cryptoexchange::Exchanges::Etorox::Market::API_URL}/#{market_pair.base.downcase}#{market_pair.target.downcase}/trades" end def adapt(output, market_pair) output.collect do |trade| tr = Cryptoexchange::Models::Trade.new tr.trade_id = trade["id"] tr.base = market_pair.base tr.target = market_pair.target tr.market = Etorox::Market::NAME tr.price = trade["price"] tr.amount = trade["volume"] tr.timestamp = Time.new(trade["timestamp"]).to_i tr.payload = trade tr end end end end end end
*/ /*background-color: #555*/ /*# sourceMappingURL=bootstrap.min.css.map */
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ApiManagement::Mgmt::V2018_01_01 module Models # Policy Contract details. class PolicyContract < Resource include MsRestAzure # @return [String] Json escaped Xml Encoded contents of the Policy. attr_accessor :policy_content # @return [PolicyContentFormat] Format of the policyContent. Possible # values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'. Default # value: 'xml' . attr_accessor :content_format # Mapper for PolicyContract class as Ruby Hash. # This will be used for serialization/deserialization. def self.mapper() { <API key>: true, required: false, serialized_name: 'PolicyContract', type: { name: 'Composite', class_name: 'PolicyContract', model_properties: { id: { <API key>: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { <API key>: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { <API key>: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, policy_content: { <API key>: true, required: true, serialized_name: 'properties.policyContent', type: { name: 'String' } }, content_format: { <API key>: true, required: false, serialized_name: 'properties.contentFormat', default_value: 'xml', type: { name: 'String' } } } } } end end end end
package uk.org.rbc1b.roms.db.report; import java.util.List; import org.hibernate.Criteria; import org.hibernate.SessionFactory; import org.hibernate.criterion.Restrictions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; /** * Hibernate implementation of the report dao. */ @Repository public class HibernateReportDao implements ReportDao { @Autowired private SessionFactory sessionFactory; @SuppressWarnings("unchecked") @Override public List<FixedReport> findFixedReports() { Criteria criteria = this.sessionFactory.getCurrentSession().createCriteria(FixedReport.class); criteria.add(Restrictions.eq("active", true)); return criteria.list(); } @Override public FixedReport findFixedReport(Integer reportId) { return (FixedReport) this.sessionFactory.getCurrentSession().get(FixedReport.class, reportId); } }
export const extensionID = '<API key>';
<!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> DINICO Global - Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada </title> <!-- Title ends / Fin du titre --> <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/<API key>.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=" <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.<API key>(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src=' <!-- End Google Tag Manager --> <!-- EPI-12801 --> <span typeof="Organization"><meta property="legalName" content="<API key>"></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=1492280838954&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=13926&V_SEARCH.docsStart=13925&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn/updt.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: </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="<API key>"> <h2 class="wb-inv">Topics menu</h2> <div class="container nvbar"> <div class="row"> <ul class="list-inline menu"> <li><a href="https: <li><a href="http: <li><a href="https://travel.gc.ca/">Travel</a></li> <li><a href="https: <li><a href="https: <li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li> <li><a href="https: <li><a href="https: </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=13924&amp;V_DOCUMENT.docRank=13925&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492280842724&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=123456205441&amp;profileId=&amp;key.newSearchLabel=">Previous Company</a></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=13926&amp;V_DOCUMENT.docRank=13927&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492280842724&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=234567070549&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> DINICO Global </h2> <div class="row"> <div class="col-md-5"> <h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2> <p>DINICO Global</p> <div class="mrgn-tp-md"></div> <p class="mrgn-bttm-0" ><a href="http: target="_blank" title="Website URL">http: <p><a href="mailto:dinico@dinicoinc.com" title="dinico@dinicoinc.com">dinico@dinicoinc.com</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"> 146 Royal Orchard Blvd<br/> THORNHILL, Ontario<br/> L3T 3E3 <br/> </address> <h2 class="h5 mrgn-bttm-0">Location Address:</h2> <address class="mrgn-bttm-md"> 146 Royal Orchard Blvd<br/> THORNHILL, Ontario<br/> L3T 3E3 <br/> </address> <p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>: (416) 876-7711 </p> <p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>: (905) 709-9373</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> Dinico distributes a wide range of electrical components &amp; measuring equipments, including Temperature &amp; Pressure monitoring and measuring devices. <br>Products: Thermocouples, PID Temperature Controllers, RTDs, Solid State Relays (SSR), Heat Sinks, Kiln probes, Cartridge Heaters, Gauges and ....<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> Anooshka Khazaeie </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 Manager </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Area of Responsibility: </strong> </div> <div class="col-md-7"> Export Sales & Marketing, Domestic Sales & Marketing. </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Telephone: </strong> </div> <div class="col-md-7"> (416) 876-7711 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Facsimile: </strong> </div> <div class="col-md-7"> (905) 709-9373 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> sales@dinicoinc.com </div> </div> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> Shahram M.Dini </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"> (416) 876-7711 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Facsimile: </strong> </div> <div class="col-md-7"> (905) 709-9373 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> dinico@dinicoinc.com </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> 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"> 417320 - Electronic Components, Navigational and Communications Equipment and Supplies <API key> </div> </div> <div class="row"> <div class="col-md-5"> <strong> Alternate Industries (NAICS): </strong> </div> <div class="col-md-7"> 417230 - Industrial Machinery, Equipment and Supplies <API key><br> 417930 - Professional Machinery, Equipment and Supplies <API key><br> </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Trading House / Wholesaler / Agent and Distributor &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> Product Name: </strong> </div> <div class="col-md-9"> Temperature Sensors / Thermocouples<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Dinico provides a wide range of thermocouples applicable in different industries, including Kiln probe, Pipe clamp, Ceramic insulator, Bayonet (Twist lock), Thermocouple wire and etc. <br> Each thermocouple can be custom made with different probe shape &amp; dimensions, cable length, connector type and temperature range based on customer&#39;s application. <br> All types of K, E, T, J, S &amp;.... types are being offered. <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Temperature Sensors / RTD (Resistance Temperature Detectors)<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Dinico offers a wide range of RTDs applicable in different industries. <br> Each thermocouple can be custom made with different probe shape &amp; dimensions, cable length, connector types and temperature range based on customer&#39;s application. <br> <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> PID Temperature Controller<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Dinico supplies various types of PID Controllers, with different types &amp; numbers of inputs, outputs &amp; sizes. <br> We also provide different kinds of programmable (ramp &amp; soak) PID controllers with different number of segments and cycles. <br> <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Solid State Relays (SSR) &amp; Heat Sinks<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Dinico provides different types of SSRs with a wide ranges of control &amp; load voltage and control &amp; load current. <br> We also supply galvanized Heat sinks with different sizes, which are resistant to high amperes. <br> <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Gauges<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> At Dinico we offer different types of Pressure, Vacuum &amp; Temperature gauges with wide measuring ranges, applicable in different industries. <br> We also supply Barbeque (BBQ) and Pool gauges. <br> Each gauge can be custom made with different shapes, dimensions, unit &amp; range based on customer&#39;s application. <br> <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Cartridge Heaters<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> In addition to the cartridge heaters that we supply, we can offer custom made heaters with different size and angles (right or left angel) and connector types. <br> <br> <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 --> <!-- Market Profile --> <!-- 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> Anooshka Khazaeie </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 Manager </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Area of Responsibility: </strong> </div> <div class="col-md-7"> Export Sales & Marketing, Domestic Sales & Marketing. </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Telephone: </strong> </div> <div class="col-md-7"> (416) 876-7711 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Facsimile: </strong> </div> <div class="col-md-7"> (905) 709-9373 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> sales@dinicoinc.com </div> </div> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> Shahram M.Dini </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"> (416) 876-7711 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Facsimile: </strong> </div> <div class="col-md-7"> (905) 709-9373 </div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Email: </strong> </div> <div class="col-md-7"> dinico@dinicoinc.com </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> 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"> 417320 - Electronic Components, Navigational and Communications Equipment and Supplies <API key> </div> </div> <div class="row"> <div class="col-md-5"> <strong> Alternate Industries (NAICS): </strong> </div> <div class="col-md-7"> 417230 - Industrial Machinery, Equipment and Supplies <API key><br> 417930 - Professional Machinery, Equipment and Supplies <API key><br> </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Trading House / Wholesaler / Agent and Distributor &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> Product Name: </strong> </div> <div class="col-md-9"> Temperature Sensors / Thermocouples<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Dinico provides a wide range of thermocouples applicable in different industries, including Kiln probe, Pipe clamp, Ceramic insulator, Bayonet (Twist lock), Thermocouple wire and etc. <br> Each thermocouple can be custom made with different probe shape &amp; dimensions, cable length, connector type and temperature range based on customer&#39;s application. <br> All types of K, E, T, J, S &amp;.... types are being offered. <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Temperature Sensors / RTD (Resistance Temperature Detectors)<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Dinico offers a wide range of RTDs applicable in different industries. <br> Each thermocouple can be custom made with different probe shape &amp; dimensions, cable length, connector types and temperature range based on customer&#39;s application. <br> <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> PID Temperature Controller<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Dinico supplies various types of PID Controllers, with different types &amp; numbers of inputs, outputs &amp; sizes. <br> We also provide different kinds of programmable (ramp &amp; soak) PID controllers with different number of segments and cycles. <br> <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Solid State Relays (SSR) &amp; Heat Sinks<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> Dinico provides different types of SSRs with a wide ranges of control &amp; load voltage and control &amp; load current. <br> We also supply galvanized Heat sinks with different sizes, which are resistant to high amperes. <br> <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Gauges<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> At Dinico we offer different types of Pressure, Vacuum &amp; Temperature gauges with wide measuring ranges, applicable in different industries. <br> We also supply Barbeque (BBQ) and Pool gauges. <br> Each gauge can be custom made with different shapes, dimensions, unit &amp; range based on customer&#39;s application. <br> <br> <br> <br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> Cartridge Heaters<br> </div> </div> <div class="row mrgn-bttm-md"> <div class="col-md-12"> In addition to the cartridge heaters that we supply, we can offer custom made heaters with different size and angles (right or left angel) and connector types. <br> <br> <br> </div> </div> </section> </details> </div> </div> <div class="row"> <div class="col-md-12 text-right"> Last Update Date 2016-03-01 </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: <li><a href="https: <li><a href="https: <li><a href="https: <li><a href="https: <li><a href="http://pm.gc.ca/eng">Prime Minister</a></li> <li><a href="https: <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: <li><a href="https: <li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li> <li><a href="http: <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 <API key>"></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.<API key>.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=" </noscript> <!-- /Webtrends --> <!-- JS deps --> <script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script> <!-- EPI-11262 - Util JS --> <script src="/eic/home.nsf/js/<API key>.min.js"></script> <!-- EPI-11383 --> <script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script> <span style="display:none;" id='app-info' <API key>='' <API key>='' <API key>='' <API key>='' data-issue-tracking='' data-scm-sha1='' <API key>='' data-scm-branch='' <API key>=''></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
'use strict'; var $ = require('jquery'); var Confirm = require('pandora-confirm'); var Widget = require('pandora-widget'); var matcher = { regexp: /<embed\s+[^>]*?src="(.+?)"[^>]*>/gim, lookup: function (arr, item) { return (arr.indexOf(item.src) !== -1); } }; function itemExists (itemArr, item) { var isExists = false; itemArr.forEach(function (dataItem) { var key, catched = true; for (key in dataItem) { if (key === 'selected') { continue; } if (dataItem[key] !== item[key]) { catched = false; break; } } if (catched) { isExists = true; return false; } }); return isExists; } module.exports = Widget.extend({ defaults: { container: null, data: { items: [ ] }, delegates: { 'click [data-role=remove]':function(e){ var self = this, item = $(e.currentTarget).parents('[data-role=item]'), index = item[0].dataset.index; self.fire('remove', self.dataItems[index]); self.dataItems.splice(index, 1); self.render(); e.stopPropagation(); }, 'click [data-role=item]': function (e) { this.fire('select', this.dataItems[e.currentTarget.dataset.index]); }, 'click [data-role=appendAll]': function() { var self = this; self.fire('insertAll', self.dataItems); self.render(); }, 'click [data-role=removeAll]': function(e) { var self = this; new Confirm({ content : '', events : { 'submit' : function(){ self.fire('removeAll', self.dataItems); self.dataItems = []; self.data('items',self.dataItems,true); self.render(); } } }); } }, template: require('./panelist.handlebars') }, setup: function () { var self = this; self.render(); self.dataItems = self.data('items'); }, append: function (item) { var self = this, dataItems = self.dataItems; if (!itemExists(dataItems, item)) { dataItems.push(item); self.render(); } }, appendList: function(items){ var self = this; if(items && items.length){ self.data('items', items); self.render(); self.dataItems = self.data('items'); } }, update: function (content) { var self = this, srcArray = [], match, contentChanged; if (self.pContent !== content) { while ((match = matcher.regexp.exec(content))) { srcArray.indexOf(match[1]) === -1 && srcArray.push(match[1]); } self.dataItems.forEach(function (item) { if (srcArray.length && matcher.lookup(srcArray, item)) { if (!item.selected) { contentChanged = true; item.selected = true; } } else { if (item.selected) { contentChanged = true; item.selected = false; } } }); contentChanged && self.render(); self.pContent = content; } }, updateEditor : function(doc, data){ $('embed[src="'+ data.src +'"]', doc).each(function(i,item){ var parent = $(item.parentNode); parent.hasClass('p-video') && parent[0].childNodes.length == 1 ? parent.remove() : $(item).remove(); }); } });
.sample-img{width:50px;height:50px;background-image:url('img.png')}
# SearchYJ Search on Yahoo Japan. ## Installation Gemfile ruby gem 'searchyj' $ bundle $ gem install searchyj ## Usage (CLI) JSON - uri - title - - rank - - SearchYJ list $ searchyj list [options] <SearchTerm> # --size, -s 10 # --from, -f detect $ searchyj detect [options] <SearchTerm> _null_ # --regexp, -r _--key_ # --key, -k _title_ _uri_ _title_ # --from, -f rank $ searchyj rank [options] <SearchTerm> _null_ # --rank, -r 1 ## Usage (Programming) _lib/searchyj.rb_ ## Author [indeep-xyz](http://blog.indeep.xyz/)
package com.gmail.raynlegends.adventofcode.puzzles; import com.gmail.raynlegends.adventofcode.Puzzle; public class _10_1_Puzzle implements Puzzle { @Override public String calculate(String input) { String current = input; for (int i = 0; i < 40; i++) { StringBuilder out = new StringBuilder(); for (int j = 0; j < current.length(); j++) { int count = 1; char character = current.charAt(j); while (j + 1 < current.length() && current.charAt(j + 1) == character) { j++; count++; } out.append(count); out.append(character); } current = out.toString(); } return current.length() + ""; } @Override public String toString() { return "Day 10, Part 1"; } }
//GLOBALS var APP = require("core"); var CONFIG = arguments[0]; var audioPlayer = {}; //FUNCTIONS var init = function() { APP.log("debug", "radio_milwaukee.init | " + JSON.stringify(CONFIG)); $.NavigationBar.setBackgroundColor(APP.Settings.colors.primary || "#000"); if(CONFIG.isChild === true) { $.NavigationBar.showBack(); } else if(APP.Settings.useSlideMenu) { $.NavigationBar.showMenu(); } else { $.NavigationBar.showSettings(); } audioPlayer = Ti.Media.createAudioPlayer({ url: "http://radiomilwaukee.streamguys.net/live", allowBackground: true, allowsAirPlay: true, allowBackground: true }); }; //EVENTS $.streamToggleButton.addEventListener("click", function(e) { if(audioPlayer.playing) { audioPlayer.pause(); //$.streamToggleButton.title = "Play"; $.streamToggleButton.image = "/images/play.png"; } else { audioPlayer.start(); //$.streamToggleButton.title = "Pause"; $.streamToggleButton.image = "/images/pause.png"; } }); $.playlist.addEventListener("click", function(e) { APP.addChild("web", { url: "http: isChild: true }); }); $.soundCloud.addEventListener("click", function(e) { APP.addChild("web", { url: "https://soundcloud.com/radiomilwaukee", isChild: true }); }); //BOOTSTRAP init();
package gatsbyexamples import io.gatling.core.Predef._ import com.themillhousegroup.gatsby.GatsbySimulation import com.themillhousegroup.gatsby.<API key>._ import io.gatling.http.Predef._ /** * Showing how simply wrapping a call with withStubby() will * cause an endpoint that returns 200 OK to be stubbed in. */ class <API key> extends GatsbySimulation(9999) { val httpConf = http.baseURL("http://localhost:9999") val scn1 = scenario("<API key>") .exec( withStubby( http("request_1").get("/first").check(status.is(200)) ) ) val scn2 = scenario("<API key>") .exec( withStubby( http("request_2").get("/second").check(status.is(200))) ) val scn3 = scenario("<API key>") .exec( withStubby( http("request_3").post("/postUrl").check(status.is(200))) ) setUp( scn1.inject(atOnceUsers(3)), scn2.inject(atOnceUsers(3)), scn3.inject(atOnceUsers(3)) ).protocols(httpConf) }
import './blaze.js'; import './object.js'; import './string.js'; import './ui.js'; import './user.js'; import './utils.js'; import './viewer.js';
layout: post date: 2017-03-03 title: "Camille La Vie Cleo Sequined Cutout Dress with Open Back Sleeveless Sweep/Brush Train Aline/Princess" category: Camille La Vie tags: [Camille La Vie,Aline/Princess ,Jewel,Sweep/Brush Train,Sleeveless] Camille La Vie Cleo Sequined Cutout Dress with Open Back Just **$269.99** Sleeveless Sweep/Brush Train Aline/Princess <table><tr><td>BRANDS</td><td>Camille La Vie</td></tr><tr><td>Silhouette</td><td>Aline/Princess </td></tr><tr><td>Neckline</td><td>Jewel</td></tr><tr><td>Hemline/Train</td><td>Sweep/Brush Train</td></tr><tr><td>Sleeve</td><td>Sleeveless</td></tr></table> <a href="https: <!-- break --><a href="https: Buy it: [https:
layout: post date: 2015-08-09 title: "Allure Women Wedding Dresses - Style W314 2013 Spring Sleeveless Chapel Train Ballgown Plus Size" category: Allure tags: [Allure,Ballgown,Plus Size,Sweetheart,Chapel Train,Sleeveless,2013,Spring] Allure Women Wedding Dresses - Style W314 Just **$308.99** 2013 Spring Sleeveless Chapel Train Ballgown Plus Size <table><tr><td>BRANDS</td><td>Allure</td></tr><tr><td>Silhouette</td><td>Ballgown</td></tr><tr><td>Trend</td><td>Plus Size</td></tr><tr><td>Neckline</td><td>Sweetheart</td></tr><tr><td>Hemline/Train</td><td>Chapel Train</td></tr><tr><td>Sleeve</td><td>Sleeveless</td></tr><tr><td>Years</td><td>2013</td></tr><tr><td>Season</td><td>Spring</td></tr></table> <a href="https: <!-- break --><a href="https: <a href="https: Buy it: [https:
package credentials import ( "errors" "testing" "github.com/stretchr/testify/assert" ) type stubProvider struct { creds Value err error } func (s *stubProvider) Retrieve() (Value, error) { s.creds.ProviderName = "stubProvider" return s.creds, s.err } func TestCredentialsGet(t *testing.T) { c := NewCredentials(&stubProvider{ creds: Value{ AccessKeyID: "AKID", SecretAccessKey: "SECRET", }, }) creds, err := c.Get() assert.Nil(t, err, "Expected no error") assert.Equal(t, "AKID", creds.AccessKeyID, "Expect access key ID to match") assert.Equal(t, "SECRET", creds.SecretAccessKey, "Expect secret access key to match") } func <API key>(t *testing.T) { c := NewCredentials(&stubProvider{err: errors.New("provider error")}) _, err := c.Get() assert.Equal(t, "provider error", err.Error(), "Expected provider error") } func <API key>(t *testing.T) { stub := &stubProvider{} c := NewCredentials(stub) creds, err := c.Get() assert.Nil(t, err, "Expected no error") assert.Equal(t, creds.ProviderName, "stubProvider", "Expected provider name to match") }
<div class="preferences-scene"> <div class="palm-page-header multi-line"> <div class="<API key>"> <div class="title">&nbsp;</div> <div class="subtitle" id="subtitle">Preferences</div> </div> </div> <div class="palm-list"> <div class="palm-row first"> <div class="palm-row-wrapper"> <div x-mojo-element="ToggleButton" id="profanity_filter"></div> <div class="title" x-mojo-loc=''>Profanity Filter</div> </div> </div> <! <div class="palm-row"> <div class="palm-row-wrapper"> <div x-mojo-element="Button" id="reset_user_id"></div> </div> </div> </div> </div>
require "net/http" require "uri" Given /^no session$/ do Capybara.reset_sessions! begin uri = URI.parse("http://localhost:#{Capybara.server_port}") http = Net::HTTP.new(uri.host, uri.port) request = Net::HTTP::Delete.new(<API key>) response = http.request(request) rescue => e end end Given /^I am on the home page$/ do visit '/' end When /^sleep (\d+)$/ do | n | sleep n.to_i end
package org.hannes.musicbot.util; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import java.io.<API key>; import java.net.HttpURLConnection; import java.net.URISyntaxException; import java.net.URL; import javax.script.ScriptException; import org.hannes.musicbot.App; import org.hannes.musicbot.model.LookupResponse; import org.junit.BeforeClass; import org.junit.Test; import com.google.gson.Gson; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; public class <API key> { private static final String ITEM_INFO_TEMPLATE = "/a/itemInfo/?video_id=%s&ac=www&t=grp&r=%d"; /** * The test video id */ private static final String VIDEO_ID = "fCvNcZmcEb0"; /** * The static gson instance */ private static final Gson gson = new Gson(); @BeforeClass public static void initialize() throws <API key>, ScriptException, URISyntaxException { Bootstrap.load(); } @Test public void integrationTest() throws Exception { HttpResponse<String> httpResponse = Unirest.get(App.REMOTE_URL + Bootstrap.sig_url(String.format(ITEM_INFO_TEMPLATE, VIDEO_ID, System.currentTimeMillis()))).asString(); /* * Gets the lookup response */ LookupResponse lookupResponse = gson.fromJson(JSONFormatter.format(httpResponse.getBody().toString()), LookupResponse.class); /* * Return the fixed JSON format */ assertNotNull(lookupResponse.getDownloadId()); assertNotNull(lookupResponse.getSessionId()); assertNotNull(lookupResponse.getTimeCreated()); /* * Gets the download link */ URL url = new URL(lookupResponse.getDownloadUrl(VIDEO_ID)); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"); connection.setRequestProperty("Accept-Encoding", "gzip, deflate, sdch"); connection.setRequestProperty("Accept-Language", "en-US,en;q=0.8,nl;q=0.6"); connection.setRequestProperty("Connection", "keep-alive"); connection.setRequestProperty("Host", "www.youtube-mp3.org"); connection.setRequestProperty("Referer", "http: connection.setRequestProperty("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36"); connection.setRequestProperty("<API key>", "1"); /* * Sees if the resource exists */ assertEquals(200, connection.getResponseCode()); } }
@charset "UTF-8"; .grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after { content: ""; display: block; clear: both; } #content, .header-inner { max-width: 960px; width: 960px; margin: 0 15px; margin: 0 30px; margin: 0 auto; } .grid-row { margin: 0 -15px; } .grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after { content: ""; display: block; clear: both; } .grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after { content: ""; display: block; clear: both; } .grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after { content: ""; display: block; clear: both; } #content, .header-inner { max-width: 960px; width: 960px; margin: 0 15px; margin: 0 30px; margin: 0 auto; } .grid-row { margin: 0 -15px; } .grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after { content: ""; display: block; clear: both; } .grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after { content: ""; display: block; clear: both; } .<API key> .grid-row { background: #bfc1c3; } .<API key> .column-highlight { background: #dee0e2; width: 100%; } .visually-hidden, .visuallyhidden { position: absolute; overflow: hidden; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; } div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark { border: none; margin: 0; padding: 0; } h1, h2, h3, h4, h5, h6, p, blockquote, pre, small, strike, strong, sub, sup, tt, var, b, u, i, center, input, textarea, table, caption, tbody, tfoot, thead, tr, th, td { font-size: inherit; font-family: inherit; line-height: inherit; font-weight: normal; } abbr[title], acronym[title] { text-decoration: none; } legend { box-sizing: border-box; max-width: 100%; display: table; } #content, .header-inner { padding-bottom: 30px; padding-bottom: 90px; outline: none; } .column-quarter, .column-one-quarter { float: left; width: 25%; padding: 0 15px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .column-half, .column-one-half { float: left; width: 50%; padding: 0 15px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .column-third, .column-one-third { float: left; width: 33.3333333333%; padding: 0 15px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .column-two-thirds { float: left; width: 66.6666666667%; padding: 0 15px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } .column-full { float: left; width: 100%; padding: 0 15px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } main { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; -<API key>: antialiased; } .font-xxlarge { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 53px; line-height: 1.0377358491; font-size: 80px; line-height: 1; } .font-xlarge { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 32px; line-height: 1.09375; font-size: 48px; line-height: 1.0416666667; } .font-large { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 24px; line-height: 1.0416666667; font-size: 36px; line-height: 1.1111111111; } .font-medium { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 18px; line-height: 1.2; font-size: 24px; line-height: 1.25; } .font-small { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; } .font-xsmall { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; } .bold-xxlarge { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 53px; line-height: 1.0377358491; font-size: 80px; line-height: 1; } .bold-xlarge { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 32px; line-height: 1.09375; font-size: 48px; line-height: 1.0416666667; } .bold-large { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 24px; line-height: 1.0416666667; font-size: 36px; line-height: 1.1111111111; } .bold-medium { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 18px; line-height: 1.2; font-size: 24px; line-height: 1.25; } .bold-small { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; } .bold-xsmall { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; } .bold { font-weight: 700; } .heading-xlarge { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 32px; line-height: 1.09375; font-size: 48px; line-height: 1.0416666667; margin-top: 0.46875em; margin-bottom: 0.9375em; margin-top: 0.625em; margin-bottom: 1.25em; } .heading-xlarge .heading-secondary { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 20px; line-height: 1.1111111111; font-size: 27px; line-height: 1.1111111111; display: block; padding-top: 8px; padding-bottom: 7px; padding-top: 4px; padding-bottom: 6px; display: block; color: #6f777b; } .heading-large { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 24px; line-height: 1.0416666667; font-size: 36px; line-height: 1.1111111111; margin-top: 1.0416666667em; margin-bottom: 0.4166666667em; margin-top: 1.25em; margin-bottom: 0.5555555556em; } .heading-large .heading-secondary { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 18px; line-height: 1.2; font-size: 24px; line-height: 1.25; display: block; padding-top: 9px; padding-bottom: 6px; padding-top: 6px; padding-bottom: 4px; display: block; color: #6f777b; } .heading-medium { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 18px; line-height: 1.2; font-size: 24px; line-height: 1.25; margin-top: 1.25em; margin-bottom: 0.5em; margin-top: 1.875em; margin-bottom: 0.8333333333em; } .heading-small { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; margin-top: 0.625em; margin-bottom: 0.3125em; margin-top: 1.0526315789em; } p { margin-top: 0.3125em; margin-bottom: 1.25em; margin-top: 0.2631578947em; margin-bottom: 1.0526315789em; } .lede { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 18px; line-height: 1.2; font-size: 24px; line-height: 1.25; } .text { max-width: 30em; } .text-secondary { color: #6f777b; } .link { color: #005ea5; text-decoration: underline; } .link:visited { color: #4c2c92; } .link:hover { color: #2b8cc4; } .link:active { color: #005ea5; } .link-back { display: -moz-inline-stack; display: inline-block; position: relative; font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; margin-top: 15px; margin-bottom: 15px; padding-left: 14px; color: #0b0c0c; text-decoration: none; border-bottom: 1px solid #0b0c0c; background: url("/public/images/icon-arrow-left.png") no-repeat 0 4px; } .link-back:link, .link-back:visited, .link-back:hover, .link-back:active { color: #0b0c0c; } .link-back::before { content: ''; display: block; width: 0; height: 0; border-top: 5px solid transparent; border-right: 6px solid #0b0c0c; border-bottom: 5px solid transparent; position: absolute; left: 0; top: 50%; margin-top: -6px; } .code { color: #0b0c0c; background-color: #f8f8f8; text-shadow: 0 1px #fff; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; font-size: 14px; direction: ltr; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; border: 1px solid #bfc1c3; padding: 4px 4px 2px; } hr { display: block; background: #bfc1c3; border: 0; height: 1px; margin-top: 30px; margin-bottom: 30px; padding: 0; } .notice { position: relative; } .notice .icon { position: absolute; left: 0; top: 50%; margin-top: -17px; } .notice strong { display: block; padding-left: 65px; margin-left: -15px; } .data { margin-top: 0.3125em; margin-bottom: 1.25em; margin-top: 0.2631578947em; margin-bottom: 1.0526315789em; } .data-item { display: block; line-height: 1; } .button { background-color: #00823b; position: relative; display: -moz-inline-stack; display: inline-block; padding: .526315em .789473em .263157em; border: none; -<API key>: 0; -moz-border-radius: 0; border-radius: 0; outline: 1px solid transparent; outline-offset: -1px; -webkit-appearance: none; -webkit-box-shadow: 0 2px 0 #003618; -moz-box-shadow: 0 2px 0 #003618; box-shadow: 0 2px 0 #003618; border-bottom: 2px solid #003618; font-size: 1em; line-height: 1.25; text-decoration: none; -<API key>: antialiased; cursor: pointer; color: #fff; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; vertical-align: top; } .button:visited { background-color: #00823b; } .button:hover, .button:focus { background-color: #00692f; } .button:active { top: 2px; -webkit-box-shadow: 0 0 0 #00823b; -moz-box-shadow: 0 0 0 #00823b; box-shadow: 0 0 0 #00823b; } .button.disabled, .button[disabled="disabled"], .button[disabled] { zoom: 1; filter: alpha(opacity=50); opacity: 0.5; } .button.disabled:hover, .button[disabled="disabled"]:hover, .button[disabled]:hover { cursor: default; background-color: #00823b; } .button.disabled:active, .button[disabled="disabled"]:active, .button[disabled]:active { top: 0; -webkit-box-shadow: 0 2px 0 #003618; -moz-box-shadow: 0 2px 0 #003618; box-shadow: 0 2px 0 #003618; border-bottom: 2px solid #003618; } .button:link, .button:hover, .button:focus, .button:visited { color: #fff; } .button:before { content: ""; height: 110%; width: 100%; display: block; background: transparent; position: absolute; top: 0; left: 0; } .button:active:before { top: -10%; height: 120%; } .button[type="submit"], .button[type="reset"], .button[type="button"] { filter: chroma(color=#0b0c0c); } .button[type=submit].button { filter: none; } .button::-moz-focus-inner { border: 0; padding: 0; } .button:focus { outline: 3px solid #ffbf47; } .button[disabled="disabled"] { background: #00823b; } .button[disabled="disabled"]:focus { outline: none; } .button-start, .button-get-started { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 18px; line-height: 1.2; font-size: 24px; line-height: 1.25; background-image: url("/public/images/icon-pointer.png"); background-repeat: no-repeat; background-position: 100% 50%; padding: 0.3684210526em 2.1578947368em 0.2105263158em 0.8421052632em; } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .button-start, .button-get-started { background-image: url("/public/images/icon-pointer-2x.png"); background-size: 30px 19px; } } .icon { display: inline-block; background-position: 0 0; background-repeat: no-repeat; } .icon-calendar { width: 27px; height: 27px; background-image: url("/public/images/icon-calendar.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-calendar { background-image: url("/public/images/icon-calendar-2x.png"); background-size: 100%; } } .icon-file-download { width: 30px; height: 39px; background-image: url("/public/images/icon-file-download.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-file-download { background-image: url("/public/images/<API key>.png"); background-size: 100%; } } .icon-important { width: 35px; height: 35px; background-image: url("/public/images/icon-important.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-important { background-image: url("/public/images/icon-important-2x.png"); background-size: 100%; } } .icon-information { width: 27px; height: 27px; background-image: url("/public/images/icon-information.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-information { background-image: url("/public/images/icon-information-2x.png"); background-size: 100%; } } .icon-locator { width: 26px; height: 36px; background-image: url("/public/images/icon-locator.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-locator { background-image: url("/public/images/icon-locator-2x.png"); background-size: 100%; } } .icon-pointer { width: 30px; height: 19px; background-image: url("/public/images/icon-pointer.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-pointer { background-image: url("/public/images/icon-pointer-2x.png"); background-size: 100%; } } .icon-pointer-black { width: 23px; height: 23px; background-image: url("/public/images/icon-pointer-black.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-pointer-black { background-image: url("/public/images/<API key>.png"); background-size: 100%; } } .icon-search { width: 30px; height: 22px; background-image: url("/public/images/icon-search.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-search { background-image: url("/public/images/icon-search-2x.png"); background-size: 100%; } } .icon-step-1 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-1.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-1 { background-image: url("/public/images/icon-steps/icon-step-1-2x.png"); background-size: 100%; } } .icon-step-2 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-2.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-2 { background-image: url("/public/images/icon-steps/icon-step-2-2x.png"); background-size: 100%; } } .icon-step-3 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-3.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-3 { background-image: url("/public/images/icon-steps/icon-step-3-2x.png"); background-size: 100%; } } .icon-step-4 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-4.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-4 { background-image: url("/public/images/icon-steps/icon-step-4-2x.png"); background-size: 100%; } } .icon-step-5 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-5.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-5 { background-image: url("/public/images/icon-steps/icon-step-5-2x.png"); background-size: 100%; } } .icon-step-6 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-6.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-6 { background-image: url("/public/images/icon-steps/icon-step-6-2x.png"); background-size: 100%; } } .icon-step-7 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-7.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-7 { background-image: url("/public/images/icon-steps/icon-step-7-2x.png"); background-size: 100%; } } .icon-step-8 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-8.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-8 { background-image: url("/public/images/icon-steps/icon-step-8-2x.png"); background-size: 100%; } } .icon-step-9 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-9.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-9 { background-image: url("/public/images/icon-steps/icon-step-9-2x.png"); background-size: 100%; } } .icon-step-10 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-10.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-10 { background-image: url("/public/images/icon-steps/icon-step-10-2x.png"); background-size: 100%; } } .icon-step-11 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-11.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-11 { background-image: url("/public/images/icon-steps/icon-step-11-2x.png"); background-size: 100%; } } .icon-step-12 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-12.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-12 { background-image: url("/public/images/icon-steps/icon-step-12-2x.png"); background-size: 100%; } } .icon-step-13 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-13.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-13 { background-image: url("/public/images/icon-steps/icon-step-13-2x.png"); background-size: 100%; } } .icon-step-14 { width: 23px; height: 23px; background-image: url("/public/images/icon-steps/icon-step-14.png"); } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .icon-step-14 { background-image: url("/public/images/icon-steps/icon-step-14-2x.png"); background-size: 100%; } } .circle { display: inline-block; -<API key>: 50%; -moz-border-radius: 50%; border-radius: 50%; background: #0b0c0c; color: #fff; font-family: "ntatabularnumbers", "nta", Arial, sans-serif; font-size: 12px; font-weight: bold; text-align: center; } .circle-step { min-width: 24px; min-height: 24px; line-height: 24px; } .circle-step-large { font-size: 19px; min-width: 38px; min-height: 38px; line-height: 38px; } ul, ol { list-style-type: none; } .list { padding: 0; margin-top: 5px; margin-bottom: 20px; } .list li { margin-bottom: 5px; } .list-bullet { list-style-type: disc; padding-left: 20px; } .list-number { list-style-type: decimal; padding-left: 20px; } table { border-collapse: collapse; border-spacing: 0; width: 100%; } table th, table td { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; padding: 0.6315789474em 1.0526315789em 0.4736842105em 0; text-align: left; color: #0b0c0c; border-bottom: 1px solid #bfc1c3; } table th { font-weight: 700; } table th.numeric { text-align: right; } table td.numeric { font-family: "ntatabularnumbers", "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; text-align: right; } .table-font-xsmall th { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; } .table-font-xsmall td { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; } .table-font-xsmall th, .table-font-xsmall td { padding: 0.75em 1.25em 0.5625em 0; } details { display: block; clear: both; } details summary { display: inline-block; color: #005ea5; cursor: pointer; position: relative; margin-bottom: 0.2631578947em; } details summary:hover { color: #2b8cc4; } details summary:focus { outline: 3px solid #ffbf47; } details .summary { text-decoration: underline; } details .arrow { margin-right: .35em; font-style: normal; } .panel { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; clear: both; border-left-style: solid; border-color: #bfc1c3; padding: 0.7894736842em; margin-bottom: 0.7894736842em; } .panel :first-child { margin-top: 0; } .panel :only-child, .panel :last-child { margin-bottom: 0; } .panel-border-wide { border-left-width: 10px; } .panel-border-narrow { border-left-width: 5px; } .form-group .panel-border-narrow { float: left; width: 100%; padding-bottom: 0; } .form-group .panel-border-narrow:first-child { margin-top: 10px; } .form-group .panel-border-narrow:last-child { margin-top: 10px; margin-bottom: 0; } .inline .panel-border-narrow { margin-top: 10px; margin-bottom: 0; } fieldset { width: 100%; } textarea { display: block; } .form-section { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; width: 100%; margin-bottom: 30px; margin-bottom: 60px; } .form-group { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; width: 100%; margin-bottom: 15px; margin-bottom: 30px; } .form-group-related { margin-bottom: 10px; margin-bottom: 20px; } .form-group-compound { margin-bottom: 10px; } .form-label, .form-label-bold { display: block; color: #0b0c0c; padding-bottom: 2px; } .form-label { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; } .form-label-bold { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; } .form-block { float: left; width: 100%; margin-top: -5px; margin-bottom: 5px; margin-top: 0; margin-bottom: 10px; } .form-hint { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; display: block; color: #6f777b; font-weight: normal; margin-top: -2px; padding-bottom: 2px; } .form-label .form-hint, .form-label-bold .form-hint { margin-top: 0; padding-bottom: 0; } .form-control { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; width: 100%; padding: 5px 4px 4px; color: inherit; background-color: transparent; border: 2px solid; width: 50%; } input.form-control, textarea.form-control { -webkit-appearance: none; border-radius: 0; } .form-radio { display: block; margin: 10px 0; } .form-radio input { vertical-align: middle; margin: -4px 5px 0 0; } .form-checkbox { display: block; margin: 15px 0; } .form-checkbox input { vertical-align: middle; margin: -2px 5px 0 0; } .form-control-3-4 { width: 100%; width: 75%; } .form-control-2-3 { width: 100%; width: 66.66%; } .form-control-1-2 { width: 100%; width: 50%; } .form-control-1-3 { width: 100%; width: 33.33%; } .form-control-1-4 { width: 100%; width: 25%; } .form-control-1-8 { width: 100%; width: 12.5%; } .block-label { display: block; float: none; clear: left; position: relative; padding: 8px 10px 9px 50px; margin-bottom: 10px; cursor: pointer; -ms-touch-action: manipulation; touch-action: manipulation; float: left; padding-top: 7px; padding-bottom: 7px; } .block-label input { position: absolute; cursor: pointer; left: 0; top: 0; width: 38px; height: 38px; } .js-enabled .block-label.<API key>::before { content: ""; border: 2px solid; background: transparent; width: 34px; height: 34px; position: absolute; top: 0; left: 0; -<API key>: 50%; -moz-border-radius: 50%; border-radius: 50%; } .js-enabled .block-label.<API key>::after { content: ""; border: 10px solid; width: 0; height: 0; position: absolute; top: 9px; left: 9px; -<API key>: 50%; -moz-border-radius: 50%; border-radius: 50%; zoom: 1; filter: alpha(opacity=0); opacity: 0; } .js-enabled .block-label.<API key>::before { content: ""; border: 2px solid; background: transparent; width: 34px; height: 34px; position: absolute; top: 0; left: 0; } .js-enabled .block-label.<API key>::after { content: ""; border: solid; border-width: 0 0 5px 5px; background: transparent; width: 17px; height: 7px; position: absolute; top: 10px; left: 8px; -moz-transform: rotate(-45deg); -o-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); -ms-transform: rotate(-45deg); transform: rotate(-45deg); zoom: 1; filter: alpha(opacity=0); opacity: 0; } .js-enabled .block-label.<API key>.focused::before, .js-enabled .block-label.<API key>.focused::before { -webkit-box-shadow: 0 0 0 5px #ffbf47; -moz-box-shadow: 0 0 0 5px #ffbf47; box-shadow: 0 0 0 5px #ffbf47; } .js-enabled .block-label.<API key>.focused, .js-enabled .block-label.<API key>.focused { outline: 3px solid #ffbf47; } .js-enabled .block-label.<API key>.focused input:focus, .js-enabled .block-label.<API key>.focused input:focus { outline: none; } .js-enabled .block-label.<API key>.selected::after, .js-enabled .block-label.<API key>.selected::after { zoom: 1; filter: alpha(opacity=100); opacity: 1; } .block-label:last-child, .block-label:last-of-type { margin-bottom: 0; } .inline .block-label { clear: none; margin-bottom: 0; margin-right: 30px; } input::-<API key>, input::-<API key> { -webkit-appearance: none; margin: 0; } input[type=number] { -moz-appearance: textfield; } .form-date .form-group { float: left; width: 50px; margin-right: 20px; margin-bottom: 0; clear: none; } .form-date .form-group label { display: block; padding-bottom: 2px; } .form-date .form-group input { width: 100%; } .form-date .form-group-year { width: 70px; } .error { margin-right: 15px; border-left: 4px solid #b10e1e; padding-left: 10px; border-left: 5px solid #b10e1e; padding-left: 15px; } .error > .form-control { border: 4px solid #b10e1e; } .error-message { font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; color: #b10e1e; display: block; clear: both; margin: 0; padding: 2px 0; } .form-label .error-message, .form-label-bold .error-message { padding-top: 4px; padding-bottom: 0; } .error-summary { border: 4px solid #b10e1e; margin-top: 15px; margin-bottom: 15px; padding: 15px 10px; border: 5px solid #b10e1e; margin-top: 30px; margin-bottom: 30px; padding: 20px 15px 15px; } .error-summary:focus { outline: 3px solid #ffbf47; } .error-summary .<API key> { margin-top: 0; } .error-summary p { margin-bottom: 10px; } .error-summary .error-summary-list { padding-left: 0; } .error-summary .error-summary-list li { margin-bottom: 5px; } .error-summary .error-summary-list a { color: #b10e1e; font-weight: bold; text-decoration: underline; } .multiple-choice { display: block; float: none; clear: left; position: relative; padding: 0 0 0 38px; margin-bottom: 10px; float: left; } .multiple-choice input { position: absolute; cursor: pointer; left: 0; top: 0; width: 38px; height: 38px; z-index: 1; } .multiple-choice label { cursor: pointer; padding: 8px 10px 9px 12px; display: block; -ms-touch-action: manipulation; touch-action: manipulation; float: left; padding-top: 7px; padding-bottom: 7px; } .multiple-choice [type=radio] + label::before { content: ""; border: 2px solid; background: transparent; width: 34px; height: 34px; position: absolute; top: 0; left: 0; -<API key>: 50%; -moz-border-radius: 50%; border-radius: 50%; } .multiple-choice [type=radio] + label::after { content: ""; border: 10px solid; width: 0; height: 0; position: absolute; top: 9px; left: 9px; -<API key>: 50%; -moz-border-radius: 50%; border-radius: 50%; zoom: 1; filter: alpha(opacity=0); opacity: 0; } .multiple-choice [type=checkbox] + label::before { content: ""; border: 2px solid; background: transparent; width: 34px; height: 34px; position: absolute; top: 0; left: 0; } .multiple-choice [type=checkbox] + label::after { content: ""; border: solid; border-width: 0 0 5px 5px; background: transparent; width: 17px; height: 7px; position: absolute; top: 10px; left: 8px; -moz-transform: rotate(-45deg); -o-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); -ms-transform: rotate(-45deg); transform: rotate(-45deg); zoom: 1; filter: alpha(opacity=0); opacity: 0; } .multiple-choice [type=radio]:focus + label::before { -webkit-box-shadow: 0 0 0 4px #ffbf47; -moz-box-shadow: 0 0 0 4px #ffbf47; box-shadow: 0 0 0 4px #ffbf47; } .multiple-choice [type=checkbox]:focus + label::before { -webkit-box-shadow: 0 0 0 3px #ffbf47; -moz-box-shadow: 0 0 0 3px #ffbf47; box-shadow: 0 0 0 3px #ffbf47; } .multiple-choice input:checked + label::after { zoom: 1; filter: alpha(opacity=100); opacity: 1; } .multiple-choice input:disabled + label { zoom: 1; filter: alpha(opacity=50); opacity: 0.5; } .multiple-choice:last-child, .multiple-choice:last-of-type { margin-bottom: 0; } .inline .multiple-choice { clear: none; margin-bottom: 0; margin-right: 30px; } .breadcrumbs { padding-top: 0.75em; padding-bottom: 0.75em; } .breadcrumbs li { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; float: left; background-image: url("/public/images/separator.png"); background-position: 0% 50%; background-repeat: no-repeat; list-style: none; margin-left: 0.6em; margin-bottom: 0.4em; padding-left: 0.9em; } @media only screen and (-<API key>: 2), only screen and (<API key>: 2), only screen and (-<API key>: 20 / 10), only screen and (<API key>: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .breadcrumbs li { background-image: url("/public/images/separator-2x.png"); background-size: 6px 11px; } } .breadcrumbs li:first-child { background-image: none; margin-left: 0; padding-left: 0; } .breadcrumbs a { color: #0b0c0c; } .phase-banner { padding: 10px 0 8px; padding-bottom: 10px; border-bottom: 1px solid #bfc1c3; } .phase-banner p { display: table; margin: 0; color: #000; font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; } .phase-banner .phase-tag { display: -moz-inline-stack; display: inline-block; margin: 0 8px 0 0; padding: 2px 5px 0; font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; color: #fff; background-color: #005ea5; } .phase-banner span { display: table-cell; vertical-align: baseline; } .phase-banner-alpha, .phase-banner-beta { padding: 10px 0 8px; padding-bottom: 10px; border-bottom: 1px solid #bfc1c3; } .phase-banner-alpha p, .phase-banner-beta p { display: table; margin: 0; color: #000; font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; } .phase-banner-alpha .phase-tag, .phase-banner-beta .phase-tag { display: -moz-inline-stack; display: inline-block; margin: 0 8px 0 0; padding: 2px 5px 0; font-family: "nta", Arial, sans-serif; font-weight: 700; text-transform: none; font-size: 14px; line-height: 1.1428571429; font-size: 16px; line-height: 1.25; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; color: #fff; background-color: #005ea5; } .phase-banner-alpha span, .phase-banner-beta span { display: table-cell; vertical-align: baseline; } .phase-banner { border-bottom: none; } .phase-banner .phase-tag { background: #005ea5; } .govuk-box-highlight { margin: 1em 0; padding: 2em 0 1em; color: #fff; background: #28a197; text-align: center; } @-moz-document regexp('.*') { details summary:not([tabindex]) { display: list-item; display: revert; } } .error-summary, .warning-summary, .success-summary, .info-summary, .info-highlighted { margin-bottom: 0px !important; } .error-summary:last-child, .warning-summary:last-child, .success-summary:last-child, .info-summary:last-child, .info-highlighted:last-child { margin-bottom: 100px; } .error-summary, .info-summary, .success-summary, .warning-summary, .info-highlighted { border-width: 4px; border-style: solid; margin-top: 15px; margin-bottom: 15px; padding: 15px 10px; border-width: 5px; border-style: solid; margin-top: 30px; margin-bottom: 30px; padding: 20px 15px 15px; } .error-summary:focus, .info-summary:focus, .success-summary:focus, .warning-summary:focus, .info-highlighted:focus { outline: 3px solid #ffbf47; } .error-summary p, .info-summary p, .success-summary p, .warning-summary p, .info-highlighted p { margin-bottom: 10px; } .<API key>, .<API key>, .<API key>, .<API key>, .<API key> { margin-top: 0; } .error-summary h1[class^="heading-"], .info-summary h1[class^="heading-"], .success-summary h1[class^="heading-"], .warning-summary h1[class^="heading-"], .info-highlighted h1[class^="heading-"] { margin: 0; } .error-summary h2[class^="heading-"], .info-summary h2[class^="heading-"], .success-summary h2[class^="heading-"], .warning-summary h2[class^="heading-"], .info-highlighted h2[class^="heading-"] { margin: 0; } .error-summary h3[class^="heading-"], .info-summary h3[class^="heading-"], .success-summary h3[class^="heading-"], .warning-summary h3[class^="heading-"], .info-highlighted h3[class^="heading-"] { margin: 0; } .error-summary h4[class^="heading-"], .info-summary h4[class^="heading-"], .success-summary h4[class^="heading-"], .warning-summary h4[class^="heading-"], .info-highlighted h4[class^="heading-"] { margin: 0; } .error-summary h5[class^="heading-"], .info-summary h5[class^="heading-"], .success-summary h5[class^="heading-"], .warning-summary h5[class^="heading-"], .info-highlighted h5[class^="heading-"] { margin: 0; } .error-summary h6[class^="heading-"], .info-summary h6[class^="heading-"], .success-summary h6[class^="heading-"], .warning-summary h6[class^="heading-"], .info-highlighted h6[class^="heading-"] { margin: 0; } .error-summary-list, .info-summary-list, .<API key>, .<API key>, .<API key> { padding-left: 0; } .error-summary-list li, .info-summary-list li, .<API key> li, .<API key> li, .<API key> li { margin-bottom: 5px; } .error-summary-list a, .info-summary-list a, .<API key> a, .<API key> a, .<API key> a { font-weight: bold; text-decoration: underline; } .info-dismiss, .success-dismiss, .warning-dismiss { font-weight: bold; text-decoration: underline; } .info-summary { border-color: #2e358b; border-color: #2e358b; } .info-summary .info-summary-list a { color: #2e358b; } .info-summary .info-dismiss { color: #2e358b; } .success-summary { border-color: #28a197; border-color: #28a197; } .success-summary .<API key> a { color: #28a197; } .success-summary .success-dismiss { color: #28a197; } .warning-summary { border-color: #f47738; border-color: #f47738; } .warning-summary .<API key> a { color: #f47738; } .warning-summary .warning-dismiss { color: #f47738; } .info-highlighted { max-width: 30em; background: #eaebf3; border: none; border-left: solid 10px #2e358b; } .<API key> { padding-left: 0.5em; padding-right: 0.5em; } .<API key> { display: table; } .<API key> > * { position: relative; border-bottom: 1px solid #bfc1c3; display: table-row; border-bottom-width: 0; } .<API key> > * > * { display: block; display: table-cell; border-bottom: 1px solid #bfc1c3; padding: 0.6315789474em 1.0526315789em 0.4736842105em 0; margin: 0; } .<API key> > *:first-child > * { padding-top: 0; } .<API key> > * dt { float: none; } .<API key> .cya-question { font-weight: bold; margin: 0.6315789474em 4em 0.2105263158em 0; } .<API key> > *:first-child .cya-question { margin-top: 0; } .<API key>.cya-questions-short, .<API key>.cya-questions-long { width: 100%; } .<API key>.cya-questions-short .cya-question { width: 30%; } .<API key>.cya-questions-long .cya-question { width: 50%; } .<API key> .cya-answer { padding-bottom: 0.4736842105em; } .<API key> .cya-change { text-align: right; position: absolute; top: 0; right: 0; position: static; padding-right: 0; } .check-your-answers td { font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; font-size: 19px; line-height: 1.3157894737; vertical-align: top; } .check-your-answers .change-answer { text-align: right; font-weight: bold; padding-right: 0; } .header-global { margin: 0 auto; max-width: 960px; overflow: hidden; padding: 15px; } .<API key> { font-size: 24px; font-weight: 700; line-height: 1.1; margin: 0; padding: 0; font-size: 32px; } .<API key> a { border-bottom: 1px solid #000; color: #fff; display: inline-block; padding: 2px 0; text-decoration: none; } .phase-banner-alpha .phase-tag { background: #005ea5; } #global-header-bar { background: #6f777b; } .header-user { background: #f8f8f8; } .header-user, .header-organisation { border-bottom: 1px solid #bfc1c3; } .header-inner { padding: 0; } .global-header-bar { height: 10px; background: #005ea5; } .header-organisation h2 { padding: 0; margin-top: .75em; margin-bottom: 0; } .js-hidden-mobile { display: none; display: block; } .js-hidden-desktop { display: block; display: none; } a.nav-menu-link { float: right; clear: both; margin: 10px 0; font-size: 16px; padding-left: 15px !important; color: #000; text-decoration: none; } a.nav-menu-link:before { left: 5px !important; margin-top: -6px !important; } nav#user-nav { font-size: 14px; clear: both; font-size: 16px; } nav#user-nav > ul { list-style: none; margin-left: -15px; margin-right: -15px; position: relative; float: right; margin: 0; } nav#user-nav > ul li { border-top: 1px solid #bfc1c3; border: none; } nav#user-nav > ul li a { padding: 12px 15px 10px 20px; display: block; } nav#user-nav > ul li li a { padding-left: 15px; } nav#user-nav > ul li.top-level { display: inline-block; float: left; } nav#user-nav > ul li.top-level > a { text-decoration: none; color: #0b0c0c; } nav#user-nav > ul li.top-level.open ul li.selected a { padding-left: 20px; background-image: url("/public/images/tick.png"); background-repeat: no-repeat; background-position: 0px 14px; background-size: 15px; text-decoration: none; color: #0b0c0c; margin-left: 15px; } nav#user-nav > ul li.top-level > a { padding-top: 10px; padding-bottom: 8px; margin: 3px 0; } nav#user-nav > ul li.top-level > a.js-toggle { padding-left: 25px; } nav#user-nav > ul li.top-level ul { display: none; } nav#user-nav > ul li.top-level.open { position: relative; } nav#user-nav > ul li.top-level.open ul { display: block; position: absolute; width: 250px; top: 100%; right: 0; background: #f8f8f8; border: 1px solid #bfc1c3; z-index: 100; } nav#user-nav > ul li.top-level.open ul li { margin: 0 10px; border-bottom: 1px solid #bfc1c3; } nav#user-nav > ul li.top-level.open ul li:last-child { border: none; } nav#user-nav > ul li.top-level.open ul li a { padding-left: 0; padding-right: 0; } nav#user-nav > ul li.top-level.open ul li.selected a { margin-left: 0; } nav#user-nav > ul li.top-level a.menu-open, nav#user-nav > ul li.top-level a.menu-open:focus { background: #f8f8f8; border: 1px solid #bfc1c3; border-bottom: none; position: relative; margin-bottom: -1px; z-index: 101; } a.menu-open, a.menu-closed { padding-left: 20px; position: relative; } a.menu-open:before, a.menu-closed:before { content: ""; position: absolute; left: 10px; border-color: transparent; border-width: 7px 4px; border-style: solid; display: block; width: 0; height: 0; top: 50%; margin-top: -4px; } a.menu-open:before { border-top-color: black; border-top-color: #0b0c0c; } a.menu-closed:before { border-left-color: black; border-left-color: #0b0c0c; border-width: 4px 7px; } nav.global-nav { font-size: 14px; font-size: 16px; } nav.global-nav ul { list-style: none; margin: 0; margin-left: -15px; margin-rightr: -15px; padding: 0; position: relative; } nav.global-nav ul li { display: inline-block; float: left; } nav.global-nav ul li a { padding: 12px 15px 10px; display: block; position: relative; } nav.global-nav ul li a:focus { outline: 0; } nav.global-nav ul li.current a, nav.global-nav ul li.active a { color: black; color: #0b0c0c; text-decoration: none; } nav.global-nav ul li.current a:after, nav.global-nav ul li.active a:after { content: ""; display: block; height: 5px; position: absolute; left: 15px; right: 15px; bottom: -1px; z-index: 1; background: #005ea5; } nav.global-nav ul li.more-link { display: none; } nav.global-nav ul li.more-link a { position: absolute; } nav.global-nav ul#<API key> { float: none; clear: both; margin-right: -15px; float: left; clear: none; margin-left: 0; } nav.global-nav ul#<API key> li { display: block; float: none; border-top: 1px solid #bfc1c3; float: left; border: none; } nav.global-nav ul { font-size: 19px; } nav.global-nav ul li.sa-stacker { float: right; } nav.global-nav ul li.sa-stacker ul { display: none; } nav.global-nav ul li.sa-stacker.sa-open ul { display: block; position: absolute; background: white; left: 15px; right: -15px; border-bottom: 2px solid #bfc1c3; } nav.global-nav ul li.sa-stacker.sa-open ul li { display: block; float: none; border-top: 1px solid #bfc1c3; } .service-info { max-width: 960px; margin: 0 auto; } .service-info .logo { margin-top: 0.78947em; } .service-info .organisation-logo { font-family: Helvetica, Arial; font-weight: 400; display: block; position: relative; font-size: 13px; line-height: 16px; padding: 3px 0 2px 0; text-decoration: none; padding: 3px 0 2px 30px; background-image: url("../images/hmrc_crest_18px.png"); background-position: 5px center; background-repeat: no-repeat; border-left: 2px solid #009390; } .service-info .<API key> { font-size: 18px; line-height: 22px; padding: 3px 0 2px 38px; background-image: url("../images/hmrc_crest_18px_x2.png"); background-size: auto 26px; border-left: 2px solid #009390; white-space: nowrap; } .button.text-link { background-color: transparent; box-shadow: none; text-decoration: underline; color: #005ea5; border: none; } .button.secondary { background-color: #bfc1c3; color: #0b0c0c; box-shadow: 0 2px 0 #737475; } .button.error { background: #b10e1e; box-shadow: 0 2px 0 #6a0812; } @media (min-width: 960px) { .button + .button { margin-left: 10px; } } .hgroup { margin-bottom: 30px; } @media (min-width: 641px) { .hgroup { margin-bottom: 60px; } } /* HTML Guideance styles */ .<API key>:after, .<API key> .<API key>:after, .<API key> .publication-header:after, .<API key> .publication-content .govspeak .contact:after { content: ""; display: block; clear: both; } .<API key>:after, .<API key> .<API key>:after, .<API key> .publication-header:after, .<API key> .publication-content .govspeak .contact:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .<API key> { padding: 15px 15px 90px; } .<API key> .publication-header { background: #2b8cc4; padding: 10px 15px; margin: 0 -15px; } .<API key> .publication-header .headings { overflow: hidden; } .<API key> .publication-header .headings .document-type { font-family: "nta", Arial, sans-serif; font-size: 20px; line-height: 1.11111; font-weight: 400; text-transform: none; display: block; margin: 20px 0 0; } .<API key> .publication-header .headings h1 { font-family: "nta", Arial, sans-serif; font-size: 32px; line-height: 1.09375; font-weight: 400; text-transform: none; font-weight: bold; margin: 5px 0 15px; color: #fff; } .<API key> .publication-header .headings p { margin: 15px 0 20px; color: #fff; } .<API key> .in-page-navigation { color: #fff; margin: 0 0 40px; width: 100%; } .<API key> .in-page-navigation h2 { font-weight: bold; } .<API key> .in-page-navigation ol { padding-left: 30px; list-style-type: decimal; } .<API key> .in-page-navigation ol li { list-style: decimal; font-weight: bold; } .<API key> .in-page-navigation a { color: #fff; text-decoration: none; font-weight: normal; } .<API key> .publication-header a:hover { color: #fff; text-decoration: underline; } .<API key> .publication-content { position: relative; z-index: 2; } .<API key> .publication-content .govspeak h2, #whitehall-wrapper .<API key> .publication-content .govspeak h3 { font-weight: bold; color: black; color: #0b0c0c; margin-top: 30px; } .<API key> .publication-content .govspeak h2 .number { background: #fff; padding-right: 10px; font-weight: bold; } .<API key> .publication-content .govspeak h3 { font-weight: bold; color: black; color: #0b0c0c; margin-top: 30px; } .<API key> .publication-content .govspeak h3 .number { background: #fff; color: #6f777b; padding-right: 10px; } .<API key> .govspeak h4, .<API key> .govspeak h5, .<API key> .govspeak h6 { font-size: 19px; line-height: 1.31579; } @media (min-width: 641px) { .<API key> .publication-header { padding: 0 30px; margin: 0 -15px; } .<API key> .publication-header .headings .document-type { font-size: 27px; line-height: 1.11111; } .<API key> .publication-header .headings .document-type { margin: 75px 0 10px; } .<API key> .publication-header .headings h1 { font-size: 48px; line-height: 1.04167; } .<API key> .publication-header .headings h1 { margin-bottom: 60px; } .<API key> .publication-content .govspeak { width: 75%; float: right; } .<API key> .publication-content .govspeak h2, #whitehall-wrapper .<API key> .publication-content .govspeak h3 { margin-top: 80px; } .<API key> .publication-content .govspeak h2 { font-size: 36px; line-height: 1.11111; } .<API key> .publication-content .govspeak h2 { margin: 60px 0 15px; } .<API key> .publication-content .govspeak h2 .number { font-family: "nta", Arial, sans-serif; font-size: 53px; line-height: 1.03774; font-weight: 400; text-transform: none; font-weight: bold; position: absolute; margin: -30px 0 0 -25%; width: 22%; padding: 35px 0 30px 3%; } .<API key> .publication-content .govspeak h2 .number { font-size: 80px; line-height: 1; } .<API key> .publication-content .govspeak h3 { font-size: 27px; line-height: 1.11111; } .<API key> .publication-content .govspeak h3 { margin-top: 80px; } .<API key> .publication-content .govspeak h3 .number { padding-right: 0; display: inline-block; width: 75px; margin-left: -75px; } .<API key> .publication-content .govspeak h4, #whitehall-wrapper .<API key> .publication-content .govspeak h5, #whitehall-wrapper .<API key> .publication-content .govspeak h6 { font-weight: bold; color: black; color: #0b0c0c; margin-top: 30px; } .<API key> .back-to-content { position: fixed; bottom: 15px; } } /* SFA logo */ #publication-banner { display: flex; } #publication-banner .column-two-thirds { align-self: flex-end; } #publication-banner .logo { border-left: 3px solid #003a69; padding-left: 0px; } #publication-banner .logo .organisation-logo { display: block; padding: 45px 0 0 10px; background-image: url(https://assets.publishing.service.gov.uk/government/assets/crests/org_crest_27px-<SHA256-like>.png); background-position: 9px top; background-size: auto 40px; background-repeat: no-repeat; } #publication-banner .logo .organisation-logo span { font-size: 27px; line-height: 1; } .govuk-box-highlight { padding: 1em 0; } .govuk-box-highlight p { margin-bottom: 0; } .govuk-box-highlight p, .govuk-box-highlight h1, .govuk-box-highlight h2 { margin: 0 auto; max-width: 30em; } .govuk-box-highlight p { font-size: 24px; line-height: 1.25; } .related { border-top-color: #005ea5; border-top-style: solid; border-top-width: 10px; margin-top: 20px; } .visually-hidden, .hidden, .vh { display: none; } table { margin-bottom: 20px; } tr.total th { border: none; } tr.total td { border-bottom: 2px solid #0b0c0c; font-weight: 700; } .govuk-box-highlight a { color: white; } .govuk-box-highlight a:hover { color: #2b8cc4; } .govuk-box-highlight a:visited { color: #912B88; } /* Alerts */ .alert-default { border-color: #2b8cc4; background-color: #eaf4f9; } .alert-warning { border-color: #b10e1e; background-color: #fceaeb; } .alert-success { border-color: #28a197; background-color: #eaf6f5; } /* directory pattern */ .a-to-z-nav a { display: inline-block; padding: .3em; position: relative; left: -.3em; text-transform: uppercase; } .a-to-z-nav a ul#list li { margin-bottom: 5px; } .sprint-11 #checklist .statusToDo, .sprint-15 #checklist .statusToDo, .sprint-19 #checklist .statusToDo { background: black; background: #0b0c0c; color: white; padding: 3px 5px; text-transform: uppercase; font-size: 0.65em; display: block; text-align: center; } .sprint-11 #checklist td:last-child, .sprint-15 #checklist td:last-child, .sprint-19 #checklist td:last-child { padding-right: 0; } .sprint-723 .page-dashboard .grid-row .column-half { min-height: 200px; } .sprint-723 .page-dashboard .grid-row .column-half p { border-bottom: 3px solid #DEE0E2; padding-bottom: 10px; } .sprint-723 .header-global { padding: 0; } .sprint-723 #dothething { margin-bottom: 30px; float: right; } @media (min-width: 641px) { .sprint-723 #dothething { margin-top: 40px; } } #dothething { margin-bottom: 30px; float: right; } @media (min-width: 641px) { #dothething { margin-top: 40px; } } table .orgtype { display: inline-block; } table .orgtype:first-letter { text-transform: uppercase; } span.notification { background: #005ea5; padding: 3px 10px; color: white; font-weight: 900; border-radius: 3px; } #account-switch ul li { background: #f8f8f8; padding: 10px; border-left: 4px solid #bfc1c3; margin-bottom: 10px; overflow: auto; } #account-switch ul li h4 { margin: 0; width: 50%; float: left; } #account-switch ul li dl { width: 50%; float: right; text-align: right; } #account-switch ul li dl dt { float: left; padding-right: 5px; } #account-switch ul li dl dd { font-weight: 900; text-align: left; } #account-switch ul li.active { border-color: #005ea5; background: #bfd7e9; } .zxcvbn .passwordContainer { position: relative; float: left; width: 100%; clear: both; overflow: visible; } .zxcvbn .passwordContainer #password { width: 100%; box-sizing: border-box; float: left; padding-right: 20%; } .zxcvbn .passwordContainer .show-pw { border-left: 2px solid #0B0C0C; border-right: none; box-sizing: border-box; color: #005ea5; cursor: pointer; display: inline-block; float: left; font-size: 17px; padding: 4px 10px; position: absolute; right: 2px; text-align: center; text-decoration: underline; width: 20%; z-index: 999; top: 2px; line-height: 23px; } .zxcvbn .passwordContainer .peakHelp { box-sizing: border-box; position: absolute; left: 0; border: none; padding: 4px; border-left: 2px solid #6f777b; cursor: pointer; padding: 4px 10px; color: gray; width: 80%; text-align: center; display: none; background: white; top: 2px; } .zxcvbn .passwordContainer .password-strength { display: block; border: 2px solid #6f777b; box-sizing: border-box; height: 10px; background: #ccc; margin-top: 3px; width: 100%; float: left; } .zxcvbn .passwordContainer p { float: left; clear: both; } .zxcvbn .show-pw.hide-pw { background: #6f777b; color: white; } .zxcvbn .password-strength { display: block; border: 2px solid #6f777b; box-sizing: border-box; height: 10px; background: #ccc; border-top: 0; } .zxcvbn .password-strength span { width: 20%; box-sizing: border-box; background: transparent; height: 100%; display: inline-block; float: left; -webkit-transition: width 2s, background-color 1s; } .zxcvbn .password-strength .veryweak { background: #B10E1E; } .zxcvbn .password-strength .weak { background: #F47738; } .zxcvbn .password-strength .good { background: #2B8CC4; } .zxcvbn .password-strength .strong { background: #28A197; } .zxcvbn .password-strength .verystrong { background: #006435; } .zxcvbn .pw-strength { font-weight: 900; } .zxcvbn + p { color: #6f777b; } .zxcvbn + p .span { color: #0b0c0c; font-weight: 900; } .zxcvbn #passwordgroup .popover { position: relative; display: none; left: 0; background: #f8f8f8; padding: 10px; border-bottom: 4px solid #005ea5; width: 100%; box-sizing: border-box; margin-bottom: 20px; } .zxcvbn #passwordgroup .popover p { margin-bottom: 10px; } .zxcvbn #passwordgroup .popover .arrow { width: 0; height: 0; border-style: solid; border-width: 17px 10px 0 10px; border-color: #005ea5 transparent transparent transparent; position: absolute; bottom: -18px; display: block; margin: 0 auto; } .zxcvbn #passwordgroup .popover .fa-circle { color: black; color: #0b0c0c; font-size: 0.35em !important; top: -4px; position: relative; margin: 0 10px 0 5px; } .zxcvbn #passwordgroup .popover .fa-check-circle { color: #00823b; font-size: 1em !important; top: 0; position: relative; margin: 0 5px 0 0; } @media (min-width: 960px) { .zxcvbn #passwordgroup .popover { border-bottom: none; border-left: 4px solid #005ea5; } .zxcvbn #passwordgroup .popover .arrow { border-width: 10px 17.3px 10px 0; border-color: transparent #005ea5 transparent transparent; position: absolute; left: -20px; top: 53px; } } @media (min-width: 641px) { .zxcvbn .passwordContainer { width: 50%; } .zxcvbn .passwordContainer .show-pw { font-size: 18px; padding: 5px 10px 6px; line-height: 25px; } } @media (min-width: 641px) { #account-switch ul li { width: 49%; float: left; box-sizing: border-box; margin-right: 1%; } #account-switch ul li h4 { width: 100%; } #account-switch ul li dl { width: 100%; } #account-switch ul li:last-child { margin-right: 0%; width: 50%; } .zxcvbn .password-strength { width: 50%; } } @media (min-width: 960px) { #account-switch ul { overflow: auto; } #account-switch ul li { width: 49%; float: left; box-sizing: border-box; margin-right: 1%; } #account-switch ul li h4 { width: 50%; } #account-switch ul li dl { width: 50%; } #account-switch ul li:last-child { margin-right: 0%; width: 50%; } .zxcvbn #passwordgroup { position: relative; } .zxcvbn #passwordgroup .popover { position: absolute; left: 55%; background: #f8f8f8; padding: 10px; border-left: 4px solid #005ea5; top: -15px; width: 60%; } } .phase-banner-beta .phase-tag { background-color: #005ea5; } .alert-error { border-color: #F47738; background: #fcddcd; } .alert-error div > span { background: #F47738; } .alert-warning { border-color: #b10e1e; background: #ecc3c7; } .alert-warning div > span { background: #b10e1e; } .panel-filled { background: #dee0e2; } /* search field header */ .search-header { padding: 20px 0 0px; margin-bottom: 30px; position: relative; } .search-header input { -webkit-appearance: none; border-radius: 0; font-family: "nta", Arial, sans-serif; font-size: 16px; line-height: 1.25; font-weight: 400; text-transform: none; font-size-adjust: 0.5; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 100%; margin: 0; padding: 0 0 0 10px; display: block; height: 50px; border: 2px solid #6f777b; border-right: none; line-height: 48px !important; } .search-submit { position: absolute; bottom: 0; right: 0; height: 50px; width: 50px; overflow: visible; } .search-submit button { -<API key>: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; position: absolute; z-index: 4; right: 0; top: 0; width: 50px; height: 50px; border: none; overflow: hidden; text-indent: -5000px; color: #fff; background-color: #2b8cc4; background-image: url(https://assets.publishing.service.gov.uk/frontend/search/search-button-<SHA256-like>.png); background-repeat: no-repeat; background-position: -12.5% 50%; } .search-submit button:hover { background-color: #267daf; } #results li { position: relative; overflow: auto; border-bottom: 1px solid #BFC1C3; margin: 10px 0; padding: 0 0 15px; float: left; width: 100%; box-sizing: border-box; } #results li h2 { margin: 0 0 5px; } #results li.added { outline: 3px solid #6F777B; padding: 10px; border-bottom: none; background: #F8F8F8; color: #0B0C0C; margin: 10px -10px; box-sizing: content-box; } #results li.added h2 { margin: 0; } #results li.added div { margin: 10px -10px -10px; padding: 10px; color: #0b0c0c; border-top: 1px solid #BFC1C3; float: left; width: 100%; font-size: 16px; } @media (min-width: 641px) { .search-header { width: 66.666%; } } .header-global { width: 33%; float: left; padding: 0; } @media (min-width: 769px) { #global-header .header-wrapper .header-global .header-logo { width: 100% !important; } } #global-header .header-proposition { padding-top: 5px; } .switch-levy-account table .active { background: #ffefd1; } .attachment-thumb img { display: block; width: 99px; height: 140px; background: white; outline: 5px solid rgba(11, 12, 12, 0.1); -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4); -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4); } .notify { margin-bottom: 30px; position: relative; border-left: 5px solid #2B8CC4; background: #cae2f0; padding: 1px 20px; } .notify i { position: absolute; top: 10px; right: 10px; } main#content[class*="test-react-"], main[class*="test-react-"].header-inner { height: 100%; background: white; position: absolute; max-width: 100%; width: 100%; padding-bottom: 0; } main[class*="test-react-"] #countdown, main[class*="test-react-"] #countdown div, main[class*="test-react-"] #word, main[class*="test-react-"] #word div, main[class*="test-react-"] #response { height: 100%; box-sizing: border-box; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 0; -ms-flex: 0 1 auto; flex: 0 1 auto; -webkit-box-orient: horizontal; -<API key>: normal; -ms-flex-direction: row; flex-direction: row; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; text-align: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } main[class*="test-react-"] #countdown div, main[class*="test-react-"] #countdown div div, main[class*="test-react-"] #word div, main[class*="test-react-"] #word div div, main[class*="test-react-"] #response div { height: 100%; z-index: 1; width: 100%; } main[class*="test-react-"] #response div { text-align: left; width: 50vw; margin: 0 auto; } .agreement-cover section { margin-bottom: 30px; overflow: auto; } .agreement-cover section .attachment { position: relative; padding: 15px 0 0 129px; } .agreement-cover section .attachment .attachment-thumb { position: relative; float: left; margin-top: 5px; margin-left: -124px; padding-bottom: 15px; } .agreement-cover section .detail { position: relative; padding: 15px 0 0 0px; } @media (min-width: 641px) { .agreement-cover section .attachment { margin: 30px 0; } .agreement-cover .head-section { float: left; clear: both; width: 33.33333%; } .agreement-cover .content { float: right; width: 66.66667%; } .agreement-cover address { margin-top: 48px; } } .changeHighlightCopy { font-weight: 900; } .<API key> { bottom: 0; position: fixed; } .back-to-content { font-family: "nta", Arial, sans-serif; font-size: 19px; line-height: 1.31579; font-weight: 400; text-transform: none; display: inline-block; margin-bottom: 15px; } .back-to-content:before { content: "\2191"; } .logic-page { background: white; position: absolute; width: 100%; height: 100%; z-index: 999; display: block; top: 0; left: 0; margin: 0px !important; padding: 60px; } dl.confirm-details dd { font-weight: 900; width: auto; float: left; padding-right: 10px; } /*New FILTER menu style*/ @media (min-width: 641px) { .<API key> { padding-top: 30px; padding-bottom: 30px; } } .impact-link .impact-link-figure { font-size: 16px; display: inline-block; vertical-align: text-top; } .impact-link .impact-link-label { display: inline-block; /*padding-left: 0.5em;*/ white-space: normal; width: 75%; vertical-align: text-top; /*text-decoration: underline;*/ } .impact-link { font-size: 16px; font-weight: bold; line-height: 1.1; text-decoration: none; display: block; white-space: nowrap; padding: 5px; background-color: #dee0e2; margin-bottom: 2px; } .impact-link:visited { color: #005ea5; } .impact-link:hover { color: #2b8cc4; } .impact-link.active { color: black; color: #0b0c0c; background-color: white; border: 1px solid; } .impact-link.active .impact-link-label { text-decoration: none; } @media (min-width: 641px) { .impact-link .impact-link-label { padding-left: 0.5em; } } @media (min-width: 769px) { .impact-link { font-size: 24px; padding: 10px; min-height: 55px; } } @media (min-width: 769px) { .impact-link .impact-link-figure { height: 80px; font-size: 60px; line-height: 0.9; } } table.form tbody > tr th { border-bottom: none; } table.form td { line-height: 2.315789; } table.form td .block-label.<API key>::before { top: -12px; } table.form td .block-label.<API key>::after { top: -3px; } /*End of filter menu style*/ @media (min-width: 768px) { ul.three-column { clear: both; width: 100%; display: block; overflow: auto; } ul.three-column li { width: 33%; float: left; } } #app { width: 100%; overflow: auto; } #help2 { background: #DEE0E2; padding: 20px; } .sprint-31 .bingo > div div { color: white; padding: 15px; } .sprint-31 .bingo > div div .heading-medium { margin: 0 0 30px; } .sprint-31 .bingo > div div a { display: block; margin: -15px; padding: 11px; background: white; } .sprint-31 .bingo div:nth-child(1) div { background: #2E358B; } .sprint-31 .bingo div:nth-child(1) div a { border: 4px solid #2E358B; } .sprint-31 .bingo div:nth-child(2) div { background: #912B88; } .sprint-31 .bingo div:nth-child(2) div a { border: 4px solid #912B88; } .sprint-31 .bingo div:nth-child(3) div { background: #D53880; } .sprint-31 .bingo div:nth-child(3) div a { border: 4px solid #D53880; } .sprint-31 .bingo-1 > div div, .sprint-31 .bingo-2 > div div, .sprint-31 .bingo-3 > div div, .sprint-31 .bingo-4 > div div { color: white; padding: 15px; } .sprint-31 .bingo-1 > div div .heading-medium, .sprint-31 .bingo-2 > div div .heading-medium, .sprint-31 .bingo-3 > div div .heading-medium, .sprint-31 .bingo-4 > div div .heading-medium { margin: 0 0 30px; } .sprint-31 .bingo-1 > div div a, .sprint-31 .bingo-2 > div div a, .sprint-31 .bingo-3 > div div a, .sprint-31 .bingo-4 > div div a { display: block; margin: -15px; padding: 11px; background: white; } .sprint-31 .bingo-1 div div { background: #2E358B; } .sprint-31 .bingo-1 div div a { border: 4px solid #2E358B; } .sprint-31 .bingo-2 div div { background: #912B88; } .sprint-31 .bingo-2 div div a { border: 4px solid #912B88; } .sprint-31 .bingo-3 div div { background: #D53880; } .sprint-31 .bingo-3 div div a { border: 4px solid #D53880; } .sprint-31 .bingo-4 div div { background: #6F72AF; } .sprint-31 .bingo-4 div div a { border: 4px solid #6F72AF; } .page-navigation { padding-top: 10px; } .page-navigation .description { display: block; } .page-navigation .counter { display: block; font-size: 14px; } @media (max-width: 640px) { .page-navigation .hide-mob { display: none; } } .<API key> { display: inline-block; font-size: 1em; margin-right: -4px; overflow: hidden; padding: 1.2em 0.6em; text-decoration: none; vertical-align: top; width: 50%; box-sizing: border-box; } .<API key>:hover, .<API key>:focus { background-color: #F8F8F8; } .<API key> .arrow-button { color: #2e358b; float: left; font-size: 3.5em; margin-right: 10px; margin-top: -0.2em; } .<API key>.previous { text-align: left; } .<API key>.next { text-align: right; } .<API key>.next .arrow-button { float: right; margin-left: 10px; margin-right: 0; } .<API key>:hover { text-decoration: underline; } .<API key>:hover .arrow-button { color: #2e8aca; } .<API key>:active, .<API key>:focus { background-color: #f8f8f8; } .colspan { text-align: center; padding-left: 1em; padding-right: 1em; } .cofunding { background: #dee0e2; } .<API key> { font-size: 16px; line-height: 1.25; display: block; color: #6f777b; padding-top: 2px; padding-bottom: 2px; font-size: 19px; line-height: 1.31579; } .<API key>, .<API key>, .<API key>, .<API key> { display: -moz-inline-stack; display: inline-block; } .<API key>, .<API key> { margin-left: -40px; padding-left: 30px; } .<API key>, .<API key> { text-align: right; margin-right: -40px; padding-right: 30px; } .text-box-unit { display: -moz-inline-stack; display: inline-block; color: #6f777b; font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; font-weight: bold; width: 40px; position: relative; z-index: 10; pointer-events: none; text-align: center; } @media (min-width: 641px) { .text-box-unit { font-size: 19px; line-height: 1.31579; } } .<API key> { position: absolute; left: -9999em; } table .details { padding: 0.6315789474em 1.0526315789em 0.4736842105em; } dl.course-details { margin-bottom: 15px; overflow: auto; } dl.course-details dt { font-weight: 900; float: left; display: inline-block; clear: left; } dl.course-details dd { float: left; display: inline-block; } td.highlight, th.highlight { background: #dee0e2; } table.responsive thead { display: none; } table.responsive tr { margin-bottom: 10px; display: block; float: lefåt; width: 100%; box-sizing: border-box; } table.responsive tr td { display: block; text-align: right; clear: left; float: left; width: 100%; padding: 10px 10px 8px; box-sizing: border-box; border-bottom: 1px dotted #bfc1c3; } table.responsive tr td:before { content: attr(data-label); float: left; font-weight: bold; padding-right: 10px; } table.responsive tr td:last-child { border-bottom: none; } table.responsive tr td:empty { display: none; } table.responsive tr.total { border: 2px solid #000; } table.responsive thead { display: table-header-group; } table.responsive tr { display: table-row; border: none; float: none; margin: 0; } table.responsive tr th, table.responsive tr td { display: table-cell; text-align: left; float: none; clear: none; padding: 0.6em 1em 0.5em; border-bottom-style: solid; width: auto; } table.responsive tr th:first-child, table.responsive tr td:first-child { padding-left: 0; } table.responsive tr th:last-child, table.responsive tr td:last-child { padding-right: 0; } table.responsive tr th:before, table.responsive tr td:before { display: none; } table.responsive tr th.numeric, table.responsive tr td.numeric { text-align: right; } table.responsive tr th.colgroup, table.responsive tr td.colgroup { text-align: center; } table.responsive tr th:last-child, table.responsive tr td:last-child { border-bottom: 1px solid #bfc1c3; } table.responsive tr.total { border: none; } table.responsive tr.total td { border-bottom: none; } table.responsive tr.total td.total { border-bottom: 2px solid #000; } table.responsive tr.total td:last-child { padding-left: 0; } table.responsive tr th.tw-5 { width: 5%; } table.responsive tr th.tw-10 { width: 10%; } table.responsive tr th.tw-15 { width: 15%; } table.responsive tr th.tw-20 { width: 20%; } table.responsive tr th.tw-25 { width: 25%; } table.responsive tr th.tw-30 { width: 30%; } table.responsive tr th.tw-35 { width: 35%; } table.responsive tr th.tw-40 { width: 40%; } table.responsive tr th.tw-45 { width: 45%; } table.responsive tr th.tw-50 { width: 50%; } table.responsive tr th.tw-55 { width: 55%; } table.responsive tr th.tw-60 { width: 60%; } table.responsive tr th.tw-65 { width: 65%; } table.responsive tr th.tw-70 { width: 70%; } .nowrap { white-space: nowrap; } #welcome .section { position: relative; } .todo, .done { margin-bottom: 15px !important; } .todo { background: #fff; border: 1px solid #bfc1c3; padding: 15px; margin-bottom: 15px; overflow: auto; } .done { background: #2e358b; border-color: #2e358b; color: white; overflow: auto; margin: 0; position: relative; } .done:hover { background: #232868; background: #252b6b; cursor: pointer; } .done h3 { float: left; } .done h3 span a { color: white; font-weight: 400; top: -3px; position: relative; left: 5px; cursor: pointer; } .done p { float: left; clear: left; } .done p + span { font-size: 24px; font-weight: 900; float: right; position: absolute; top: 40px; right: 20px; } .done p a { font-weight: 900; color: #fff; } .account-dashboard-8 #welcome .todo { border: none; border-left: 5px solid #2e358b; } .account-dashboard-8 #welcome .todo span { display: inline-block; float: left; padding: 0px 30px 0 15px; } .account-dashboard-8 #welcome .todo span.not-done { float: right; } .account-dashboard-8 #welcome .todo p { display: inline-block; width: 50%; padding: 5px 0; margin: 0; } .account-dashboard-8 #welcome .done { background: #fff; padding: 15px; margin-bottom: 15px; overflow: auto; border-left: 5px solid #28a197; } .account-dashboard-8 #welcome .done span { display: inline-block; float: left; padding: 0px 30px 0 15px; } .account-dashboard-8 #welcome .done span.check { float: right; } .account-dashboard-8 #welcome .done p { display: inline-block; width: 50%; padding: 5px 0; margin: 0; } #opc_button { display: block; margin: 15px 0; } #opc_dropdown { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; font-family: "nta", Arial, sans-serif; font-weight: 400; text-transform: none; font-size: 16px; line-height: 1.25; width: 100%; padding: 5px 4px 4px; border: 2px solid #0b0c0c; border-radius: 0; width: 50%; font-size: 19px; line-height: 1.3157894737; margin: 0 0 15px; } #opc_dropdown:focus { outline: 3px solid #ffbf47; outline-offset: 0; } #opc_dropdown option { font-weight: normal; display: block; white-space: pre; min-height: 1.2em; padding: 0px 2px 1px; } .list.list-links dt, .list.list-links dd { float: left; box-sizing: border-box; } .list.list-links dt { font-weight: bold; max-width: 20%; padding-right: 7.5px; clear: left; margin-bottom: 1em; } .list.list-links dt b { font-weight: 900; } @media (max-width: 640px) { .list.list-links dt, .list.list-links dd { float: none; width: 100%; max-width: none; padding: 0; } } .list.list-links dt { margin-bottom: 0 !important; } @media (max-width: 640px) { .list.list-links dt { float: left; clear: both; display: inline-block; width: auto; margin-right: .5rem; font-weight: normal; margin-bottom: 0 !important; } } .list.list-links dt { max-width: none; font-weight: normal; } li.added + li { display: none; } .filters { display: block; margin: 0 0 20px 0; border: 1px solid #dee0e2; overflow: hidden; } .filters .toggler { clear: both; background: #dee0e2; box-sizing: border-box; display: block; width: 100%; padding: 5px 30px 5px 10px; margin: 0; top: 0; float: none; position: relative; cursor: default; } .filters .toggled-content { padding: 20px; } #signinsignup { position: relative; } height: 0; } #OR:after { content: "OR"; position: relative; width: 0px; top: 140px; left: -120px; display: inline; background: gray; border-radius: 20px; padding: 6px 6px 4px 6px; color: white; font-weight: 900; line-height: normal; } .data { padding: 20px 10px; margin: 0; min-height: 160px; position: relative; } .data h1 + h1, .data h1 + h2, .data h1 + h3, .data h1 + h4, .data h1 + h5, .data h1 + h6, .data h2 + h1, .data h2 + h2, .data h2 + h3, .data h2 + h4, .data h2 + h5, .data h2 + h6, .data h3 + h1, .data h3 + h2, .data h3 + h3, .data h3 + h4, .data h3 + h5, .data h3 + h6, .data h4 + h1, .data h4 + h2, .data h4 + h3, .data h4 + h4, .data h4 + h5, .data h4 + h6, .data h5 + h1, .data h5 + h2, .data h5 + h3, .data h5 + h4, .data h5 + h5, .data h5 + h6, .data h6 + h1, .data h6 + h2, .data h6 + h3, .data h6 + h4, .data h6 + h5, .data h6 + h6 { position: absolute; bottom: 15px; } .data.fuschia { background: #912b88; color: #fff; } .data.fuschia:hover { background: #6d2066; background: #702369; } .data.orange { background: #f47738; color: #fff; } .data.orange:hover { background: #b7592a; background: #ba5c2d; } .data.purple { background: #2e358b; color: #fff; } .data.purple:hover { background: #232868; background: #252b6b; } .data.fuscia { background: #912b88; color: #fff; } .data.fuscia:hover { background: #6d2066; background: #702369; } .data.mauve { background: #6f72af; color: #fff; } .data.mauve:hover { background: #535683; background: #565986; } .data.pink { background: #d53880; color: #fff; } .data.pink:hover { background: #a02a60; background: #a32d63; } .data.red { background: #df3034; color: #fff; } .data.red:hover { background: #a72427; background: #aa272a; } .data.blue { background: #005ea5; color: #fff; } .data.blue:hover { background: #00477c; background: #034a7f; } .data.grey { background: #bfc1c3; color: #0b0c0c; } .data.grey:hover { background: gray; background: #858686; } .data span { text-decoration: underline; margin: 5px -10px -20px; padding: 10px; background: rgba(255, 255, 255, 0.2); display: block; font-weight: 900; } .data span i { visibility: hidden; } .data:hover span i { visibility: visible; } * { box-sizing: border-box; } .timeline { width: 100%; background: #fff; padding: 10px; position: relative; } .timeline:before { content: ''; position: absolute; top: 0px; left: 0; bottom: 0px; width: 1px; background: #ddd; } .entry { clear: both; text-align: left; position: relative; margin-bottom: 15px; } .entry .time { color: #6f777b; } .entry a.name { color: #0b0c0c; } .entry a.name:hover { color: #6f777b; } .entry .title { color: #6f777b; } .entry .title h3 { margin: 0; } .entry .title p { margin: 0; } .entry.start .title:after { content: "Start"; position: absolute; width: 16px; height: 16px; border: 1px solid #ddd; background-color: #ddd; border-radius: 100%; margin-top: 47px; left: -19px; z-index: 99; text-indent: 20px; font-weight: 900; } .entry .body p { line-height: 1.4em; } .entry .body p:first-child { margin-top: 0; font-weight: 400; } .entry .body ul { color: #aaa; padding-left: 0; list-style-type: none; } .entry .body ul li:before { content: "–"; margin-right: .5em; } .entry .body:before { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid #ddd; background-color: #ddd; border-radius: 100%; margin-top: 4px; left: -15px; z-index: 99; } @media (min-width: 640px) { .timeline { padding: 0 15px; } .timeline:before { left: calc(33% + 15px); } .timeline:after { content: ""; display: table; clear: both; } .entry { margin-bottom: 0; } .entry.start .title:after { display: none; } .entry.start .body:after { content: "Start"; position: absolute; width: 16px; height: 16px; border: 1px solid #ddd; background-color: #ddd; border-radius: 100%; margin-top: 20px; right: auto; z-index: 99; margin-left: -34px; text-indent: 33px; font-weight: 400; color: gray; line-height: 16px; } .entry .title { width: 33%; margin-bottom: .5em; float: left; padding-right: 15px; text-align: right; position: relative; top: -5px; } .entry .title:before { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid #ddd; background-color: #ddd; border-radius: 100%; top: 15%; right: -15px; z-index: 99; } .entry .body { width: 66%; margin: 0 0 30px; padding-left: 30px; float: right; position: relative; top: -5px; } .entry .body:before { display: none; } } .multiple-choice { display: block; float: none; clear: left; position: relative; padding: 0 0 0 38px; margin-bottom: 10px; } .multiple-choice input { position: absolute; cursor: pointer; left: 0; top: 0; width: 38px; height: 38px; z-index: 1; margin: 0; zoom: 1; filter: alpha(opacity=0); opacity: 0; } @media (min-width: 641px) { .multiple-choice { float: left; } } @media (min-width: 641px) { .multiple-choice label { float: left; padding-top: 7px; padding-bottom: 7px; } } .multiple-choice label { cursor: pointer; padding: 8px 10px 9px 12px; display: block; -ms-touch-action: manipulation; touch-action: manipulation; } .multiple-choice [type=checkbox] + label::before { content: ""; border: 2px solid; background: transparent; width: 34px; height: 34px; position: absolute; top: 0; left: 0; } .multiple-choice [type=checkbox] + label::after { content: ""; border: solid; border-width: 0 0 5px 5px; background: transparent; width: 17px; height: 7px; position: absolute; top: 10px; -moz-transform: rotate(-45deg); -o-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); -ms-transform: rotate(-45deg); transform: rotate(-45deg); zoom: 1; filter: alpha(opacity=0); opacity: 0; } .multiple-choice input:checked + label::after { zoom: 1; filter: alpha(opacity=100); opacity: 1; } .multiple-choice option:disabled { color: gray; background: red; } table.footable > tfoot > tr.footable-paging > td > ul.pagination { display: block; } .footable .pagination > li > a, .footable .pagination > li > span { border: none; background: none; } .footable .pagination li, ul.pagination > li.footable-page.visible { display: none; } .footable .pagination li[data-page="next"], .footable .pagination li[data-page="prev"] { display: inline-block; font-size: 3.5em; } .footable .pagination li[data-page="next"] { float: right; } .footable .pagination li[data-page="next"] a:before { content: "Next page"; font-size: 19px; position: relative; top: -10px; } .footable .pagination li[data-page="prev"] { float: left; } .footable .pagination li[data-page="prev"] a:after { content: "Previous page"; font-size: 19px; position: relative; top: -10px; } table.footable > tfoot > tr.footable-paging > td > span.label { display: inline-block; margin: 0 0 10px; padding: 4px 10px; top: 40px; position: relative; background: white; color: #0b0c0c; font-weight: 400; font-size: 19px; } #content.manage-apprentices table.dataTable, .manage-apprentices.header-inner table.dataTable, #content.manage-apprentices table.dataTable th, .manage-apprentices.header-inner table.dataTable th, #content.manage-apprentices table.dataTable td, .manage-apprentices.header-inner table.dataTable td { font-size: 16px; } #content.manage-apprentices.full-width, .manage-apprentices.full-width.header-inner { width: 100%; max-width: 100%; margin: 0; } #content.manage-apprentices.full-width header, .manage-apprentices.full-width.header-inner header { background: #dee0e2; border-bottom: 1px solid #bfc1c3; padding: 15px; overflow: auto; } #content.manage-apprentices.full-width nav, .manage-apprentices.full-width.header-inner nav { border-bottom: 1px solid #bfc1c3; padding: 10px; overflow: auto; } #content.manage-apprentices.full-width nav ul, .manage-apprentices.full-width.header-inner nav ul { list-style-type: none; } #content.manage-apprentices.full-width nav ul li, .manage-apprentices.full-width.header-inner nav ul li { display: inline-block; float: left; margin: 0 10px 0 0; } #content.manage-apprentices.full-width article table th a, .manage-apprentices.full-width.header-inner article table th a, #content.manage-apprentices.full-width article table a, .manage-apprentices.full-width.header-inner article table a { text-decoration: none; } #content.manage-apprentices.full-width article table .fa-check, .manage-apprentices.full-width.header-inner article table .fa-check, #content.manage-apprentices.full-width article table .fa-check + span, .manage-apprentices.full-width.header-inner article table .fa-check + span { color: #006435; } #content.manage-apprentices.full-width article table .fa-pause, .manage-apprentices.full-width.header-inner article table .fa-pause, #content.manage-apprentices.full-width article table .fa-pause + span, .manage-apprentices.full-width.header-inner article table .fa-pause + span { color: #f47738; } #content.manage-apprentices.full-width article table .fa-stop, .manage-apprentices.full-width.header-inner article table .fa-stop, #content.manage-apprentices.full-width article table .fa-stop + span, .manage-apprentices.full-width.header-inner article table .fa-stop + span { color: #b10e1e; } #activityFilters input[type="text"], #activityFilters select, #ManageFilters input[type="text"], #ManageFilters select { width: 100%; } .change-email input[type="email"]:disabled { color: #6f777b; } .account-dashboard-7, .<API key>, .apprentices-index { } .account-dashboard-7 .tabs-menu, .<API key> .tabs-menu, .apprentices-index .tabs-menu { float: left; border-bottom: 1px solid #d4d4d1; width: 100%; padding-left: 10px; } .account-dashboard-7 .tabs-menu li, .<API key> .tabs-menu li, .apprentices-index .tabs-menu li { display: inline-block; float: left; text-align: center; margin-right: 5px; color: #000; background-color: #dee0e2; border-top: 1px solid #bfc1c3; border-right: 1px solid #bfc1c3; border-left: 1px solid #bfc1c3; bottom: -1px; line-height: 44px; } .account-dashboard-7 .tabs-menu li:hover, .<API key> .tabs-menu li:hover, .apprentices-index .tabs-menu li:hover { line-height: 51px; margin-top: -6px; margin-bottom: -1px; background: #f8f8f8; text-decoration: underline; } .account-dashboard-7 .tabs-menu li.current, .<API key> .tabs-menu li.current, .apprentices-index .tabs-menu li.current { position: relative; background-color: #fff; border-bottom: 1px solid #fff; z-index: 5; line-height: 50px; margin-bottom: -1px; margin-top: -7px; } .account-dashboard-7 .tabs-menu li a, .<API key> .tabs-menu li a, .apprentices-index .tabs-menu li a { padding: 15px; margin-top: 0px; color: #005EA5; text-decoration: none; } .account-dashboard-7 .tabs-menu .current a, .<API key> .tabs-menu .current a, .apprentices-index .tabs-menu .current a { color: #000; } .account-dashboard-7 .tabs-menu li a:focus, .<API key> .tabs-menu li a:focus, .apprentices-index .tabs-menu li a:focus { background: none; border: 0; outline: 0; } .account-dashboard-7 .tab-container, .<API key> .tab-container, .apprentices-index .tab-container { margin-bottom: 10px; } .account-dashboard-7 .tab-content, .<API key> .tab-content, .apprentices-index .tab-content { padding: 0px; display: none; } .account-dashboard-7 #tab-1, .<API key> #tab-1, .apprentices-index #tab-1 { display: block; float: left; overflow: auto; border: 1px solid #bfc1c3; border-top: 0; padding: 15px; } .account-dashboard-7 #tab-1 div, .<API key> #tab-1 div, .apprentices-index #tab-1 div { border-bottom: 1px solid #bfc1c3; padding: 10px; position: relative; } .account-dashboard-7 #tab-1 div:last-child, .<API key> #tab-1 div:last-child, .apprentices-index #tab-1 div:last-child { border-bottom: none; } .account-dashboard-7 #tab-1 div a.dismiss, .<API key> #tab-1 div a.dismiss, .apprentices-index #tab-1 div a.dismiss { float: right; font-size: 16px; display: none; } .account-dashboard-7 #tab-1 div p, .<API key> #tab-1 div p, .apprentices-index #tab-1 div p { margin: 0; } .account-dashboard-7 #tab-1 div.see-all, .<API key> #tab-1 div.see-all, .apprentices-index #tab-1 div.see-all { border-left: white; padding-left: 20px ""; } .account-dashboard-7 #tab-2, .<API key> #tab-2, .apprentices-index #tab-2 { display: block; float: left; overflow: auto; border: 1px solid #bfc1c3; border-top: 0; padding: 15px; } .account-dashboard-7 .timeline, .<API key> .timeline, .apprentices-index .timeline { padding-top: 0px; padding-left: 0; padding-bottom: 0px; margin-left: 5px; position: relative; width: 100%; background: #FFF; } .account-dashboard-7 .timeline .body, .<API key> .timeline .body, .apprentices-index .timeline .body { width: 100%; margin-left: 20px; margin-bottom: 30px; position: relative; } .account-dashboard-7 .timeline .body div span, .<API key> .timeline .body div span, .apprentices-index .timeline .body div span { color: #6f777b; } .account-dashboard-7 .timeline .body:before, .<API key> .timeline .body:before, .apprentices-index .timeline .body:before { content: ""; position: absolute; width: 8px; height: 8px; background-color: #BFC1C3; border-radius: 100%; left: -25px; top: 24%; z-index: 99; } .account-dashboard-7 .timeline:before, .<API key> .timeline:before, .apprentices-index .timeline:before { content: ""; position: absolute; top: 0px; bottom: 0px; width: 1px; background: #BFC1C3; top: 30px; bottom: 10px; left: -1px; } .notification-row { padding: 20px 0 30px 0; } .dismiss { display: none; } dl { clear: both; } dl dt { float: left; margin-right: 5px; font-weight: 900; } .label { display: inline; padding: 0 .25em 0; font-size: 16px; font-weight: 400; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0; } .label.white { background: #fff; color: #0b0c0c; } .label.blue, .label.mya { background: #005ea5; } .label.orange, .label.commitments { background: #f47738; } .label.purple, .label.recruit { background: #2e358b; } .label.mellow-red, .label.sfs { background: #df3034; } .label.grey { background: #dee0e2; color: #0b0c0c; } .label.green { background: #85994b; color: #fff; } #test32 { padding: 15px; border: 4px solid #d53880; } .transfers-index .data { cursor: pointer; } .<API key> .<API key> { border-radius: 0 !important; border: 2px solid #0b0c0c !important; } #finance-bingo.calculator .data { min-height: 100px; } #finance-bingo.calculator .data:nth-child(4) { min-height: 125px; } #Codepad { margin-top: 30px; } input.disabled, input:disabled { opacity: 0.5; } .<API key>, .<API key> { margin-right: -80px; padding-right: 80px; } table.small th, table.small td { font-size: 16px; } sup { font-size: 0.75em; top: -0.5em; }
<?php /** * @file * Definition of Kula\Core\Component\Database\Query\Delete */ namespace Kula\Core\Component\Database\Query; use Kula\Core\Component\Database\Database; use Kula\Core\Component\Database\Connection; /** * General class for an abstracted DELETE operation. * * @ingroup database */ class Delete extends Query implements ConditionInterface { /** * The table from which to delete. * * @var string */ protected $table; /** * The condition object for this query. * * Condition handling is handled via composition. * * @var Condition */ protected $condition; /** * Constructs a Delete object. * * @param \Kula\Core\Component\Database\Connection $connection * A Connection object. * @param string $table * Name of the table to associate with this query. * @param array $options * Array of database options. */ public function __construct(Connection $connection, $table, array $options = array()) { $options['return'] = Database::RETURN_AFFECTED; parent::__construct($connection, $options); $this->table = $table; $this->condition = new Condition('AND'); } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::condition(). */ public function condition($field, $value = NULL, $operator = NULL) { $this->condition->condition($field, $value, $operator); return $this; } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::isNull(). */ public function isNull($field) { $this->condition->isNull($field); return $this; } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::isNotNull(). */ public function isNotNull($field) { $this->condition->isNotNull($field); return $this; } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::exists(). */ public function exists(SelectInterface $select) { $this->condition->exists($select); return $this; } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::notExists(). */ public function notExists(SelectInterface $select) { $this->condition->notExists($select); return $this; } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::conditions(). */ public function &conditions() { return $this->condition->conditions(); } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::arguments(). */ public function arguments() { return $this->condition->arguments(); } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::where(). */ public function where($snippet, $args = array()) { $this->condition->where($snippet, $args); return $this; } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::compile(). */ public function compile(Connection $connection, <API key> $queryPlaceholder) { return $this->condition->compile($connection, $queryPlaceholder); } /** * Implements Kula\Core\Component\Database\Query\ConditionInterface::compiled(). */ public function compiled() { return $this->condition->compiled(); } /** * Executes the DELETE query. * * @return * The return value is dependent on the database connection. */ public function execute() { $values = array(); if (count($this->condition)) { $this->condition->compile($this->connection, $this); $values = $this->condition->arguments(); } return $this->connection->query((string) $this, $values, $this->queryOptions); } /** * Implements PHP magic __toString method to convert the query to a string. * * @return string * The prepared statement. */ public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->connection->makeComment($this->comments); $query = $comments . 'DELETE FROM {' . $this->connection->escapeTable($this->table) . '} '; if (count($this->condition)) { $this->condition->compile($this->connection, $this); $query .= "\nWHERE " . $this->condition; } return $query; } }
<?php return [ 'failed' => 'Ces identifiants ne correspondent pas à nos enregistrements', 'throttle' => 'Tentatives de connexion trop nombreuses. Veuillez essayer de nouveau dans :seconds secondes.', ];
// <API key>.h // SCGPushSDK #import <Foundation/Foundation.h> @interface <API key> : NSObject < <API key> > @property (nonatomic, readonly, assign) BOOL preventRedirect; - (instancetype) <API key>: (BOOL) <API key>; @end
--API to download and install files --The function to run is getAndInstall(itemTable, showUI, overwrite) --Provide an itemTable in the format of -- {{"label1", "Download URL 1", "Path to save to 1"}, {"label2", "Download URL 2", "Path to save to 2"}} --Provide a number for overwrite --1: Will overwrite files --2: Won't overwrite files --3: Will cancel the installation --4: Will ask the user (Default) local sx, sy = term.getSize() local function splitUpToScreen(text) local split = {} while text ~= "" do table.insert(split, text:sub(1, sx - 2)) text = text:sub(sx - 2) end return split end local function resetUi() term.setBackgroundColor(colours.black) term.setTextColor(colours.white) term.setCursorPos(1, 1) term.clear() end local function setupUi() term.setBackgroundColor(colours.white) term.setTextColor(colours.black) term.clear() term.setCursorPos(2, 2) end local function cancelDownload(msg) setupUi() term.setBackgroundColor(colours.red) term.setTextColor(colours.white) term.clearLine() term.write("Download Failed!") term.setBackgroundColor(colours.white) term.setTextColor(colours.black) term.setCursorPos(2, 4) term.write("No files have been modified") if msg then term.setCursorPos(2, 6) end print(msg) term.setCursorPos(2, sy - 1) term.write("Click anywhere to exit") os.pullEvent("mouse_click") resetUi() end local function installSuccess() setupUi() term.setBackgroundColor(colours.lime) term.setTextColor(colours.black) term.clearLine() term.write("Install Succeeded!") term.setBackgroundColor(colours.white) term.setTextColor(colours.black) term.setCursorPos(2, sy - 1) term.write("Click anywhere to exit") os.pullEvent("mouse_click") resetUi() end local function fileExistsAsk(item) setupUi() term.write("The following file aready exists") term.setCursorPos(2, 4) term.setBackgroundColor(colours.lightGrey) term.clearLine() term.write(item[3]) term.setCursorPos(2, 6) term.setBackgroundColor(colours.white) term.write("Downloader is trying to fetch") term.setBackgroundColor(colours.lightGrey) local urlSplit = splitUpToScreen(item[2]) local cy for k, v in pairs(urlSplit) do term.setCursorPos(2, 7 + k) cy = 7 + k term.clearLine() term.write(v) end term.setCursorPos(2, cy + 2) term.setBackgroundColor(colours.white) term.write("Would you like to overwrite that file?") term.setCursorPos(2, cy + 4) term.setBackgroundColor(colours.lightBlue) term.clearLine() term.write("Yes, I don't need the old file") term.setCursorPos(2, cy + 6) term.clearLine() term.write("No! Cancel the installation") term.setCursorPos(2, cy + 8) term.clearLine() term.write("No, but continue installing other files") while true do local e, btn, x, y = os.pullEvent("mouse_click") if y == cy + 4 then --Clicked Yes return 1 elseif y == cy + 6 then --Clicked Cancel return 3 elseif y == cy + 8 then --Clicked Ignore return 2 end end end local function <API key>(itemTable, k, attemptsLeft) setupUi() length = table.getn(itemTable) local barLength = math.ceil(k / length * (sx - 3)) local percentage = math.ceil(k / length * 100) term.write("Now Downloading") term.setCursorPos(2, 4) term.setBackgroundColour(colours.lightGrey) term.clearLine() term.write(itemTable[k][1]) term.setBackgroundColour(colours.white) term.setCursorPos(2, 6) term.write("Downloading item " .. tostring(k) .. " / " .. tostring(length)) term.setCursorPos(2, 8) term.write(tostring(percentage) .. "%") term.setBackgroundColour(colours.lightGrey) term.setCursorPos(2, sy - 2) term.clearLine() term.setCursorPos(2, sy - 1) term.clearLine() term.setCursorPos(2, sy) term.clearLine() term.setCursorPos(2, sy - 1) term.setBackgroundColour(colours.grey) for i = 0, sx - 3 do term.write(" ") end term.setCursorPos(2, sy - 1) if attemptsLeft >= 20 then term.setBackgroundColour(colours.lime) elseif attemptsLeft > 15 then term.setBackgroundColour(colours.yellow) elseif attemptsLeft > 10 then term.setBackgroundColour(colours.orange) elseif attemptsLeft > 5 then term.setBackgroundColour(colours.pink) else term.setBackgroundColour(colours.red) term.setTextColor(colours.white) end for i = 0, barLength do term.write(" ") end if attemptsLeft < 20 then term.setCursorPos(2, 10) term.clearLine() term.write("Error! Attempts remaining: " .. tostring(attemptsLeft)) end end function getAndInstall(itemTable, overwrite) --Download local oldOverwrite local attemptsLeft = 20 for k, v in pairs(itemTable) do oldOverwrite = overwrite if fs.exists(v[3]) then if not overwrite or overwrite == 4 then overwrite = fileExistsAsk(v) end else overwrite = 1 end if overwrite == 1 then --Overwrite file while attemptsLeft > 0 and v[4] == nil do <API key>(itemTable, k, attemptsLeft) v[4] = http.get(v[2]) attemptsLeft = attemptsLeft - 1 end if attemptsLeft == 0 then cancelDownload() return false end elseif overwrite == 3 then --Cancel installation cancelDownload() return false elseif overwrite == 2 then --Ignore file end overwrite = oldOverwrite attemptsLeft = 20 end --Install local filesChanged = 0 for k, v in pairs(itemTable) do if v[4] then file = fs.open(v[3], "w") file.write(v[4].readAll()) file.close() filesChanged = filesChanged + 1 end end if filesChanged > 0 then installSuccess() end return true end
# Bitbot::Trader [![Build Status](https: [![Dependency Status](https: [![Code Climate](https: [![Coverage Status](https: ## Installation Add this line to your application's Gemfile: gem "bitbot-trader", github: "indrekj/bitbot-trader" And then execute: $ bundle ## Usage
//Write a program that enters 5 numbers (given in a single line, separated by a space), calculates and prints their sum. using System; class Program { static void Main() { Console.Write("Please enter five digits separated by a space: "); string[] allDigits = Console.ReadLine().Split(); double result = 0; double diggit; for (int i = 0; i < 5; i++) { diggit = Convert.ToDouble(allDigits[i]); result += diggit; } Console.WriteLine("The sum is:" + result); } }
#pragma once #include <string> namespace pyconv { namespace language { namespace types { namespace variable { using std::string; class VariableType { public: typedef int variable_t; static const variable_t DOUBLE = 0; static const variable_t INT = 1; static const variable_t STRING = 2; static const variable_t UNKNOWN = -1; static string <API key>(variable_t const & variableType) { switch(variableType) { case DOUBLE: return "double"; case INT: return "int"; case STRING: return "string"; case UNKNOWN: default: return "unknown"; } } static variable_t <API key>(string const & variableType) { if (variableType == "double") { return VariableType::DOUBLE; } else if (variableType == "int") { return VariableType::INT; } else if (variableType == "string") { return VariableType::STRING; } return VariableType::UNKNOWN; } private: protected: }; } } } }
let DiceRoller = require('roll-dice'); let diceRoller = new DiceRoller(); let result1 = diceRoller.roll('d20'); let result2 = diceRoller.roll('2d8+2'); let result3 = diceRoller.roll('[ cat | dog | fish ]'); console.dir(result1); console.dir(result2); console.dir(result3);
# Abstract class, defines a generic Billing Policy that always returns 0.0 cost module CloudCostTracker module Billing PRECISION = 10 # (Should match database migration precision) # Defines a directory for holding YML pricing constants CONSTANTS_DIR = File.join(File.dirname(__FILE__),'../../../config/billing') # Some time and size constants SECONDS_PER_MINUTE = 60 SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60 SECONDS_PER_DAY = SECONDS_PER_HOUR * 24 SECONDS_PER_YEAR = SECONDS_PER_DAY * 365 SECONDS_PER_MONTH = SECONDS_PER_YEAR / 12 BYTES_PER_KB = 1024 BYTES_PER_MB = BYTES_PER_KB * 1024 BYTES_PER_GB = BYTES_PER_MB * 1024 # Implements the logic for billing a single resource. # All Billing Policies should inherit from this class, and define # {#<API key>} class <API key> include CloudCostTracker # Don't override this method - use {#setup} instead for # one-time behavior # @param [Hash] options optional parameters: # - :logger - a Ruby Logger-compatible object def initialize(options={}) @log = options[:logger] || FogTracker.default_logger end # An initializer called by the framework once per billling cycle. # Override this method if you need to perform high-latency operations, # like network transactions, that should not be performed per-resource. def setup(resources) ; end # Returns the cost for a particular resource over some duration in seconds. # ALL BILLING POLICY SUBCLASSES SHOULD OVERRIDE THIS METHOD # @param [Fog::Model] resource the resource to be billed # @param [Integer] duration the number of seconds for this billing period. # @return [Float] The amount the resource cost over duration seconds. def <API key>(resource, duration) ; 1.0 end # Returns the default billing type for this policy. # Override this to set a human-readable name for the policy. # Defaults to the last part of the subclass name. # @return [String] a description of the costs incurred under this policy. def billing_type self.class.name.split('::').last #(defaluts to class name) end # Creates or Updates a BillingRecord for this BillingPolicy's resource. # Don't override this -- it's called once for each resource by the # {CloudCostTracker::Billing::<API key>}. # @param [Fog::Model] resource the resource for the record to be written # @param [Float] hourly_rate the resource's hourly rate for this period # @param [Float] total the resource's total cost for this period # @param [Time] start_time the start time for any new BillingRecords # @param [Time] end_time the start time for any new BillingRecords def <API key>(resource, hourly_rate, total, start_time, end_time) account = resource.tracker_account resource_type = resource.class.name.split('::').last return if total == 0.0 # Write no record if the cost is zero new_record = BillingRecord.new( :provider => account[:provider], :service => account[:service], :account => account[:name], :resource_id => resource.identity, :resource_type => resource_type, :billing_type => billing_type, :start_time => start_time, :stop_time => end_time, :cost_per_hour => hourly_rate, :total_cost => total ) new_record.set_codes(resource.billing_codes) # Combine BillingRecords within maximim_gap of one another <API key>(new_record, account[:delay].to_i) end private # Writes 'record' into the database if: # 1. there's no previous record for this resource + billing type; or # 2. the previous such record differs in hourly cost or billing codes; or # 3. the records are separated by more than maximum_time_gap # Otherwise, `record` is merged with the previous record that matches its # resource and billing type def <API key>(new_record, maximum_time_gap) write_new_record = true last_record = BillingRecord.most_recent_like(new_record) # If the previous record for this resource/billing type has the same # hourly rate and billing codes, just update the previous record if last_record && last_record.overlaps_with(new_record, maximum_time_gap) if (last_record.cost_per_hour.round(PRECISION) == new_record.cost_per_hour.round(PRECISION)) && (last_record.billing_codes == new_record.billing_codes) @log.debug "Updating record #{last_record.id} for "+ " #{new_record.resource_type} #{new_record.resource_id}"+ " in account #{new_record.account}" last_record.merge_with new_record write_new_record = false else # If the previous record has different rate or codes... # Make the new record begin where the previous one leaves off new_record.start_time = last_record.stop_time end end if write_new_record @log.debug "Creating new record for for #{new_record.resource_type}"+ " #{new_record.resource_id} in account #{new_record.account}" ActiveRecord::Base.connection_pool.with_connection {new_record.save!} end end end end end
# encoding: utf-8 require 'spec_helper.rb' describe ActiveService::API do subject { ActiveService::API.new } context "initialization" do describe ".setup" do it "creates a default connection" do ActiveService::API.setup :url => "https://api.example.com" expect(ActiveService::API.default_api.base_uri).to eq("https://api.example.com") end end describe "#setup" do context "when using :url option" do before { subject.setup :url => "https://api.example.com" } its(:base_uri) { should == "https://api.example.com" } end context "when using the legacy :base_uri option" do before { subject.setup :base_uri => "https://api.example.com" } its(:base_uri) { should == "https://api.example.com" } end context "when setting custom middleware" do before do class Foo; end; class Bar; end; subject.setup :url => "https://api.example.com" do |connection| connection.use Foo connection.use Bar end end specify { expect(subject.connection.builder.handlers).to eq([Foo, Bar]) } end context "when setting custom options" do before { subject.setup :foo => { :bar => "baz" }, :url => "https://api.example.com" } its(:options) { should == { :foo => { :bar => "baz" }, :url => "https://api.example.com" } } end end describe "#request" do context "making HTTP requests" do let(:response) { subject.request(:_method => :get, :_path => "/foo").body } before do subject.setup :url => "https://api.example.com" do |builder| builder.adapter(:test) { |stub| stub.get("/foo") { |env| [200, {}, "Foo, it is."] } } end end specify { expect(response).to eq("Foo, it is.") } end context "making HTTP requests while specifying custom HTTP headers" do let(:response) { subject.request(:_method => :get, :_path => "/foo", :_headers => { "X-Page" => 2 }).body } before do subject.setup :url => "https://api.example.com" do |builder| builder.adapter(:test) { |stub| stub.get("/foo") { |env| [200, {}, "Foo, it is page #{env[:request_headers]["X-Page"]}."] } } end end specify { expect(response).to eq("Foo, it is page 2.") } end context "making HTTP requests while specifying custom request options" do let(:response) { subject.request(:_method => :get, :_path => "/foo", _timeout: 2).body } before do subject.setup :url => "https://api.example.com" do |builder| builder.adapter(:test) { |stub| stub.get("/foo") { |env| [200, {}, "Foo, it has timeout #{env[:request]["timeout"]}."] } } end end specify { expect(response).to eq("Foo, it has timeout 2.") } end context "parsing a request with the middleware json parser" do let(:response) { subject.request(:_method => :get, :_path => "users/1").body } before do subject.setup :url => "https://api.example.com" do |builder| builder.use ActiveService::Middleware::ParseJSON builder.adapter :test do |stub| stub.get("/users/1") { |env| [200, {}, { id: 1, name: "Foo Bar" }.to_json] } end end end specify do expect(response).to eq({ :id => 1, :name => "Foo Bar" }) end end context "parsing a request with a custom parser" do let(:response) { subject.request(:_method => :get, :_path => "users/1").body } before do class CustomParser < Faraday::Response::Middleware def on_complete(env) json = JSON.parse(env[:body], symbolize_names: true) metadata = json.delete(:metadata) || {} env[:body] = { :data => json, :metadata => metadata, } end end subject.setup :url => "https://api.example.com" do |builder| builder.use CustomParser builder.adapter :test do |stub| stub.get("/users/1") { |env| [200, {}, { id: 1, name: "Foo" }.to_json] } end end end specify do expect(response[:data]).to eq({ id: 1, name: "Foo" }) expect(response[:metadata]).to eq({}) end end end end end
#!/usr/bin/env python3 import asyncio import time from test_framework.util import assert_equal, assert_raises from test_framework.test_framework import <API key> from test_framework.loginit import logging from test_framework.electrumutil import (ElectrumConnection, <API key>, <API key>, <API key>, <API key>) ADDRESS_SUBSCRIBE = 'blockchain.address.subscribe' ADDRESS_UNSUBSCRIBE = 'blockchain.address.unsubscribe' <API key> = 'blockchain.scripthash.subscribe' <API key> = 'blockchain.scripthash.unsubscribe' def address_to_address(a): return a class <API key>(<API key>): def __init__(self): super().__init__() self.setup_clean_chain = True self.num_nodes = 1 self.extra_args = [<API key>()] def run_test(self): n = self.nodes[0] n.generate(200) <API key>(n) async def async_tests(): await self.<API key>(n) await self.<API key>(n) await self.<API key>(n) await self.<API key>(n) await self.<API key>(n) await self.<API key>(n) loop = asyncio.get_event_loop() loop.run_until_complete(async_tests()) async def <API key>(self, n): return await self.test_unsubscribe(n, <API key>, <API key>, <API key>) async def <API key>(self, n): return await self.test_unsubscribe(n, ADDRESS_SUBSCRIBE, ADDRESS_UNSUBSCRIBE, address_to_address) async def test_unsubscribe(self, n, subscribe, unsubscribe, addr_converter): cli = ElectrumConnection() await cli.connect() addr = n.getnewaddress() _, queue = await cli.subscribe(subscribe, addr_converter(addr)) # Verify that we're receiving notifications n.sendtoaddress(addr, 10) subscription_name, _ = await asyncio.wait_for(queue.get(), timeout = 10) assert_equal(addr_converter(addr), subscription_name) ok = await cli.call(unsubscribe, addr_converter(addr)) assert(ok) # Verify that we're no longer receiving notifications n.sendtoaddress(addr, 10) try: await asyncio.wait_for(queue.get(), timeout = 10) assert(False) # Should have timed out. except asyncio.TimeoutError: pass # Unsubscribing from a hash we're not subscribed to should return false ok = await cli.call(unsubscribe, addr_converter(n.getnewaddress())) assert(not ok) async def <API key>(self, n): return await self.test_subscribe(n, <API key>, <API key>, <API key>) async def <API key>(self, n): return await self.test_subscribe(n, ADDRESS_SUBSCRIBE, ADDRESS_UNSUBSCRIBE, address_to_address) async def test_subscribe(self, n, subscribe, unsubscribe, addr_converter): cli = ElectrumConnection() await cli.connect() logging.info("Testing scripthash subscription") addr = n.getnewaddress() statushash, queue = await cli.subscribe(subscribe, addr_converter(addr)) logging.info("Unused address should not have a statushash") assert_equal(None, statushash) logging.info("Check notification on receiving coins") n.sendtoaddress(addr, 10) subscription_name, new_statushash1 = await asyncio.wait_for(queue.get(), timeout = 10) assert_equal(addr_converter(addr), subscription_name) assert(new_statushash1 != None and len(new_statushash1) == 64) logging.info("Check notification on block confirmation") assert(len(n.getrawmempool()) == 1) n.generate(1) assert(len(n.getrawmempool()) == 0) subscription_name, new_statushash2 = await asyncio.wait_for(queue.get(), timeout = 10) assert_equal(addr_converter(addr), subscription_name) assert(new_statushash2 != new_statushash1) assert(new_statushash2 != None) logging.info("Check that we get notification when spending funds from address") n.sendtoaddress(n.getnewaddress(), n.getbalance(), "", "", True) subscription_name, new_statushash3 = await asyncio.wait_for(queue.get(), timeout = 10) assert_equal(addr_converter(addr), subscription_name) assert(new_statushash3 != new_statushash2) assert(new_statushash3 != None) # Clear mempool n.generate(1) async def <API key>(self, n): cli = ElectrumConnection() await cli.connect() headers = [] logging.info("Calling subscribe should return the current best block header") result, queue = await cli.subscribe('blockchain.headers.subscribe') assert_equal( n.getblockheader(n.getbestblockhash(), False), result['hex']) logging.info("Now generate 10 blocks, check that these are pushed to us.") async def test(): for _ in range(10): blockhashes = n.generate(1) header_hex = n.getblockheader(blockhashes.pop(), False) notified = await asyncio.wait_for(queue.get(), timeout = 10) assert_equal(header_hex, notified.pop()['hex']) start = time.time() await test() logging.info("Getting 10 block notifications took {} seconds".format(time.time() - start)) async def <API key>(self, n): num_clients = 50 clients = [ ElectrumConnection() for _ in range(0, num_clients) ] [ await c.connect() for c in clients ] queues = [] addresses = [ n.getnewaddress() for _ in range(0, num_clients) ] # Send coins so the addresses, so they get a statushash [ n.sendtoaddress(addresses[i], 1) for i in range(0, num_clients) ] <API key>(n, count = num_clients) statushashes = [] queues = [] for i in range(0, num_clients): cli = clients[i] addr = addresses[i] scripthash = <API key>(addr) statushash, queue = await cli.subscribe(<API key>, scripthash) # should be unique assert(statushash is not None) assert(statushash not in statushashes) statushashes.append(statushash) queues.append(queue) # Send new coin to all, observe that all clients get a notification [ n.sendtoaddress(addresses[i], 1) for i in range(0, num_clients) ] for i in range(0, num_clients): q = queues[i] old_statushash = statushashes[i] scripthash, new_statushash = await asyncio.wait_for(q.get(), timeout = 10) assert_equal(scripthash, <API key>(addresses[i])) assert(new_statushash != None) assert(new_statushash != old_statushash) if __name__ == '__main__': <API key>().main()
package evanq.game.info; public interface Game { public About about(); public CopyRight copyRight(); }
<!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"> <title>Limitless - Responsive Web Application Kit by Eugene Kopyov</title> <!-- Global stylesheets --> <link href="https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900" rel="stylesheet" type="text/css"> <link href="assets/css/icons/icomoon/styles.css" rel="stylesheet" type="text/css"> <link href="assets/css/bootstrap.css" rel="stylesheet" type="text/css"> <link href="assets/css/core.css" rel="stylesheet" type="text/css"> <link href="assets/css/components.css" rel="stylesheet" type="text/css"> <link href="assets/css/colors.css" rel="stylesheet" type="text/css"> <!-- /global stylesheets --> <!-- Core JS files --> <script type="text/javascript" src="assets/js/plugins/loaders/pace.min.js"></script> <script type="text/javascript" src="assets/js/core/libraries/jquery.min.js"></script> <script type="text/javascript" src="assets/js/core/libraries/bootstrap.min.js"></script> <script type="text/javascript" src="assets/js/plugins/loaders/blockui.min.js"></script> <!-- /core JS files --> <!-- Theme JS files --> <script type="text/javascript" src="assets/js/plugins/ui/moment/moment.min.js"></script> <script type="text/javascript" src="assets/js/plugins/ui/fullcalendar/fullcalendar.min.js"></script> <script type="text/javascript" src="assets/js/plugins/visualization/echarts/echarts.js"></script> <script type="text/javascript" src="assets/js/core/app.js"></script> <script type="text/javascript" src="assets/js/pages/timelines.js"></script> <!-- /theme JS files --> </head> <body> <!-- Main navbar --> <div class="navbar navbar-inverse"> <div class="navbar-header"> <a class="navbar-brand" href="index.html"><img src="assets/images/logo_light.png" alt=""></a> <ul class="nav navbar-nav visible-xs-block"> <li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li> <li><a class="<API key>"><i class="<API key>"></i></a></li> </ul> </div> <div class="navbar-collapse collapse" id="navbar-mobile"> <ul class="nav navbar-nav"> <li><a class="sidebar-control sidebar-main-toggle hidden-xs"><i class="<API key>"></i></a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-git-compare"></i> <span class="<API key> position-right">Git updates</span> <span class="badge bg-warning-400">9</span> </a> <div class="dropdown-menu dropdown-content"> <div class="<API key>"> Git updates <ul class="icons-list"> <li><a href="#"><i class="icon-sync"></i></a></li> </ul> </div> <ul class="media-list <API key> width-350"> <li class="media"> <div class="media-left"> <a href="#" class="btn border-primary text-primary btn-flat btn-rounded btn-icon btn-sm"><i class="<API key>"></i></a> </div> <div class="media-body"> Drop the IE <a href="#">specific hacks</a> for temporal inputs <div class="media-annotation">4 minutes ago</div> </div> </li> <li class="media"> <div class="media-left"> <a href="#" class="btn border-warning text-warning btn-flat btn-rounded btn-icon btn-sm"><i class="icon-git-commit"></i></a> </div> <div class="media-body"> Add full font overrides for popovers and tooltips <div class="media-annotation">36 minutes ago</div> </div> </li> <li class="media"> <div class="media-left"> <a href="#" class="btn border-info text-info btn-flat btn-rounded btn-icon btn-sm"><i class="icon-git-branch"></i></a> </div> <div class="media-body"> <a href="#">Chris Arney</a> created a new <span class="text-semibold">Design</span> branch <div class="media-annotation">2 hours ago</div> </div> </li> <li class="media"> <div class="media-left"> <a href="#" class="btn border-success text-success btn-flat btn-rounded btn-icon btn-sm"><i class="icon-git-merge"></i></a> </div> <div class="media-body"> <a href="#">Eugene Kopyov</a> merged <span class="text-semibold">Master</span> and <span class="text-semibold">Dev</span> branches <div class="media-annotation">Dec 18, 18:36</div> </div> </li> <li class="media"> <div class="media-left"> <a href="#" class="btn border-primary text-primary btn-flat btn-rounded btn-icon btn-sm"><i class="<API key>"></i></a> </div> <div class="media-body"> Have Carousel ignore keyboard events <div class="media-annotation">Dec 12, 05:46</div> </div> </li> </ul> <div class="<API key>"> <a href="#" data-popup="tooltip" title="All activity"><i class="icon-menu display-block"></i></a> </div> </div> </li> </ul> <p class="navbar-text"> <span class="label bg-success">Online</span> </p> <div class="navbar-right"> <ul class="nav navbar-nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-people"></i> <span class="<API key> position-right">Users</span> </a> <div class="dropdown-menu dropdown-content"> <div class="<API key>"> Users online <ul class="icons-list"> <li><a href="#"><i class="icon-gear"></i></a></li> </ul> </div> <ul class="media-list <API key> width-300"> <li class="media"> <div class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></div> <div class="media-body"> <a href="#" class="media-heading text-semibold">Jordana Ansley</a> <span class="display-block text-muted text-size-small">Lead web developer</span> </div> <div class="media-right media-middle"><span class="status-mark border-success"></span></div> </li> <li class="media"> <div class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></div> <div class="media-body"> <a href="#" class="media-heading text-semibold">Will Brason</a> <span class="display-block text-muted text-size-small">Marketing manager</span> </div> <div class="media-right media-middle"><span class="status-mark border-danger"></span></div> </li> <li class="media"> <div class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></div> <div class="media-body"> <a href="#" class="media-heading text-semibold">Hanna Walden</a> <span class="display-block text-muted text-size-small">Project manager</span> </div> <div class="media-right media-middle"><span class="status-mark border-success"></span></div> </li> <li class="media"> <div class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></div> <div class="media-body"> <a href="#" class="media-heading text-semibold">Dori Laperriere</a> <span class="display-block text-muted text-size-small">Business developer</span> </div> <div class="media-right media-middle"><span class="status-mark border-warning-300"></span></div> </li> <li class="media"> <div class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></div> <div class="media-body"> <a href="#" class="media-heading text-semibold">Vanessa Aurelius</a> <span class="display-block text-muted text-size-small">UX expert</span> </div> <div class="media-right media-middle"><span class="status-mark border-grey-400"></span></div> </li> </ul> <div class="<API key>"> <a href="#" data-popup="tooltip" title="All users"><i class="icon-menu display-block"></i></a> </div> </div> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-bubbles4"></i> <span class="<API key> position-right">Messages</span> <span class="badge bg-warning-400">2</span> </a> <div class="dropdown-menu dropdown-content width-350"> <div class="<API key>"> Messages <ul class="icons-list"> <li><a href="#"><i class="icon-compose"></i></a></li> </ul> </div> <ul class="media-list <API key>"> <li class="media"> <div class="media-left"> <img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""> <span class="badge bg-danger-400 media-badge">5</span> </div> <div class="media-body"> <a href="#" class="media-heading"> <span class="text-semibold">James Alexander</span> <span class="media-annotation pull-right">04:58</span> </a> <span class="text-muted">who knows, maybe that would be the best thing for me...</span> </div> </li> <li class="media"> <div class="media-left"> <img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""> <span class="badge bg-danger-400 media-badge">4</span> </div> <div class="media-body"> <a href="#" class="media-heading"> <span class="text-semibold">Margo Baker</span> <span class="media-annotation pull-right">12:16</span> </a> <span class="text-muted">That was something he was unable to do because...</span> </div> </li> <li class="media"> <div class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></div> <div class="media-body"> <a href="#" class="media-heading"> <span class="text-semibold">Jeremy Victorino</span> <span class="media-annotation pull-right">22:48</span> </a> <span class="text-muted">But that would be extremely strained and suspicious...</span> </div> </li> <li class="media"> <div class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></div> <div class="media-body"> <a href="#" class="media-heading"> <span class="text-semibold">Beatrix Diaz</span> <span class="media-annotation pull-right">Tue</span> </a> <span class="text-muted">What a strenuous career it is that I've chosen...</span> </div> </li> <li class="media"> <div class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></div> <div class="media-body"> <a href="#" class="media-heading"> <span class="text-semibold">Richard Vango</span> <span class="media-annotation pull-right">Mon</span> </a> <span class="text-muted">Other travelling salesmen live a life of luxury...</span> </div> </li> </ul> <div class="<API key>"> <a href="#" data-popup="tooltip" title="All messages"><i class="icon-menu display-block"></i></a> </div> </div> </li> <li class="dropdown dropdown-user"> <a class="dropdown-toggle" data-toggle="dropdown"> <img src="assets/images/placeholder.jpg" alt=""> <span>Victoria</span> <i class="caret"></i> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-user-plus"></i> My profile</a></li> <li><a href="#"><i class="icon-coins"></i> My balance</a></li> <li><a href="#"><span class="badge bg-blue pull-right">58</span> <i class="<API key>"></i> Messages</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-cog5"></i> Account settings</a></li> <li><a href="#"><i class="icon-switch2"></i> Logout</a></li> </ul> </li> </ul> </div> </div> </div> <!-- /main navbar --> <!-- Page container --> <div class="page-container"> <!-- Page content --> <div class="page-content"> <!-- Main sidebar --> <div class="sidebar sidebar-main"> <div class="sidebar-content"> <!-- User menu --> <div class="sidebar-user"> <div class="category-content"> <div class="media"> <a href="#" class="media-left"><img src="assets/images/placeholder.jpg" class="img-circle img-sm" alt=""></a> <div class="media-body"> <span class="media-heading text-semibold">Victoria Baker</span> <div class="text-size-mini text-muted"> <i class="icon-pin text-size-small"></i> &nbsp;Santa Ana, CA </div> </div> <div class="media-right media-middle"> <ul class="icons-list"> <li> <a href="#"><i class="icon-cog3"></i></a> </li> </ul> </div> </div> </div> </div> <!-- /user menu --> <!-- Main navigation --> <div class="sidebar-category <API key>"> <div class="category-content no-padding"> <ul class="navigation navigation-main <API key>"> <!-- Main --> <li class="navigation-header"><span>Main</span> <i class="icon-menu" title="Main pages"></i></li> <li><a href="index.html"><i class="icon-home4"></i> <span>Dashboard</span></a></li> <li> <a href="#"><i class="icon-stack2"></i> <span>Page layouts</span></a> <ul> <li><a href="layout_navbar_fixed.html">Fixed navbar</a></li> <li><a href="<API key>.html">Fixed navbar &amp; sidebar</a></li> <li><a href="<API key>.html">Fixed sidebar native scroll</a></li> <li><a href="<API key>.html">Hideable navbar</a></li> <li><a href="<API key>.html">Hideable &amp; fixed sidebar</a></li> <li><a href="layout_footer_fixed.html">Fixed footer</a></li> <li class="navigation-divider"></li> <li><a href="boxed_default.html">Boxed with default sidebar</a></li> <li><a href="boxed_mini.html">Boxed with mini sidebar</a></li> <li><a href="boxed_full.html">Boxed full width</a></li> </ul> </li> <li> <a href="#"><i class="icon-copy"></i> <span>Layouts</span></a> <ul> <li><a href="../../../layout_1/LTR/index.html" id="layout1">Layout 1</a></li> <li><a href="index.html" id="layout2">Layout 2 <span class="label bg-warning-400">Current</span></a></li> <li><a href="../../../layout_3/LTR/index.html" id="layout3">Layout 3</a></li> <li><a href="../../../layout_4/LTR/index.html" id="layout4">Layout 4</a></li> <li><a href="../../../layout_5/LTR/index.html" id="layout5">Layout 5</a></li> <li class="disabled"><a href="../../../layout_6/LTR/index.html" id="layout6">Layout 6 <span class="label label-transparent">Coming soon</span></a></li> </ul> </li> <li> <a href="#"><i class="icon-droplet2"></i> <span>Color system</span></a> <ul> <li><a href="colors_primary.html">Primary palette</a></li> <li><a href="colors_danger.html">Danger palette</a></li> <li><a href="colors_success.html">Success palette</a></li> <li><a href="colors_warning.html">Warning palette</a></li> <li><a href="colors_info.html">Info palette</a></li> <li class="navigation-divider"></li> <li><a href="colors_pink.html">Pink palette</a></li> <li><a href="colors_violet.html">Violet palette</a></li> <li><a href="colors_purple.html">Purple palette</a></li> <li><a href="colors_indigo.html">Indigo palette</a></li> <li><a href="colors_blue.html">Blue palette</a></li> <li><a href="colors_teal.html">Teal palette</a></li> <li><a href="colors_green.html">Green palette</a></li> <li><a href="colors_orange.html">Orange palette</a></li> <li><a href="colors_brown.html">Brown palette</a></li> <li><a href="colors_grey.html">Grey palette</a></li> <li><a href="colors_slate.html">Slate palette</a></li> </ul> </li> <li> <a href="#"><i class="icon-stack"></i> <span>Starter kit</span></a> <ul> <li><a href="starters/horizontal_nav.html">Horizontal navigation</a></li> <li><a href="starters/1_col.html">1 column</a></li> <li><a href="starters/2_col.html">2 columns</a></li> <li> <a href="#">3 columns</a> <ul> <li><a href="starters/3_col_dual.html">Dual sidebars</a></li> <li><a href="starters/3_col_double.html">Double sidebars</a></li> </ul> </li> <li><a href="starters/4_col.html">4 columns</a></li> <li> <a href="#">Detached layout</a> <ul> <li><a href="starters/detached_left.html">Left sidebar</a></li> <li><a href="starters/detached_right.html">Right sidebar</a></li> <li><a href="starters/detached_sticky.html">Sticky sidebar</a></li> </ul> </li> <li><a href="starters/layout_boxed.html">Boxed layout</a></li> <li class="navigation-divider"></li> <li><a href="starters/<API key>.html">Fixed main navbar</a></li> <li><a href="starters/<API key>.html">Fixed secondary navbar</a></li> <li><a href="starters/<API key>.html">Both navbars fixed</a></li> <li><a href="starters/layout_fixed.html">Fixed layout</a></li> </ul> </li> <li><a href="changelog.html"><i class="icon-list-unordered"></i> <span>Changelog <span class="label bg-blue-400">1.4</span></span></a></li> <li><a href="../../RTL/index.html"><i class="icon-width"></i> <span>RTL version</span></a></li> <!-- /main --> <!-- Forms --> <li class="navigation-header"><span>Forms</span> <i class="icon-menu" title="Forms"></i></li> <li> <a href="#"><i class="icon-pencil3"></i> <span>Form components</span></a> <ul> <li><a href="form_inputs_basic.html">Basic inputs</a></li> <li><a href="<API key>.html">Checkboxes &amp; radios</a></li> <li><a href="form_input_groups.html">Input groups</a></li> <li><a href="<API key>.html">Extended controls</a></li> <li><a href="<API key>.html">Floating labels</a></li> <li> <a href="#">Selects</a> <ul> <li><a href="form_select2.html">Select2 selects</a></li> <li><a href="form_multiselect.html">Bootstrap multiselect</a></li> <li><a href="form_select_box_it.html">SelectBoxIt selects</a></li> <li><a href="<API key>.html">Bootstrap selects</a></li> </ul> </li> <li><a href="form_tag_inputs.html">Tag inputs</a></li> <li><a href="form_dual_listboxes.html">Dual Listboxes</a></li> <li><a href="form_editable.html">Editable forms</a></li> <li><a href="form_validation.html">Validation</a></li> <li><a href="form_inputs_grid.html">Inputs grid</a></li> </ul> </li> <li> <a href="#"><i class="icon-file-css"></i> <span>JSON forms</span></a> <ul> <li><a href="alpaca_basic.html">Basic inputs</a></li> <li><a href="alpaca_advanced.html">Advanced inputs</a></li> <li><a href="alpaca_controls.html">Controls</a></li> </ul> </li> <li> <a href="#"><i class="icon-footprint"></i> <span>Wizards</span></a> <ul> <li><a href="wizard_steps.html">Steps wizard</a></li> <li><a href="wizard_form.html">Form wizard</a></li> <li><a href="wizard_stepy.html">Stepy wizard</a></li> </ul> </li> <li> <a href="#"><i class="icon-spell-check"></i> <span>Editors</span></a> <ul> <li><a href="editor_summernote.html">Summernote editor</a></li> <li><a href="editor_ckeditor.html">CKEditor</a></li> <li><a href="editor_wysihtml5.html">WYSIHTML5 editor</a></li> <li><a href="editor_code.html">Code editor</a></li> </ul> </li> <li> <a href="#"><i class="icon-select2"></i> <span>Pickers</span></a> <ul> <li><a href="picker_date.html">Date &amp; time pickers</a></li> <li><a href="picker_color.html">Color pickers</a></li> <li><a href="picker_location.html">Location pickers</a></li> </ul> </li> <li> <a href="#"><i class="<API key>"></i> <span>Form layouts</span></a> <ul> <li><a href="<API key>.html">Vertical form</a></li> <li><a href="<API key>.html">Horizontal form</a></li> </ul> </li> <!-- /forms --> <!-- Appearance --> <li class="navigation-header"><span>Appearance</span> <i class="icon-menu" title="Appearance"></i></li> <li> <a href="#"><i class="icon-grid"></i> <span>Components</span></a> <ul> <li><a href="components_modals.html">Modals</a></li> <li><a href="<API key>.html">Dropdown menus</a></li> <li><a href="components_tabs.html">Tabs component</a></li> <li><a href="components_pills.html">Pills component</a></li> <li><a href="components_navs.html">Accordion and navs</a></li> <li><a href="components_buttons.html">Buttons</a></li> <li><a href="<API key>.html">PNotify notifications</a></li> <li><a href="<API key>.html">Other notifications</a></li> <li><a href="components_popups.html">Tooltips and popovers</a></li> <li><a href="components_alerts.html">Alerts</a></li> <li><a href="<API key>.html">Pagination</a></li> <li><a href="components_labels.html">Labels and badges</a></li> <li><a href="components_loaders.html">Loaders and bars</a></li> <li><a href="<API key>.html">Thumbnails</a></li> <li><a href="<API key>.html">Page header</a></li> <li><a href="<API key>.html">Breadcrumbs</a></li> <li><a href="components_media.html">Media objects</a></li> <li><a href="components_affix.html">Affix and Scrollspy</a></li> </ul> </li> <li> <a href="#"><i class="icon-puzzle2"></i> <span>Content appearance</span></a> <ul> <li><a href="<API key>.html">Content panels</a></li> <li><a href="<API key>.html">Panel heading elements</a></li> <li><a href="<API key>.html">Panel footer elements</a></li> <li><a href="<API key>.html">Draggable panels</a></li> <li><a href="<API key>.html">Text styling</a></li> <li><a href="<API key>.html">Typography</a></li> <li><a href="appearance_helpers.html">Helper classes</a></li> <li><a href="<API key>.html">Syntax highlighter</a></li> <li><a href="<API key>.html">Grid system</a></li> </ul> </li> <li> <a href="#"><i class="icon-gift"></i> <span>Extra components</span></a> <ul> <li><a href="extra_sliders_noui.html">NoUI sliders</a></li> <li><a href="extra_sliders_ion.html">Ion range sliders</a></li> <li><a href="<API key>.html">Session timeout</a></li> <li><a href="extra_idle_timeout.html">Idle timeout</a></li> <li><a href="extra_trees.html">Dynamic tree views</a></li> <li><a href="extra_context_menu.html">Context menu</a></li> <li><a href="extra_fab.html">Floating action buttons</a></li> </ul> </li> <li> <a href="#"><i class="icon-spinner2 spinner"></i> <span>Animations</span></a> <ul> <li><a href="animations_css3.html">CSS3 animations</a></li> <li> <a href="#">Velocity animations</a> <ul> <li><a href="<API key>.html">Basic usage</a></li> <li><a href="<API key>.html">UI pack effects</a></li> <li><a href="<API key>.html">Advanced examples</a></li> </ul> </li> </ul> </li> <li> <a href="#"><i class="icon-thumbs-up2"></i> <span>Icons</span></a> <ul> <li><a href="icons_glyphicons.html">Glyphicons</a></li> <li><a href="icons_icomoon.html">Icomoon</a></li> <li><a href="icons_fontawesome.html">Font awesome</a></li> </ul> </li> <!-- /appearance --> <!-- Layout --> <li class="navigation-header"><span>Layout</span> <i class="icon-menu" title="Layout options"></i></li> <li> <a href="#"><i class="<API key>"></i> <span>Sidebars</span></a> <ul> <li><a href="<API key>.html">Default collapsible</a></li> <li><a href="<API key>.html">Default hideable</a></li> <li><a href="<API key>.html">Mini collapsible</a></li> <li><a href="sidebar_mini_hide.html">Mini hideable</a></li> <li> <a href="#">Dual sidebar</a> <ul> <li><a href="sidebar_dual.html">Dual sidebar</a></li> <li><a href="<API key>.html">Dual double collapse</a></li> <li><a href="<API key>.html">Dual double hide</a></li> <li><a href="sidebar_dual_swap.html">Swap sidebars</a></li> </ul> </li> <li> <a href="#">Double sidebar</a> <ul> <li><a href="<API key>.html">Collapse main sidebar</a></li> <li><a href="sidebar_double_hide.html">Hide main sidebar</a></li> <li><a href="<API key>.html">Fix default width</a></li> <li><a href="<API key>.html">Fix mini width</a></li> <li><a href="<API key>.html">Opposite sidebar visible</a></li> </ul> </li> <li> <a href="#">Detached sidebar</a> <ul> <li><a href="<API key>.html">Left position</a></li> <li><a href="<API key>.html">Right position</a></li> <li><a href="<API key>.html">Sticky (custom scroll)</a></li> <li><a href="<API key>.html">Sticky (native scroll)</a></li> <li><a href="<API key>.html">Separate categories</a></li> </ul> </li> <li><a href="sidebar_hidden.html">Hidden sidebar</a></li> <li><a href="sidebar_light.html">Light sidebar</a></li> <li><a href="sidebar_components.html">Sidebar components</a></li> </ul> </li> <li> <a href="#"><i class="icon-sort"></i> <span>Vertical navigation</span></a> <ul> <li><a href="<API key>.html">Collapsible menu</a></li> <li><a href="<API key>.html">Accordion menu</a></li> <li><a href="<API key>.html">Navigation sizing</a></li> <li><a href="<API key>.html">Bordered navigation</a></li> <li><a href="<API key>.html">Right icons</a></li> <li><a href="<API key>.html">Labels and badges</a></li> <li><a href="<API key>.html">Disabled navigation links</a></li> </ul> </li> <li> <a href="#"><i class="icon-transmission"></i> <span>Horizontal navigation</span></a> <ul> <li><a href="<API key>.html">Submenu on click</a></li> <li><a href="<API key>.html">Submenu on hover</a></li> <li><a href="<API key>.html">With custom elements</a></li> <li><a href="<API key>.html">Tabbed navigation</a></li> <li><a href="<API key>.html">Disabled navigation links</a></li> <li><a href="<API key>.html">Horizontal mega menu</a></li> </ul> </li> <li> <a href="#"><i class="icon-menu3"></i> <span>Navbars</span></a> <ul> <li><a href="navbar_single.html">Single navbar</a></li> <li> <a href="#">Multiple navbars</a> <ul> <li><a href="<API key>.html">Navbar + navbar</a></li> <li><a href="<API key>.html">Navbar + header</a></li> <li><a href="<API key>.html">Header + navbar</a></li> <li><a href="<API key>.html">Top + bottom</a></li> </ul> </li> <li><a href="navbar_colors.html">Color options</a></li> <li><a href="navbar_sizes.html">Sizing options</a></li> <li><a href="navbar_hideable.html">Hide on scroll</a></li> <li><a href="navbar_components.html">Navbar components</a></li> </ul> </li> <li> <a href="#"><i class="icon-tree5"></i> <span>Menu levels</span></a> <ul> <li><a href="#"><i class="icon-IE"></i> Second level</a></li> <li> <a href="#"><i class="icon-firefox"></i> Second level with child</a> <ul> <li><a href="#"><i class="icon-android"></i> Third level</a></li> <li> <a href="#"><i class="icon-apple2"></i> Third level with child</a> <ul> <li><a href="#"><i class="icon-html5"></i> Fourth level</a></li> <li><a href="#"><i class="icon-css3"></i> Fourth level</a></li> </ul> </li> <li><a href="#"><i class="icon-windows"></i> Third level</a></li> </ul> </li> <li><a href="#"><i class="icon-chrome"></i> Second level</a></li> </ul> </li> <!-- /layout --> <!-- Data visualization --> <li class="navigation-header"><span>Data visualization</span> <i class="icon-menu" title="Data visualization"></i></li> <li> <a href="#"><i class="icon-graph"></i> <span>Echarts library</span></a> <ul> <li><a href="echarts_lines_areas.html">Lines and areas</a></li> <li><a href="<API key>.html">Columns and waterfalls</a></li> <li><a href="<API key>.html">Bars and tornados</a></li> <li><a href="echarts_scatter.html">Scatter charts</a></li> <li><a href="echarts_pies_donuts.html">Pies and donuts</a></li> <li><a href="<API key>.html">Funnels and chords</a></li> <li><a href="<API key>.html">Candlesticks and others</a></li> <li><a href="<API key>.html">Chart combinations</a></li> </ul> </li> <li> <a href="#"><i class="icon-statistics"></i> <span>D3 library</span></a> <ul> <li><a href="d3_lines_basic.html">Simple lines</a></li> <li><a href="d3_lines_advanced.html">Advanced lines</a></li> <li><a href="d3_bars_basic.html">Simple bars</a></li> <li><a href="d3_bars_advanced.html">Advanced bars</a></li> <li><a href="d3_pies.html">Pie charts</a></li> <li><a href="d3_circle_diagrams.html">Circle diagrams</a></li> <li><a href="d3_tree.html">Tree layout</a></li> <li><a href="d3_other.html">Other charts</a></li> </ul> </li> <li> <a href="#"><i class="icon-stats-dots"></i> <span>Dimple library</span></a> <ul> <li> <a href="#">Line charts</a> <ul> <li><a href="<API key>.html">Horizontal orientation</a></li> <li><a href="<API key>.html">Vertical orientation</a></li> </ul> </li> <li> <a href="#">Bar charts</a> <ul> <li><a href="<API key>.html">Horizontal orientation</a></li> <li><a href="<API key>.html">Vertical orientation</a></li> </ul> </li> <li> <a href="#">Area charts</a> <ul> <li><a href="<API key>.html">Horizontal orientation</a></li> <li><a href="<API key>.html">Vertical orientation</a></li> </ul> </li> <li> <a href="#">Step charts</a> <ul> <li><a href="<API key>.html">Horizontal orientation</a></li> <li><a href="<API key>.html">Vertical orientation</a></li> </ul> </li> <li><a href="dimple_pies.html">Pie charts</a></li> <li><a href="dimple_rings.html">Ring charts</a></li> <li><a href="dimple_scatter.html">Scatter charts</a></li> <li><a href="dimple_bubble.html">Bubble charts</a></li> </ul> </li> <li> <a href="#"><i class="icon-stats-bars"></i> <span>C3 library</span></a> <ul> <li><a href="c3_lines_areas.html">Lines and areas</a></li> <li><a href="c3_bars_pies.html">Bars and pies</a></li> <li><a href="c3_advanced.html">Advanced examples</a></li> <li><a href="c3_axis.html">Chart axis</a></li> <li><a href="c3_grid.html">Grid options</a></li> </ul> </li> <li> <a href="#"><i class="icon-google"></i> <span>Google visualization</span></a> <ul> <li><a href="google_lines.html">Line charts</a></li> <li><a href="google_bars.html">Bar charts</a></li> <li><a href="google_pies.html">Pie charts</a></li> <li><a href="<API key>.html">Bubble &amp; scatter charts</a></li> <li><a href="google_other.html">Other charts</a></li> </ul> </li> <li> <a href="#"><i class="icon-map5"></i> <span>Maps integration</span></a> <ul> <li> <a href="#">Google maps</a> <ul> <li><a href="maps_google_basic.html">Basics</a></li> <li><a href="<API key>.html">Controls</a></li> <li><a href="maps_google_markers.html">Markers</a></li> <li><a href="<API key>.html">Map drawings</a></li> <li><a href="maps_google_layers.html">Layers</a></li> </ul> </li> <li><a href="maps_vector.html">Vector maps</a></li> </ul> </li> <!-- /data visualization --> <!-- Extensions --> <li class="navigation-header"><span>Extensions</span> <i class="icon-menu" title="Extensions"></i></li> <li> <a href="#"><i class="icon-puzzle4"></i> <span>Extensions</span></a> <ul> <li><a href="<API key>.html">Image cropper</a></li> <li><a href="extension_blockui.html">Block UI</a></li> <li><a href="extension_dnd.html">Drag and drop</a></li> </ul> </li> <li> <a href="#"><i class="icon-popout"></i> <span>JQuery UI</span></a> <ul> <li><a href="<API key>.html">Interactions</a></li> <li><a href="jqueryui_forms.html">Forms</a></li> <li><a href="jqueryui_components.html">Components</a></li> <li><a href="jqueryui_sliders.html">Sliders</a></li> <li><a href="jqueryui_navigation.html">Navigation</a></li> </ul> </li> <li> <a href="#"><i class="icon-upload"></i> <span>File uploaders</span></a> <ul> <li><a href="uploader_plupload.html">Plupload</a></li> <li><a href="uploader_bootstrap.html">Bootstrap file uploader</a></li> <li><a href="uploader_dropzone.html">Dropzone</a></li> </ul> </li> <li> <a href="#"><i class="icon-calendar3"></i> <span>Event calendars</span></a> <ul> <li><a href="<API key>.html">Basic views</a></li> <li><a href="<API key>.html">Event styling</a></li> <li><a href="<API key>.html">Language and time</a></li> <li><a href="<API key>.html">Advanced usage</a></li> </ul> </li> <li> <a href="#"><i class="icon-sphere"></i> <span><API key></span></a> <ul> <li><a href="<API key>.html">Direct translation</a></li> <li><a href="<API key>.html">Querystring parameter</a></li> <li><a href="<API key>.html">Set language on init</a></li> <li><a href="<API key>.html">Set language after init</a></li> <li><a href="<API key>.html">Language fallback</a></li> <li><a href="<API key>.html">Callbacks</a></li> </ul> </li> <!-- /extensions --> <!-- Tables --> <li class="navigation-header"><span>Tables</span> <i class="icon-menu" title="Tables"></i></li> <li> <a href="#"><i class="icon-table2"></i> <span>Basic tables</span></a> <ul> <li><a href="table_basic.html">Basic examples</a></li> <li><a href="table_sizing.html">Table sizing</a></li> <li><a href="table_borders.html">Table borders</a></li> <li><a href="table_styling.html">Table styling</a></li> <li><a href="table_elements.html">Table elements</a></li> </ul> </li> <li> <a href="#"><i class="icon-grid7"></i> <span>Data tables</span></a> <ul> <li><a href="datatable_basic.html">Basic initialization</a></li> <li><a href="datatable_styling.html">Basic styling</a></li> <li><a href="datatable_advanced.html">Advanced examples</a></li> <li><a href="datatable_sorting.html">Sorting options</a></li> <li><a href="datatable_api.html">Using API</a></li> <li><a href="<API key>.html">Data sources</a></li> </ul> </li> <li> <a href="#"><i class="<API key>"></i> <span>Data tables extensions</span></a> <ul> <li><a href="<API key>.html">Columns reorder</a></li> <li><a href="<API key>.html">Row reorder</a></li> <li><a href="<API key>.html">Fixed columns</a></li> <li><a href="<API key>.html">Fixed header</a></li> <li><a href="<API key>.html">Auto fill</a></li> <li><a href="<API key>.html">Key table</a></li> <li><a href="<API key>.html">Scroller</a></li> <li><a href="<API key>.html">Select</a></li> <li> <a href="#">Buttons</a> <ul> <li><a href="<API key>.html">Initialization</a></li> <li><a href="<API key>.html">Flash buttons</a></li> <li><a href="<API key>.html">Print buttons</a></li> <li><a href="<API key>.html">HTML5 buttons</a></li> </ul> </li> <li><a href="<API key>.html">Columns visibility</a></li> </ul> </li> <li> <a href="#"><i class="<API key>"></i> <span>Handsontable</span></a> <ul> <li><a href="handsontable_basic.html">Basic configuration</a></li> <li><a href="<API key>.html">Advanced setup</a></li> <li><a href="handsontable_cols.html">Column features</a></li> <li><a href="handsontable_cells.html">Cell features</a></li> <li><a href="handsontable_types.html">Basic cell types</a></li> <li><a href="<API key>.html">Custom &amp; checkboxes</a></li> <li><a href="<API key>.html">Autocomplete &amp; password</a></li> <li><a href="handsontable_search.html">Search</a></li> <li><a href="<API key>.html">Context menu</a></li> </ul> </li> <li> <a href="#"><i class="icon-versions"></i> <span>Responsive options</span></a> <ul> <li><a href="table_responsive.html">Responsive basic tables</a></li> <li><a href="<API key>.html">Responsive data tables</a></li> </ul> </li> <!-- /tables --> <!-- Page kits --> <li class="navigation-header"><span>Page kits</span> <i class="icon-menu" title="Page kits"></i></li> <li> <a href="#"><i class="icon-task"></i> <span>Task manager</span></a> <ul> <li><a href="task_manager_grid.html">Task grid</a></li> <li><a href="task_manager_list.html">Task list</a></li> <li><a href="<API key>.html">Task detailed</a></li> </ul> </li> <li> <a href="#"><i class="icon-cash3"></i> <span>Invoicing</span></a> <ul> <li><a href="invoice_template.html">Invoice template</a></li> <li><a href="invoice_grid.html">Invoice grid</a></li> <li><a href="invoice_archive.html">Invoice archive</a></li> </ul> </li> <li> <a href="#"><i class="icon-people"></i> <span>User pages</span></a> <ul> <li><a href="user_pages_cards.html">User cards</a></li> <li><a href="user_pages_list.html">User list</a></li> <li><a href="user_pages_profile.html">Simple profile</a></li> <li><a href="<API key>.html">Profile with cover</a></li> </ul> </li> <li> <a href="#"><i class="icon-user-plus"></i> <span>Login &amp; registration</span></a> <ul> <li><a href="login_simple.html">Simple login</a></li> <li><a href="login_advanced.html">More login info</a></li> <li><a href="login_registration.html">Simple registration</a></li> <li><a href="<API key>.html">More registration info</a></li> <li><a href="login_unlock.html">Unlock user</a></li> <li><a href="<API key>.html">Reset password</a></li> <li><a href="login_hide_navbar.html">Hide navbar</a></li> <li><a href="login_transparent.html">Transparent box</a></li> <li><a href="login_background.html">Background option</a></li> <li><a href="login_validation.html">With validation</a></li> <li><a href="login_tabbed.html">Tabbed form</a></li> <li><a href="login_modals.html">Inside modals</a></li> </ul> </li> <li> <a href="#"><i class="icon-magazine"></i> <span>Timelines</span></a> <ul> <li class="active"><a href="timelines_left.html">Left timeline</a></li> <li><a href="timelines_right.html">Right timeline</a></li> <li><a href="timelines_center.html">Centered timeline</a></li> </ul> </li> <li> <a href="#"><i class="icon-lifebuoy"></i> <span>Support</span></a> <ul> <li><a href="<API key>.html">Conversation layouts</a></li> <li><a href="<API key>.html">Conversation options</a></li> <li><a href="<API key>.html">Knowledgebase</a></li> <li><a href="support_faq.html">FAQ page</a></li> </ul> </li> <li> <a href="#"><i class="icon-search4"></i> <span>Search</span></a> <ul> <li><a href="search_basic.html">Basic search results</a></li> <li><a href="search_users.html">User search results</a></li> <li><a href="search_images.html">Image search results</a></li> <li><a href="search_videos.html">Video search results</a></li> </ul> </li> <li> <a href="#"><i class="icon-images2"></i> <span>Gallery</span></a> <ul> <li><a href="gallery_grid.html">Media grid</a></li> <li><a href="gallery_titles.html">Media with titles</a></li> <li><a href="gallery_description.html">Media with description</a></li> <li><a href="gallery_library.html">Media library</a></li> </ul> </li> <li> <a href="#"><i class="icon-warning"></i> <span>Error pages</span></a> <ul> <li><a href="error_403.html">Error 403</a></li> <li><a href="error_404.html">Error 404</a></li> <li><a href="error_405.html">Error 405</a></li> <li><a href="error_500.html">Error 500</a></li> <li><a href="error_503.html">Error 503</a></li> <li><a href="error_offline.html">Offline page</a></li> </ul> </li> <!-- /page kits --> </ul> </div> </div> <!-- /main navigation --> </div> </div> <!-- /main sidebar --> <!-- Main content --> <div class="content-wrapper"> <!-- Page header --> <div class="page-header page-header-default"> <div class="page-header-content"> <div class="page-title"> <h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold">Timelines</span> - Left Position</h4> </div> <div class="heading-elements"> <div class="heading-btn-group"> <a href="#" class="btn btn-link btn-float has-text"><i class="icon-bars-alt text-primary"></i><span>Statistics</span></a> <a href="#" class="btn btn-link btn-float has-text"><i class="icon-calculator text-primary"></i> <span>Invoices</span></a> <a href="#" class="btn btn-link btn-float has-text"><i class="icon-calendar5 text-primary"></i> <span>Schedule</span></a> </div> </div> </div> <div class="breadcrumb-line"> <ul class="breadcrumb"> <li><a href="index.html"><i class="icon-home2 position-left"></i> Home</a></li> <li><a href="timelines_left.html">Timelines</a></li> <li class="active">Left position</li> </ul> <ul class="breadcrumb-elements"> <li><a href="#"><i class="<API key> position-left"></i> Support</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-gear position-left"></i> Settings <span class="caret"></span> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-user-lock"></i> Account security</a></li> <li><a href="#"><i class="icon-statistics"></i> Analytics</a></li> <li><a href="#"><i class="icon-accessibility"></i> Accessibility</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-gear"></i> All settings</a></li> </ul> </li> </ul> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content"> <!-- Timeline --> <div class="timeline timeline-left"> <div class="timeline-container"> <!-- Sales stats --> <div class="timeline-row"> <div class="timeline-icon"> <a href="#"><img src="assets/images/placeholder.jpg" alt=""></a> </div> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h6 class="panel-title">Daily statistics</h6> <div class="heading-elements"> <span class="heading-text"><i class="icon-history position-left text-success"></i> Updated 3 hours ago</span> <ul class="icons-list"> <li><a data-action="reload"></a></li> </ul> </div> </div> <div class="panel-body"> <div class="chart-container"> <div class="chart has-fixed-height" id="daily_stats"></div> </div> </div> </div> </div> <!-- /sales stats --> <!-- Blog post --> <div class="timeline-row"> <div class="timeline-icon"> <img src="assets/images/placeholder.jpg" alt=""> </div> <div class="row"> <div class="col-lg-6"> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h6 class="panel-title">Himalayan sunset</h6> <div class="heading-elements"> <span class="heading-text"><i class="<API key> position-left text-success"></i> 49 minutes ago</span> <ul class="icons-list"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-arrow-down12"></i> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-user-lock"></i> Hide user posts</a></li> <li><a href="#"><i class="icon-user-block"></i> Block user</a></li> <li><a href="#"><i class="icon-user-minus"></i> Unfollow user</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-embed"></i> Embed post</a></li> <li><a href="#"><i class="icon-blocked"></i> Report this post</a></li> </ul> </li> </ul> </div> </div> <div class="panel-body"> <a href="#" class="display-block content-group"> <img src="assets/images/cover.jpg" class="img-responsive content-group" alt=""> </a> <h6 class="content-group"> <i class="<API key> position-left"></i> <a href="#">Jason Ansley</a> commented: </h6> <blockquote> <p>When suspiciously goodness labrador understood rethought yawned grew piously endearingly inarticulate oh goodness jeez trout distinct hence cobra despite taped laughed the much audacious less inside tiger groaned darn stuffily metaphoric unihibitedly inside cobra.</p> <footer>Jason, <cite title="Source Title">10:39 am</cite></footer> </blockquote> </div> <div class="panel-footer <API key>"> <div class="heading-elements"> <ul class="list-inline <API key> heading-text"> <li><a href="#" class="text-default"><i class="icon-eye4 position-left"></i> 438</a></li> <li><a href="#" class="text-default"><i class="<API key> position-left"></i> 71</a></li> </ul> <span class="heading-btn pull-right"> <a href="#" class="btn btn-link">Read post <i class="icon-arrow-right14 position-right"></i></a> </span> </div> </div> </div> </div> <div class="col-lg-6"> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h6 class="panel-title">Diving lesson in Dubai</h6> <div class="heading-elements"> <span class="heading-text"><i class="<API key> position-left text-success"></i> 3 hours ago</span> <ul class="icons-list"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-arrow-down12"></i> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-user-lock"></i> Hide user posts</a></li> <li><a href="#"><i class="icon-user-block"></i> Block user</a></li> <li><a href="#"><i class="icon-user-minus"></i> Unfollow user</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-embed"></i> Embed post</a></li> <li><a href="#"><i class="icon-blocked"></i> Report this post</a></li> </ul> </li> </ul> </div> </div> <div class="panel-body"> <a href="#" class="display-block content-group"> <img src="assets/images/cover.jpg" class="img-responsive" alt=""> </a> <h6 class="content-group"> <i class="<API key> position-left"></i> <a href="#">Melanie Watson</a> commented: </h6> <blockquote> <p>Pernicious drooled tryingly over crud peaceful gosh yet much following brightly mallard hey gregariously far gosh until earthworm python some impala belched darn a sighed unicorn much changed and astride cat and burned grizzly when jeez wonderful the outside tedious.</p> <footer>Melanie, <cite title="Source Title">12:56 am</cite></footer> </blockquote> </div> <div class="panel-footer <API key>"> <div class="heading-elements"> <ul class="list-inline <API key> heading-text"> <li><a href="#" class="text-default"><i class="icon-eye4 position-left"></i> 438</a></li> <li><a href="#" class="text-default"><i class="<API key> position-left"></i> 71</a></li> </ul> <span class="heading-btn pull-right"> <a href="#" class="btn btn-link">Read post <i class="icon-arrow-right14 position-right"></i></a> </span> </div> </div> </div> </div> </div> </div> <!-- /blog post --> <!-- Date stamp --> <div class="timeline-date text-muted"> <i class="icon-history position-left"></i> <span class="text-semibold">Monday</span>, April 18 </div> <!-- /date stamp --> <!-- Messages --> <div class="timeline-row"> <div class="timeline-icon"> <div class="bg-info-400"> <i class="<API key>"></i> </div> </div> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h6 class="panel-title">Conversation with James</h6> <div class="heading-elements"> <ul class="icons-list"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-circle-down2"></i> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-user-lock"></i> Hide user posts</a></li> <li><a href="#"><i class="icon-user-block"></i> Block user</a></li> <li><a href="#"><i class="icon-user-minus"></i> Unfollow user</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-embed"></i> Embed post</a></li> <li><a href="#"><i class="icon-blocked"></i> Report this post</a></li> </ul> </li> </ul> </div> </div> <div class="panel-body"> <ul class="media-list chat-list content-group"> <li class="media date-step"> <span>Today</span> </li> <li class="media reversed"> <div class="media-body"> <div class="media-content">Thus superb the tapir the wallaby blank frog execrably much since dalmatian by in hot. Uninspiringly arose mounted stared one curt safe</div> <span class="media-annotation display-block mt-10">Tue, 8:12 am <a href="#"><i class="icon-pin-alt position-right text-muted"></i></a></span> </div> <div class="media-right"> <a href="assets/images/placeholder.jpg"> <img src="assets/images/placeholder.jpg" class="img-circle" alt=""> </a> </div> </li> <li class="media"> <div class="media-left"> <a href="assets/images/placeholder.jpg"> <img src="assets/images/placeholder.jpg" class="img-circle" alt=""> </a> </div> <div class="media-body"> <div class="media-content">Tolerantly some understood this stubbornly after snarlingly frog far added insect into snorted more auspiciously heedless drunkenly jeez foolhardy oh.</div> <span class="media-annotation display-block mt-10">Wed, 4:20 pm <a href="#"><i class="icon-pin-alt position-right text-muted"></i></a></span> </div> </li> <li class="media reversed"> <div class="media-body"> <div class="media-content">Satisfactorily strenuously while sleazily dear frustratingly insect menially some shook far sardonic badger telepathic much jeepers immature much hey.</div> <span class="media-annotation display-block mt-10">2 hours ago <a href="#"><i class="icon-pin-alt position-right text-muted"></i></a></span> </div> <div class="media-right"> <a href="assets/images/placeholder.jpg"> <img src="assets/images/placeholder.jpg" class="img-circle" alt=""> </a> </div> </li> <li class="media"> <div class="media-left"> <a href="assets/images/placeholder.jpg"> <img src="assets/images/placeholder.jpg" class="img-circle" alt=""> </a> </div> <div class="media-body"> <div class="media-content">Grunted smirked and grew less but rewound much despite and impressive via alongside out and gosh easy manatee dear ineffective yikes.</div> <span class="media-annotation display-block mt-10">13 minutes ago <a href="#"><i class="icon-pin-alt position-right text-muted"></i></a></span> </div> </li> <li class="media reversed"> <div class="media-body"> <div class="media-content"><i class="icon-menu display-block"></i></div> </div> <div class="media-right"> <a href="assets/images/placeholder.jpg"> <img src="assets/images/placeholder.jpg" class="img-circle" alt=""> </a> </div> </li> </ul> <textarea name="enter-message" class="form-control content-group" rows="3" cols="1" placeholder="Enter your message..."></textarea> <div class="row"> <div class="col-xs-6"> <ul class="icons-list icons-list-extended mt-10"> <li><a href="#" data-popup="tooltip" title="Send photo" data-container="body"><i class="icon-file-picture"></i></a></li> <li><a href="#" data-popup="tooltip" title="Send video" data-container="body"><i class="icon-file-video"></i></a></li> <li><a href="#" data-popup="tooltip" title="Send file" data-container="body"><i class="icon-file-plus"></i></a></li> </ul> </div> <div class="col-xs-6 text-right"> <button type="button" class="btn bg-teal-400 btn-labeled btn-labeled-right"><b><i class="icon-circle-right2"></i></b> Send</button> </div> </div> </div> </div> </div> <!-- /messages --> <!-- Video post --> <div class="timeline-row"> <div class="timeline-icon"> <img src="assets/images/placeholder.jpg" alt=""> </div> <div class="row"> <div class="col-lg-6"> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h6 class="panel-title">Peru mountains</h6> <div class="heading-elements"> <span class="heading-text"><i class="<API key> position-left text-success"></i> Today, 8:39 am</span> <ul class="icons-list"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-arrow-down12"></i> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-user-lock"></i> Hide user posts</a></li> <li><a href="#"><i class="icon-user-block"></i> Block user</a></li> <li><a href="#"><i class="icon-user-minus"></i> Unfollow user</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-embed"></i> Embed post</a></li> <li><a href="#"><i class="icon-blocked"></i> Report this post</a></li> </ul> </li> </ul> </div> </div> <div class="panel-body"> <p class="content-group">Cutting much goodness more from sympathetic unwittingly under wow affluent luckily or distinctly demonstrable strewed lewd outside coaxingly and after and rational alas this fitted. Hippopotamus noticeably oh bridled more until dutiful.</p> <div class="video-container"> <iframe allowfullscreen="" frameborder="0" mozallowfullscreen="" src="https://player.vimeo.com/video/126945693?title=0&amp;byline=0&amp;portrait=0" <API key>=""></iframe> </div> </div> </div> </div> <div class="col-lg-6"> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h6 class="panel-title">Woodturner master</h6> <div class="heading-elements"> <span class="heading-text"><i class="<API key> position-left text-success"></i> Yesterday, 7:52 am</span> <ul class="icons-list"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-arrow-down12"></i> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-user-lock"></i> Hide user posts</a></li> <li><a href="#"><i class="icon-user-block"></i> Block user</a></li> <li><a href="#"><i class="icon-user-minus"></i> Unfollow user</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-embed"></i> Embed post</a></li> <li><a href="#"><i class="icon-blocked"></i> Report this post</a></li> </ul> </li> </ul> </div> </div> <div class="panel-body"> <p class="content-group">Bewitchingly amid heard by llama glanced fussily quetzal more that overcame eerie goodness badger woolly where since gosh accurate irrespective that pounded much winked urgent and furtive house gosh one while this more.</p> <div class="video-container"> <iframe allowfullscreen="" frameborder="0" mozallowfullscreen="" src="https://player.vimeo.com/video/126545288?title=0&amp;byline=0&amp;portrait=0" <API key>=""></iframe> </div> </div> </div> </div> </div> </div> <!-- /video post --> <!-- Tasks --> <div class="timeline-row"> <div class="timeline-icon"> <img src="assets/images/placeholder.jpg" alt=""> </div> <div class="row"> <div class="col-lg-6"> <div class="panel border-left-lg border-left-primary timeline-content"> <div class="panel-body"> <div class="row"> <div class="col-md-8"> <h6 class="no-margin-top"><a href="<API key>.html">#24. Create UI design model</a></h6> <p class="mb-15">One morning, when Gregor Samsa woke from troubled..</p> <a href="#"><img src="assets/images/placeholder.jpg" class="img-circle img-xs" alt=""></a> <a href="#"><img src="assets/images/placeholder.jpg" class="img-circle img-xs" alt=""></a> <a href="#"><img src="assets/images/placeholder.jpg" class="img-circle img-xs" alt=""></a> <a href="#" class="text-default">&nbsp;<i class="icon-plus22"></i></a> </div> <div class="col-md-4"> <ul class="list task-details"> <li>28 January, 2015</li> <li class="dropdown"> Priority: &nbsp; <a href="#" class="label label-primary dropdown-toggle" data-toggle="dropdown">Normal <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><span class="status-mark position-left bg-danger"></span> Highest priority</a></li> <li><a href="#"><span class="status-mark position-left bg-info"></span> High priority</a></li> <li class="active"><a href="#"><span class="status-mark position-left bg-primary"></span> Normal priority</a></li> <li><a href="#"><span class="status-mark position-left bg-success"></span> Low priority</a></li> </ul> </li> <li><a href="#">Eternity app</a></li> </ul> </div> </div> </div> <div class="panel-footer <API key>"> <div class="heading-elements"> <span class="heading-text">Due: <span class="text-semibold">23 hours</span></span> <ul class="list-inline <API key> heading-text pull-right"> <li class="dropdown"> <a href="#" class="text-default dropdown-toggle" data-toggle="dropdown">Open <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li class="active"><a href="#">Open</a></li> <li><a href="#">On hold</a></li> <li><a href="#">Resolved</a></li> <li><a href="#">Closed</a></li> <li class="divider"></li> <li><a href="#">Dublicate</a></li> <li><a href="#">Invalid</a></li> <li><a href="#">Wontfix</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-alarm-add"></i> Check in</a></li> <li><a href="#"><i class="icon-attachment"></i> Attach screenshot</a></li> <li><a href="#"><i class="icon-rotate-ccw2"></i> Reassign</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-pencil7"></i> Edit task</a></li> <li><a href="#"><i class="icon-cross2"></i> Remove</a></li> </ul> </li> </ul> </div> </div> </div> </div> <div class="col-lg-6"> <div class="panel border-left-lg border-left-danger timeline-content"> <div class="panel-body"> <div class="row"> <div class="col-md-8"> <h6 class="no-margin-top"><a href="<API key>.html">#23. New icons set for an iOS app</a></h6> <p class="mb-15">A collection of textile samples lay spread out on the table..</p> <a href="#"><img src="assets/images/placeholder.jpg" class="img-circle img-xs" alt=""></a> <a href="#"><img src="assets/images/placeholder.jpg" class="img-circle img-xs" alt=""></a> <a href="#" class="text-default">&nbsp;<i class="icon-plus22"></i></a> </div> <div class="col-md-4"> <ul class="list task-details"> <li>20 January, 2015</li> <li class="dropdown"> Priority: &nbsp; <a href="#" class="label label-danger dropdown-toggle" data-toggle="dropdown">Highest <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li class="active"><a href="#"><span class="status-mark position-left bg-danger"></span> Highest priority</a></li> <li><a href="#"><span class="status-mark position-left bg-info"></span> High priority</a></li> <li><a href="#"><span class="status-mark position-left bg-primary"></span> Normal priority</a></li> <li><a href="#"><span class="status-mark position-left bg-success"></span> Low priority</a></li> </ul> </li> <li><a href="#">Eternity app</a></li> </ul> </div> </div> </div> <div class="panel-footer <API key>"> <div class="heading-elements"> <span class="heading-text">Due: <span class="text-semibold">18 hours</span></span> <ul class="list-inline <API key> heading-text pull-right"> <li class="dropdown"> <a href="#" class="text-default dropdown-toggle" data-toggle="dropdown">On hold <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#">Open</a></li> <li class="active"><a href="#">On hold</a></li> <li><a href="#">Resolved</a></li> <li><a href="#">Closed</a></li> <li class="divider"></li> <li><a href="#">Dublicate</a></li> <li><a href="#">Invalid</a></li> <li><a href="#">Wontfix</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-alarm-add"></i> Check in</a></li> <li><a href="#"><i class="icon-attachment"></i> Attach screenshot</a></li> <li><a href="#"><i class="icon-rotate-ccw2"></i> Reassign</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-pencil7"></i> Edit task</a></li> <li><a href="#"><i class="icon-cross2"></i> Remove</a></li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> <!-- /tasks --> <!-- Date stamp --> <div class="timeline-date text-muted"> <i class="icon-history position-left"></i> <span class="text-semibold">Tuesday</span>, April 19 </div> <!-- /date stamp --> <!-- Invoices --> <div class="timeline-row"> <div class="timeline-icon"> <div class="bg-warning-400"> <i class="icon-cash3"></i> </div> </div> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h6 class="panel-title text-semibold">Weekly sales statistics</h6> <div class="heading-elements"> <span class="heading-text"> <i class="icon-arrow-up22 text-success"></i> <span class="text-semibold">23.7%</span> </span> <ul class="icons-list"> <li><a data-action="collapse"></a></li> <li><a data-action="reload"></a></li> <li><a data-action="close"></a></li> </ul> </div> </div> <div class="panel-body"> <div class="chart-container"> <div class="chart has-fixed-height" id="sales"></div> </div> </div> </div> <div class="row"> <div class="col-lg-6"> <div class="panel border-left-lg border-left-danger invoice-grid timeline-content"> <div class="panel-body"> <div class="row"> <div class="col-sm-6"> <h6 class="text-semibold no-margin-top">Leonardo Fellini</h6> <ul class="list list-unstyled"> <li>Invoice #: &nbsp;0028</li> <li>Issued on: <span class="text-semibold">2015/01/25</span></li> </ul> </div> <div class="col-sm-6"> <h6 class="text-semibold text-right no-margin-top">$8,750</h6> <ul class="list list-unstyled text-right"> <li>Method: <span class="text-semibold">SWIFT</span></li> <li class="dropdown"> Status: &nbsp; <a href="#" class="label bg-danger-400 dropdown-toggle" data-toggle="dropdown">Overdue <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li class="active"><a href="#"><i class="icon-alert"></i> Overdue</a></li> <li><a href="#"><i class="icon-alarm"></i> Pending</a></li> <li><a href="#"><i class="icon-checkmark3"></i> Paid</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-spinner2 spinner"></i> On hold</a></li> <li><a href="#"><i class="icon-cross2"></i> Canceled</a></li> </ul> </li> </ul> </div> </div> </div> <div class="panel-footer <API key>"> <div class="heading-elements"> <span class="heading-text"> <span class="status-mark border-danger position-left"></span> Due: <span class="text-semibold">2015/02/25</span> </span> <ul class="list-inline <API key> heading-text pull-right"> <li><a href="#" class="text-default" data-toggle="modal" data-target="#invoice"><i class="icon-eye8"></i></a></li> <li class="dropdown"> <a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-printer"></i> Print invoice</a></li> <li><a href="#"><i class="icon-file-download"></i> Download invoice</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-file-plus"></i> Edit invoice</a></li> <li><a href="#"><i class="icon-cross2"></i> Remove invoice</a></li> </ul> </li> </ul> </div> </div> </div> </div> <div class="col-lg-6"> <div class="panel border-left-lg border-left-success invoice-grid timeline-content"> <div class="panel-body"> <div class="row"> <div class="col-sm-6"> <h6 class="text-semibold no-margin-top">Rebecca Manes</h6> <ul class="list list-unstyled"> <li>Invoice #: &nbsp;0027</li> <li>Issued on: <span class="text-semibold">2015/02/24</span></li> </ul> </div> <div class="col-sm-6"> <h6 class="text-semibold text-right no-margin-top">$5,100</h6> <ul class="list list-unstyled text-right"> <li>Method: <span class="text-semibold">Paypal</span></li> <li class="dropdown"> Status: &nbsp; <a href="#" class="label bg-success-400 dropdown-toggle" data-toggle="dropdown">Paid <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-alert"></i> Overdue</a></li> <li><a href="#"><i class="icon-alarm"></i> Pending</a></li> <li class="active"><a href="#"><i class="icon-checkmark3"></i> Paid</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-spinner2 spinner"></i> On hold</a></li> <li><a href="#"><i class="icon-cross2"></i> Canceled</a></li> </ul> </li> </ul> </div> </div> </div> <div class="panel-footer <API key>"> <div class="heading-elements"> <span class="heading-text"> <span class="status-mark border-success position-left"></span> Due: <span class="text-semibold">2015/03/24</span> </span> <ul class="list-inline <API key> heading-text pull-right"> <li><a href="#" class="text-default" data-toggle="modal" data-target="#invoice"><i class="icon-eye8"></i></a></li> <li class="dropdown"> <a href="#" class="text-default dropdown-toggle" data-toggle="dropdown"><i class="icon-menu7"></i> <span class="caret"></span></a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-printer"></i> Print invoice</a></li> <li><a href="#"><i class="icon-file-download"></i> Download invoice</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-file-plus"></i> Edit invoice</a></li> <li><a href="#"><i class="icon-cross2"></i> Remove invoice</a></li> </ul> </li> </ul> </div> </div> </div> </div> </div> </div> <!-- /invoices --> <!-- Schedule --> <div class="timeline-row"> <div class="timeline-icon"> <img src="assets/images/placeholder.jpg" alt=""> </div> <div class="panel panel-flat timeline-content"> <div class="panel-heading"> <h6 class="panel-title text-semibold">Anna's schedule</h6> <div class="heading-elements"> <ul class="icons-list"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-arrow-down12"></i> </a> <ul class="dropdown-menu dropdown-menu-right"> <li><a href="#"><i class="icon-user-lock"></i> Hide user posts</a></li> <li><a href="#"><i class="icon-user-block"></i> Block user</a></li> <li><a href="#"><i class="icon-user-minus"></i> Unfollow user</a></li> <li class="divider"></li> <li><a href="#"><i class="icon-embed"></i> Embed post</a></li> <li><a href="#"><i class="icon-blocked"></i> Report this post</a></li> </ul> </li> </ul> </div> </div> <div class="panel-body"> <div class="schedule"></div> </div> </div> </div> <!-- /schedule --> </div> </div> <!-- /timeline --> <!-- Footer --> <div class="footer text-muted"> &copy; 2015. <a href=" </div> <!-- /footer --> </div> <!-- /content area --> </div> <!-- /main content --> </div> <!-- /page content --> </div> <!-- /page container --> </body> </html>
// Code Linker originally by @CADbloke (Ewen Wallace) 2015 using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace CodeLinker { internal static class ProjectMaker { <summary> Copies and links a List of Projects into the <c> destinationFolder </c>. <para> File is Linked from the first <c> projectsToLink </c> for each if there is more than 1 source. </para> </summary> <exception cref="<API key>"> Thrown when one or more required arguments are null or empty. </exception> <param name="projectsToLink"> a List of projects to Link. </param> <param name="destinationFolder"> Pathname of the destination folder. Empty string throws <c><API key></c></param> <param name="createSubFolders"> True (default) if you want each now project in its own subfolder. </param> internal static void NewProject(List<ProjectToLink> projectsToLink, string destinationFolder, bool createSubFolders = true) { if (projectsToLink == null) throw new <API key>(nameof(projectsToLink)); if (string.IsNullOrEmpty(destinationFolder)) throw new <API key>(nameof(destinationFolder)); var destinationProjects = new HashSet<string>(projectsToLink.Select(p => p.<API key>)); Log.WriteLine("Recycling " + destinationProjects.Count + " Project(s) to " + destinationFolder); foreach (string destinationProject in destinationProjects) { string destinationProjPath = createSubFolders ? Path.Combine(destinationFolder + "\\" + Path.<API key>(destinationProject), destinationProject) : Path.Combine(destinationFolder, destinationProject); if (File.Exists(destinationProjPath)) { bool overwriteExisting = YesOrNo.Ask(destinationProjPath + Environment.NewLine + "already exists!" + Environment.NewLine + "Overwrite it ?"); if (!overwriteExisting) continue; } List<string> sources = projectsToLink .Where(d => d.<API key> == destinationProject) .Select(s => s.SourceProject).ToList(); if (sources.Count != 1) { string message = destinationProject + "has " + sources.Count + " source Projects." + Environment.NewLine; for (var index = 0; index < sources.Count; index++) { string source = sources[index]; message += index + 1 + ". " + source + Environment.NewLine; } message += "Continue (Y) or skip (N) " + destinationProject + " or Cancel Everything?"; bool? carryOn = YesOrNo.OrCancel(message); if (carryOn == null) { Log.WriteLine("User aborted All Recycling. " + message); return; // bail out of everything } if (carryOn == false) { Log.WriteLine("User skipped one Linked Project. " + message); continue; // skip just this Destination Project } } if (sources.Any()) { Log.WriteLine("Recycling to :" + destinationProjPath); Directory.CreateDirectory(Path.GetDirectoryName(destinationProjPath)); // safe. Doesn't care if it already exists. File.Copy(sources[0], destinationProjPath, true); var destinationProjXml = new DestinationProjXml(destinationProjPath); destinationProjXml.ClearOldLinkedCode(); destinationProjXml.<API key>(); destinationProjXml.AddExclusion("app.config"); Log.WriteLine("...because a linked App.config will cause problems when you change build settings."); destinationProjXml.AddExclusion("packages.config"); Log.WriteLine("...because nuget's packages.config will cause problems when you change build settings."); destinationProjXml.<API key>(); foreach (string source in sources) { if (File.Exists(source)) destinationProjXml.AddSource(PathMaker.MakeRelativePath(destinationProjPath, source)); else Log.WriteLine("Bad Source in: " + destinationProjPath + Environment.NewLine + " Source: " + source + Environment.NewLine); } destinationProjXml.Save(); App.ParseCommands(new[] {destinationProjPath}); } } } internal static void NewProject(ProjectToLink projectsToLink, string destinationFolder, bool createSubFolders = true) { NewProject(new List<ProjectToLink> { projectsToLink }, destinationFolder, createSubFolders); } internal static void NewProject(string projectToLink, string destinationFolder, bool createSubFolders = true) { NewProject(new List<ProjectToLink> { new ProjectToLink { SourceProject = projectToLink } }, destinationFolder, createSubFolders); } } }
<?php // autoload_real.php @generated by Composer class <API key> { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } } public static function getLoader() { if (null !== self::$loader) { return self::$loader; } <API key>(array('<API key>', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); <API key>(array('<API key>', 'loadClassLoader')); $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { $loader->set($namespace, $path); } $map = require __DIR__ . '/autoload_psr4.php'; foreach ($map as $namespace => $path) { $loader->setPsr4($namespace, $path); } $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { $loader->addClassMap($classMap); } $loader->register(true); return $loader; } } function <API key>($file) { require $file; }
package plugins import ( "html/template" "log" "github.com/Masterminds/sprig" "io/ioutil" "bytes" "path/filepath" "github.com/pkg/errors" "time" "os" ) type withTemplate struct { Template string `yaml:"template"` TemplateFile string `yaml:"templateFile"` // template file (relative to config dir) has priority. Template supports basic utils } func (wt *withTemplate) renderDefault(action, id, label string, err error, logger *log.Logger) (string, error) { s, _, err := wt.renderDefaultParams(action, id, label, err, logger) return s, err } func (wt *withTemplate) renderDefaultParams(action, id, label string, err error, logger *log.Logger) (string, map[string]interface{}, error) { hostname, _ := os.Hostname() params := map[string]interface{}{ "id": id, "label": label, "error": err, "action": action, "hostname": hostname, "time": time.Now().String(), } s, err := wt.render(params, logger) return s, params, err } func (wt *withTemplate) render(params map[string]interface{}, logger *log.Logger) (string, error) { parser, err := parseFileOrTemplate(wt.TemplateFile, wt.Template, logger) if err != nil { return "", errors.Wrap(err, "parse template") } message := &bytes.Buffer{} renderErr := parser.Execute(message, params) if renderErr != nil { logger.Println("failed render:", renderErr, "; params:", params) return "", err } return message.String(), nil } func (wt *withTemplate) resolvePath(workDir string) { wt.TemplateFile = realPath(wt.TemplateFile, workDir) } func (wt *withTemplate) MergeFrom(other *withTemplate) error { if wt.TemplateFile == "" { wt.TemplateFile = other.TemplateFile } if wt.TemplateFile != other.TemplateFile { return errors.New("template files are different") } if wt.Template == "" { wt.Template = other.Template } if wt.Template != other.Template { return errors.New("different templates") } return nil } func unique(names []string) []string { var hash = make(map[string]struct{}) for _, name := range names { hash[name] = struct{}{} } var ans = make([]string, 0, len(hash)) for name := range hash { ans = append(ans, name) } return ans } func makeSet(names []string) map[string]bool { var hash = make(map[string]bool) for _, name := range names { hash[name] = true } return hash } func parseFileOrTemplate(file string, fallbackContent string, logger *log.Logger) (*template.Template, error) { templateContent, err := ioutil.ReadFile(file) if err != nil { logger.Println("read template:", err) templateContent = []byte(fallbackContent) } return template.New("").Funcs(sprig.FuncMap()).Parse(string(templateContent)) } func renderOrFallback(templateText string, params map[string]interface{}, fallback string, logger *log.Logger) string { if templateText == "" { return fallback } t, err := template.New("").Funcs(sprig.FuncMap()).Parse(string(templateText)) if err != nil { logger.Println("failed parse:", err) return fallback } message := &bytes.Buffer{} err = t.Execute(message, params) if err != nil { logger.Println("failed render:", err) return fallback } return message.String() } func realPath(path string, workDir string) string { if path == "" { return "" } if filepath.IsAbs(path) { return path } p, _ := filepath.Abs(filepath.Join(workDir, path)) return p }
import React from 'react'; import Seeding from './Seeding'; import Checking from './Checking'; import Downloading from './Downloading'; import Error from './Error'; import Status from './Status'; function StatusDetails({ torrent }) { if (torrent.hasErrors) { return <Error torrent={torrent} />; } if (torrent.isDownloading) { return <Downloading torrent={torrent} />; } if (torrent.isSeeding) { return <Seeding torrent={torrent} />; } if (torrent.isChecking) { return <Checking torrent={torrent} />; } return <Status torrent={torrent} />; } export default StatusDetails;
package vm import ( "net/url" "strconv" "github.com/goby-lang/goby/vm/classes" "github.com/goby-lang/goby/vm/errors" ) var <API key> = []*BuiltinMethodObject{ { // Returns a Net::HTTP or Net::HTTPS's instance (depends on the url scheme). // ```ruby // u.scheme # => "https" // u.host # => "example.com" // u.port // u.path Name: "parse", Fn: func(receiver Object, sourceLine int, t *Thread, args []Object, blockFrame *normalCallFrame) Object { if len(args) != 1 { return t.vm.InitErrorObject(errors.ArgumentError, sourceLine, errors.<API key>, 1, len(args)) } typeErr := t.vm.checkArgTypes(args, sourceLine, classes.StringClass) if typeErr != nil { return typeErr } uri := args[0].(*StringObject).value uriModule := t.vm.TopLevelClass("URI") u, err := url.Parse(uri) if err != nil { return t.vm.InitErrorObject(errors.InternalError, sourceLine, err.Error()) } uriAttrs := map[string]Object{ "@user": NULL, "@password": NULL, "@query": NULL, "@path": t.vm.InitStringObject("/"), "@fragment": NULL, } // Scheme uriAttrs["@scheme"] = t.vm.InitStringObject(u.Scheme) // Host uriAttrs["@host"] = t.vm.InitStringObject(u.Host) // Port if len(u.Port()) == 0 { switch u.Scheme { case "http": uriAttrs["@port"] = t.vm.InitIntegerObject(80) case "https": uriAttrs["@port"] = t.vm.InitIntegerObject(443) } } else { p, err := strconv.ParseInt(u.Port(), 0, 64) if err != nil { return t.vm.InitErrorObject(errors.InternalError, sourceLine, err.Error()) } uriAttrs["@port"] = t.vm.InitIntegerObject(int(p)) } // Path if len(u.Path) != 0 { uriAttrs["@path"] = t.vm.InitStringObject(u.Path) } // Query if len(u.RawQuery) != 0 { uriAttrs["@query"] = t.vm.InitStringObject(u.RawQuery) } // User if u.User != nil { if len(u.User.Username()) != 0 { uriAttrs["@user"] = t.vm.InitStringObject(u.User.Username()) } if p, ok := u.User.Password(); ok { uriAttrs["@password"] = t.vm.InitStringObject(p) } } // Fragment if u.Fragment != "" { uriAttrs["@fragment"] = t.vm.InitStringObject(u.Fragment) } var c *RClass if u.Scheme == "https" { c = uriModule.getClassConstant("HTTPS") } else { c = uriModule.getClassConstant("HTTP") } i := c.initializeInstance() for varName, value := range uriAttrs { i.InstanceVariables.set(varName, value) } return i }, }, } func initURIClass(vm *VM) { uri := vm.initializeModule("URI") http := vm.initializeClass("HTTP") https := vm.initializeClass("HTTPS") https.superClass = http https.pseudoSuperClass = http uri.setClassConstant(http) uri.setClassConstant(https) uri.setBuiltinMethods(<API key>, true) attrs := []Object{ vm.InitStringObject("host"), vm.InitStringObject("path"), vm.InitStringObject("port"), vm.InitStringObject("query"), vm.InitStringObject("scheme"), vm.InitStringObject("user"), vm.InitStringObject("password"), vm.InitStringObject("fragment"), } http.setAttrReader(attrs) http.setAttrWriter(attrs) vm.objectClass.setClassConstant(uri) }
## Gold Sponsors [![LoginRadius](https: <br><br> [![WorkOS](https: ## Sponsors - [CodePilot.ai](https://codepilot.ai/) - [Jeremy Combs](https://github.com/jmcombs) - [Gadget](https://gadget.dev/) - Kelly Burke - [Matt Miller](https://mmiller.me/)
import Ember from 'ember' const {Router} = Ember import config from './config/environment' const DemoRouter = Router.extend({ location: config.locationType, rootURL: config.rootURL }) DemoRouter.map(function () { this.route('demo', {path: '/'}, function () { this.route('overview', {path: '/'}) this.route('cell-renderers') this.route('frost-fixed-table') this.route('frost-table') this.route('frost-table-body') this.route('frost-table-header') this.route('frost-table-row') this.route('selection') }) }) export default DemoRouter
package com.ocdsoft.bacta.swg.server.game.message.client; import com.ocdsoft.bacta.soe.message.GameNetworkMessage; import lombok.AllArgsConstructor; import lombok.Getter; import com.ocdsoft.bacta.soe.message.Priority; import java.nio.ByteBuffer; @Getter @Priority(0x2) @AllArgsConstructor public final class SelectCharacter extends GameNetworkMessage { private final long characterId; public SelectCharacter(final ByteBuffer buffer) { this.characterId = buffer.getLong(); } @Override public void writeToBuffer(ByteBuffer buffer) { buffer.putLong(characterId); } }
TipmyGit::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 thread 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.<API key> = false config.action_controller.perform_caching = true # Enable Rack::Cache to put a simple HTTP cache in front of your application # Add `rack-cache` to your Gemfile before enabling this. # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid. # config.action_dispatch.rack_cache = true # Disable Rails's static asset server (Apache or nginx will already do this). config.serve_static_assets = false # 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 # Generate digests for assets URLs. config.assets.digest = true # Version of your assets, change this if you want to expire all your assets. config.assets.version = '1.0' # 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 # Force all access to the app over SSL, use <API key>, and use secure cookies. # config.force_ssl = true # Set to :debug to see everything in the log. config.log_level = :info # Prepend all log lines with the following tags. # config.log_tags = [ :subdomain, :uuid ] # Use a different logger for distributed setups. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production. # config.cache_store = :mem_cache_store # Enable serving of images, stylesheets, and JavaScripts from an asset server. # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. # config.assets.precompile += %w( search.js ) # 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.<API key> = false # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation can not be found). config.i18n.fallbacks = true # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify # Disable automatic flushing of the log to improve performance. # config.autoflush_log = false # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new end
package chat.client.view; import chat.client.controller.ClientController; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JPanel; public class UserPanel extends JPanel { ClientController con; JComboBox stateComboBox ; ContactsListView contactsListView; public UserPanel(ClientController c, ContactsListView contactsListView) { this.contactsListView = contactsListView; con = c; JPanel jPanel1 = new javax.swing.JPanel(); JPanel jPanel2 = new javax.swing.JPanel(); stateComboBox = new javax.swing.JComboBox(); JButton jButton1 = new javax.swing.JButton(); JButton jButton6 = new javax.swing.JButton(); JButton jButton5 = new javax.swing.JButton(); JButton jButton2 = new javax.swing.JButton(); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 100, Short.MAX_VALUE) ); //<API key>(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel2.setBackground(new java.awt.Color(102, 0, 102)); stateComboBox.setModel(new javax.swing.<API key>(new String[] { "Online", "Offline", "Busy" })); jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/chat/client/view/setting.png"))); // NOI18N jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/chat/client/view/add.png"))); jButton6.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent me) { NewContact nc = new NewContact(null, true,con); nc.setVisible(true); } }); jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/chat/client/view/remove .png"))); // NOI18N jButton5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { //<API key>(evt); } }); jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/chat/client/view/group_1.png"))); // NOI18N // jButton2.addActionListener(new java.awt.event.ActionListener() { // public void actionPerformed(java.awt.event.ActionEvent evt) { // new StartGroupChat(contactsListView, true).setVisible(true); jButton2.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent me) { String[] x = con.getFriendRequest(ClientController.userId); if (x != null) { for (int i = 0; i < x.length; i++) { con.receiveAdd(x[i]); } } } }); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.<API key>() .addContainerGap() .addComponent(stateComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 238, Short.MAX_VALUE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.<API key>() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.<API key>() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButton5) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton6) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel2Layout.<API key>() .addGap(21, 21, 21) .addComponent(stateComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 79, Short.MAX_VALUE) ); // this.setPreferredSize(new Dimension(200, 50)); // this.setLayout(new BorderLayout()); // JLabel img = new JLabel(new ImageIcon("res/male.png")); // this.add(img, BorderLayout.WEST); // JLabel name = new JLabel("user name"); // JLabel status = new JLabel("user name"); // status.setForeground(new Color(200, 200, 200)); // JPanel nameAndStatusPanel = new JPanel(new BorderLayout()); // nameAndStatusPanel.add(name, BorderLayout.NORTH); // nameAndStatusPanel.add(status, BorderLayout.SOUTH); // this.add(nameAndStatusPanel, BorderLayout.CENTER); stateComboBox.addActionListener(new java.awt.event.ActionListener() { @Override public void actionPerformed(java.awt.event.ActionEvent evt) { <API key>(evt); } }); // this.add(stateComboBox, BorderLayout.EAST); } private void <API key>(java.awt.event.ActionEvent evt) { String state = stateComboBox.getSelectedItem().toString(); System.out.println("here in comboBox"); if (state.equals("Online")) { con.changeState(0); } if (state.equals("Offline")) { con.changeState(1); } if (state.equals("Busy")) { con.changeState(2); } } }
#include <bits/stdc++.h> #define INF 67108864 using namespace std; int idcnt; unordered_map<string, int> ids; int readId() { string s; cin >> s; auto r = ids.emplace(s, idcnt); if (r.second) ++idcnt; return r.first->second; } int M[55][55]; int main() { ios_base::sync_with_stdio(0);cin.tie(0); int n, m; for (int cse=1; cin>>n>>m && (n||m); ++cse) { cout << "Network " << cse << ": "; for (int i=0; i<n; ++i) { M[i][i] = 0; for (int j=0; j<i; ++j) M[i][j] = M[j][i] = INF; } idcnt = 0; ids.clear(); for (int i=0; i<m; ++i) { int u = readId(), v = readId(); M[u][v] = M[v][u] = 1; } for (int k=0; k<n; ++k) for (int i=0; i<n; ++i) if (i!=k && M[i][k]!=INF) for (int j=0; j<n; ++j) if (j!=i && M[k][j]!=INF) M[i][j] = min(M[i][j], M[i][k] + M[k][j]); int mxd = 0; for (int i=0; i<n; ++i) for (int j=0; j<n; ++j) mxd = max(mxd, M[i][j]); if (mxd == INF) cout << "DISCONNECTED\n\n"; else cout << mxd << "\n\n"; } }
import { ArrayBufferBuilder } from "../../../../utils/ArrayBufferBuilder"; import { BitsReader } from "../../../../utils/BitsReader"; import { SerializerUtils } from "../../../../utils/SerializerUtils"; import { <API key> } from "../data/<API key>"; import { PokerTimeData } from "../data/PokerTimeData"; import { <API key> } from "../serializers/<API key>"; export class <API key> { public static serialize(buffer: ArrayBufferBuilder, data: <API key>): void { <API key>.serialize(buffer, data.timeParts); } public static deserialize(buffer: ArrayBufferBuilder, data: <API key>): void { data.timeParts = new PokerTimeData(data); <API key>.deserialize(buffer, data.timeParts); } }
using Newtonsoft.Json; namespace RailDataEngine.Domain.Services.<API key>.Entity { public class <API key> { [JsonProperty("signalling_id")] public string SignallingId { get; set; } [JsonProperty("CIF_train_category")] public string TrainCategory { get; set; } [JsonProperty("CIF_headcode")] public string HeadCode { get; set; } [JsonProperty("<API key>")] public string CourseIndicator { get; set; } [JsonProperty("<API key>")] public string TrainServiceCode { get; set; } [JsonProperty("CIF_business_sector")] public string BusinessSector { get; set; } [JsonProperty("CIF_power_type")] public string PowerType { get; set; } [JsonProperty("CIF_timing_load")] public string TimingLoad { get; set; } [JsonProperty("CIF_speed")] public string Speed { get; set; } [JsonProperty("<API key>")] public string <API key> { get; set; } [JsonProperty("CIF_train_class")] public string TrainClass { get; set; } [JsonProperty("CIF_sleepers")] public string Sleepers { get; set; } [JsonProperty("CIF_reservations")] public string Reservations { get; set; } [JsonProperty("<API key>")] public string ConnectionIndicator { get; set; } [JsonProperty("CIF_catering_code")] public string CateringCode { get; set; } [JsonProperty("<API key>")] public string ServiceBranding { get; set; } [JsonProperty("schedule_location")] public <API key>[] ScheduleLocation { get; set; } } }
require 'strapon/stylesheets/builder' module Strapon module Generators class RiccoGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) class_option :path, :type => :string, :desc => %q{Path to stylesheet_index.yml to be used to copy stylesheets. Allows finer control of which styles to copy into project} def run_generation puts "Setting up Ricco to do the damage" #html helpers copy_file 'application_helper.rb' , 'app/helpers/application_helper.rb' copy_file 'application.html.haml' , 'app/views/layouts/application.html.haml' copy_file 'empty.html.haml' , 'app/views/layouts/empty.html.haml' copy_file '_navigation.html.haml' , 'app/views/layouts/_navigation.html.haml' remove_file 'application.html.erb' #css design structure remove_file "app/assets/stylesheets/application.css" copy_file "stylesheets/application.css.sass" , "app/assets/stylesheets/application.css.sass" copy_stylesheets options[:path] # Gemfile inject_into_file "Gemfile", :after => /^.*gem 'jquery-rails.*\n/ do "\n#HTML generation and css\n"+ "gem 'high_voltage'\n"+ "gem 'haml'\n"+ "gem 'simple_form'\n"+ "gem '<API key>'\n" end inject_into_file "Gemfile", :after => /^.*group :assets do*\n/ do " gem 'compass-rails'\n"+ " gem 'bootstrap-sass'\n" end end def after_generate puts " puts "" puts "remember to run" puts "bundle install" puts 'rails g simple_form:install' puts 'rails g <API key>:install' puts "" puts "turn off html5 validations in simple_form config otherwise client side validations won't work" puts "" puts " end protected include Strapon::Stylesheets::Builder end end end
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: '<API key>', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-controller': true } }, APP: { // Here you can pass flags/options to your application instance // when it is created } }; if (environment === 'development') { // ENV.APP.LOG_RESOLVER = true; // ENV.APP.<API key> = true; // ENV.APP.LOG_TRANSITIONS = true; // ENV.APP.<API key> = true; // ENV.APP.LOG_VIEW_LOOKUPS = true; } if (environment === 'test') { // Testem prefers this... ENV.baseURL = '/'; ENV.locationType = 'none'; // keep test console output quieter ENV.APP.<API key> = false; ENV.APP.LOG_VIEW_LOOKUPS = false; ENV.APP.rootElement = '#ember-testing'; } if (environment === 'production') { } return ENV; };
title: 'Kubernetes Networking: Part 2 - Calico' layout: post category: blog tags: - kubernetes - calico In the previous post, I went over some basics of how Kubernetes networking works from a fundamental standpoint. The requirements are simple: every pod needs to have connectivity to every other pod. The only differentiation between the many options were how that was achieved. In this post, I'm going to cover some of the fundamentals of how [Calico](https: As before, I'm not by any means a networking expert, so if you spot any mistakes, please [send a pull request!](https://github.com/jaxxstorm/jaxxstorm.github.io/pulls) # What is Calico? Calico is a container networking solution created by MetaSwitch. While solutions like Flannel operate over layer 2, Calico makes use of layer 3 to route packets to pods. The way it does this is relatively simple in practice. Calico can also provide network policy for Kubernetes. We'll ignore this for the time being, and focus purely on how it provides container networking. # Components Your average calico setup has 4 components: ## Etcd Etcd is the backend data store for all the information Calico needs. If you've deployed Kubernetes already, you already _have_ an etcd deployment, but it's usually suggested to deploy a separate etcd for production systems, or at the very least deploy it outside of your kubernetes cluster. You can examine the information that calico provides by using etcdctl. The default location for the calico keys is `/calico` {% highlight bash %} $ etcdctl ls /calico /calico/ipam /calico/v1 /calico/bgp {% endhighlight %} ## BIRD The next key component in the calico stack is [BIRD](http://bird.network.cz/). BIRD is a BGP routing daemon which runs on every host. Calico makes uses of BGP to propagate routes between hosts. BGP (if you're not aware) is widely used to propagate routes over the internet. It's suggested you make yourself familiar with some of the concepts if you're using Calico. Bird runs on every host in the Kubernetes cluster, usually as a [DaemonSet](https://kubernetes.io/docs/admin/daemons/). It's included in the calico/node container. ## Confd [Confd](https://github.com/kelseyhightower/confd) is a simple configuration management tool. It reads values from etcd and writes them to files on disk. If you take a look inside the calico/node container (where it usually runs) you can get an idea of what's it doing: {% highlight bash %} PID USER TIME COMMAND 1 root 0:00 /sbin/runsvdir -P /etc/service/enabled 105 root 0:00 runsv felix 106 root 0:00 runsv bird 107 root 0:00 runsv bird6 108 root 0:00 runsv confd 109 root 0:28 bird6 -R -s /var/run/calico/bird6.ctl -d -c /etc/calico/confd/config/bird6.cfg 110 root 0:00 confd -confdir=/etc/calico/confd -interval=5 -watch --log-level=debug -node=http://etcd1:4001 112 root 0:40 bird -R -s /var/run/calico/bird.ctl -d -c /etc/calico/confd/config/bird.cfg 230 root 31:48 calico-felix 256 root 0:00 <API key> 257 root 2:17 <API key> 11710 root 0:00 /bin/sh 11786 root 0:00 ps {% endhighlight %} As you can see, it's connecting to the etcd nodes and reading from there, and it has a confd directory passed to it. The source of that confd directory can be found in the [calicoctl github repository](https://github.com/projectcalico/calico/tree/master/calico_node/filesystem/etc/calico/confd). If you examine the repo, you'll notice three directories. Firstly, there's a `conf.d` directory. This directory contains a bunch of toml configuration files. Let's examine one of them: {% highlight go %} [template] src = "bird_ipam.cfg.template" dest = "/etc/calico/confd/config/bird_ipam.cfg" prefix = "/calico/v1/ipam/v4" keys = [ "/pool", ] reload_cmd = "pkill -HUP bird || true" {% endhighlight %} This is pretty simple in reality. It has a source file, and then where the file should be written to. Then, there's some etcd keys that you should read information from. Essentially, confd is what writes the BIRD configuration for Calico. If you examine the keys there, you'll see the kind of thing it reads: {% highlight bash %} $ etcdctl ls /calico/v1/ipam/v4/pool/ /calico/v1/ipam/v4/pool/192.168.0.0-16 {% endhighlight %} So in this case, it's getting the pod cidr we've assigned. I'll cover this in more detail later. In order to understand what it does with that key, you need to take a look at the [src template confd is using](https://github.com/projectcalico/calico/blob/master/calico_node/filesystem/etc/calico/confd/templates/bird_ipam.cfg.template). Now, this at first glance looks a little complicated, but it's not. It's writing a file in the Go templating language that confd is familiar with. This is a standard BIRD configuration file, populated with keys from etcd. Take [this](https://github.com/projectcalico/calico/blob/master/calico_node/filesystem/etc/calico/confd/templates/bird_ipam.cfg.template#L5-L8) for example: This is essentially: * Looping through all the pools under the key `/v1/ipam/v4/pool` - in our case we only have one: 192.168.0.0-16 * Assigning the data in the pools key to a var, `$data` * Then grabbing a value from the JSON that's been loaded into `$data` - in this case the cidr key. This makes more sense if you look at the values in the etcd key: {% highlight bash %} etcdctl get /calico/v1/ipam/v4/pool/192.168.0.0-16 {"cidr":"192.168.0.0/16","ipip":"tunl0","masquerade":true,"ipam":true,"disabled":false} {% endhighlight %} So it's grabbed the cidr value and written it to the file. The end result of the file in the calico/node container brings this all together: {% highlight bash %} if ( net ~ 192.168.0.0/16 ) then { accept; } {% endhighlight %} Pretty simple really! ## calico-felix The final component in the calico stack is the calico-felix daemon. This is the tool that performs all the magic in the calico stack. It has multiple responsibilities: * it writes the routing table of the operating system. You'll see this in action later * it manipulates IPtables on the host. Again, you'll see this in action later. It does all this by connecting to etcd and reading information from there. It runs inside the calico/node DaemonSet alongside confd and BIRD. # Calico in Action In order to get started, it's recommend that you've deployed Calico using the installation instructions [here](http://docs.projectcalico.org/v2.3/getting-started/kubernetes/installation/). Ensure that: * you've got a calico/node container running on every kubernetes host * You can see in the calico/node logs that there's no errors or issues. Use `kubectl get logs` on a few hosts to ensure it's working as expected At this stage, you'll want to deploy something so that Calico can work it's magic. I recommend deploying the [guestbook](https://github.com/kubernetes/kubernetes/tree/master/examples/guestbook/all-in-one) to see all this in action. ## Routing Table Once you've deployed Calico and your guestbook, get the pod IP of the guestbook using `kubectl`: {% highlight bash %} kubectl get po -o wide NAME READY STATUS RESTARTS AGE IP NODE <API key> 1/1 Running 0 2m 192.168.15.195 node1 <API key> 1/1 Running 0 2m 192.168.228.195 node2 <API key> 1/1 Running 0 2m 192.168.175.195 node3 <API key> 1/1 Running 0 2m 192.168.0.130 node4 <API key> 1/1 Running 0 2m 192.168.71.1 node5 <API key> 1/1 Running 0 2m 192.168.105.65 node6 {% endhighlight %} If everything has worked correctly, you should be able to ping every pod from any host. Test this now: {% highlight bash %} ping -c 1 192.168.15.195 PING 192.168.15.195 (192.168.15.195) 56(84) bytes of data. 64 bytes from 192.168.15.195: icmp_seq=1 ttl=63 time=0.318 ms 192.168.15.195 ping statistics 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.318/0.318/0.318/0.000 ms {% endhighlight %} If you have [fping](http://fping.org/) and installed, you can verify all pods in one go: {% highlight bash %} kubectl get po -o json | jq .items[].status.podIP -r | fping 192.168.15.195 is alive 192.168.228.195 is alive 192.168.175.195 is alive 192.168.0.130 is alive 192.168.71.1 is alive 192.168.105.65 is alive {% endhighlight %} The real question is, how did this actually work? How come I can ping these endpoints? The answer becomes obvious if you print the routing table: {% highlight bash %} ip route default via 172.29.132.1 dev eth0 169.254.0.0/16 dev eth0 scope link metric 1002 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 172.29.132.0/24 dev eth0 proto kernel scope link src 172.29.132.127 172.29.132.1 dev eth0 scope link 192.168.0.128/26 via 172.29.141.98 dev tunl0 proto bird onlink 192.168.15.192/26 via 172.29.141.95 dev tunl0 proto bird onlink blackhole 192.168.33.0/26 proto bird 192.168.71.0/26 via 172.29.141.105 dev tunl0 proto bird onlink 192.168.105.64/26 via 172.29.141.97 dev tunl0 proto bird onlink 192.168.175.192/26 via 172.29.141.102 dev tunl0 proto bird onlink 192.168.228.192/26 via 172.29.141.96 dev tunl0 proto bird onlink {% endhighlight %} A lot has happened here, so let's break it down in sections. Subnets Each host that has calico/node running on it has its own `/26` subnet. You can verify this by looking in etcd: {% highlight bash %} etcdctl ls /calico/ipam/v2/host/node1/ipv4/block/ /calico/ipam/v2/host/node1/ipv4/block/192.168.228.192-26 {% endhighlight %} So in this case, the host node1 has been allocated the subnet `192.168.228.192-26`. Any new host that starts up, connects to kubernetes and has a calico/node container running on it, will get one of those subnets. This is a fairly standard model in Kubernetes networking. What differs here is how Calico handles it. Let's go back to our routing table and look at the entry for that subnet: {% highlight bash %} 192.168.228.192/26 via 172.29.141.96 dev tunl0 proto bird onlink {% endhighlight %} What's happened here is that calico-felix has read etcd, and determined that the ip address of node1 is `172.29.141.96`. Calico now knows the IP address of the host, and also the pod subnet assigned to it. With this information, it programs routes on _every node_ in the kubernetes cluster. It says "if you want to hit something in this subnet, go via the ip address `x` over the tunl0 interface. The tunl0 interface _may not_ be present on your host. It exists here because I've enabled IPIP encapsulation in Calico for the sake of testing. Destination Host Now, the packets know their destination. They have a route defined and they know they should head directly via the interface of the node. What happens then, when they arrive there? The answer again, is in the routing table. On the host the pod has been scheduled on, print the routing table again: {% highlight bash %} ip route default via 172.29.132.1 dev eth0 169.254.0.0/16 dev eth0 scope link metric 1002 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 172.29.132.0/24 dev eth0 proto kernel scope link src 172.29.132.127 172.29.132.1 dev eth0 scope link 192.168.0.128/26 via 172.29.141.98 dev tunl0 proto bird onlink 192.168.15.192/26 via 172.29.141.95 dev tunl0 proto bird onlink blackhole 192.168.33.0/26 proto bird 192.168.71.0/26 via 172.29.141.105 dev tunl0 proto bird onlink 192.168.105.64/26 via 172.29.141.97 dev tunl0 proto bird onlink 192.168.175.192/26 via 172.29.141.102 dev tunl0 proto bird onlink 192.168.228.192/26 via 172.29.141.96 dev tunl0 proto bird onlink 192.168.228.195 dev cali7b262072819 scope link {% endhighlight %} There's an extra route! You can see, there's the pod IP has the destination and it's telling the OS to route it via a device, `cali7b262072819`. Let's have a look at the interfaces: {% highlight bash %} 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 3: eth1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT qlen 1000 link/ether 00:25:90:62:ed:c6 brd ff:ff:ff:ff:ff:ff 4: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT link/ether 00:25:90:62:ed:c6 brd ff:ff:ff:ff:ff:ff 5: cali7b262072819@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT link/ether 32:e9:d2:f3:17:0f brd ff:ff:ff:ff:ff:ff link-netnsid 4 {% endhighlight %} There's an interface for our pod! When the container spun up, calico (via [CNI](https://github.com/containernetworking/cni)) created an interface for us and assigned it to the pod. How did it do that? ## CNI The answer lies in the setup of Calico. If you examine the yaml you installed when you installed Calico, you'll see a setup task which runs on every container. That uses a configmap, which looks like this {% highlight yaml %} # This ConfigMap is used to configure a self-hosted Calico installation. kind: ConfigMap apiVersion: v1 metadata: name: calico-config namespace: kube-system data: # The location of your etcd cluster. This uses the Service clusterIP # defined below. etcd_endpoints: "http://10.96.232.136:6666" # True enables BGP networking, false tells Calico to enforce # policy only, using native networking. enable_bgp: "true" # The CNI network configuration to install on each node. cni_network_config: |- { "name": "k8s-pod-network", "type": "calico", "etcd_endpoints": "__ETCD_ENDPOINTS__", "log_level": "info", "ipam": { "type": "calico-ipam" }, "policy": { "type": "k8s", "k8s_api_root": "https://<API key>:<API key>", "k8s_auth_<API key> }, "kubernetes": { "kubeconfig": "/etc/cni/net.d/<API key>" } } # The default IP Pool to be created for the cluster. # Pod IP addresses will be assigned from this pool. ippool.yaml: | apiVersion: v1 kind: ipPool metadata: cidr: 192.168.0.0/16 spec: ipip: enabled: true nat-outgoing: true {% endhighlight %} This manifests itself in the `/etc/cni/net.d` directory on every host: {% highlight bash %} ls /etc/cni/net.d/ 10-calico.conf calico-kubeconfig calico-tls {% endhighlight %} So essentially, when a new pod starts up, Calico will: * query the kubernetes API to determine the pod exists and that it's on this node * assigns the pod an IP address from within its IPAM * create an interface on the host so that the container can get an address * tell the kubernetes API about this new IP Magic! ## IPTables The final piece of the puzzle here is some IPTables magic. As mentioned earlier, Calico has support for network policy. Even if you're not actively _using_ the policy components, it still exists, and you need some default policy for connectivity is work. If you look at the output of `iptables -L` you'll see a familiar string: {% highlight bash %} **Chain <API key> (1 references) target prot opt source destination MARK all -- anywhere anywhere MARK and 0xfeffffff MARK all -- anywhere anywhere /* Start of tier default */ MARK and 0xfdffffff <API key> all -- anywhere anywhere mark match 0x0/0x2000000 RETURN all -- anywhere anywhere mark match 0x1000000/0x1000000 /* Return if policy accepted */ DROP all -- anywhere anywhere mark match 0x0/0x2000000 /* Drop if no policy in tier passed */ felix-p-k8s_ns.default-i all -- anywhere anywhere RETURN all -- anywhere anywhere mark match 0x1000000/0x1000000 /* Profile accepted packet */ DROP all -- anywhere anywhere /* Packet did not match any profile (endpoint eth0) */ {% endhighlight %} The IPtables chain here has the same string at the calico interface. This iptables rule is vital for calico to pass the packets onto the container. It grabs the packet destined for the container, determines if it should be allowed and sends it on its way if it is. If this chain doesn't exist, it gets captured by the default policy, and the packet will be dropped. It's `calico-felix` that programs these rules. # Wrap Up Hopefully, you now have a better knowledge of how exactly Calico gets the job done. At its core, it's actually relatively simple, simply ip routes on each host. What it does it take the difficult in managing those routes away from you, giving you a simple, easy solution to container networking.
/*global Backbone:true */ 'use strict'; // Require.js allows us to configure shortcut alias require.config({ paths: { backbone: 'lib/backbone', localstorage: 'lib/backbone.localstorage', jed: 'lib/jed', // jsmad: 'lib/jsmad', // indexedDB: 'lib/indexeddb', install: 'lib/install', // sink: 'lib/sink', tpl: 'lib/tpl', underscore: 'lib/lodash', zepto: 'lib/zepto' }, // The shim config allows us to configure dependencies for // scripts that do not call define() to register a module shim: { 'backbone': { deps: [ 'underscore', 'zepto' ], exports: 'Backbone' }, // 'jsmad': { // deps: [ // 'sink' // exports: 'Mad' // 'indexedDB': { // exports: 'indexedDB' // 'sink': { // exports: 'Sink' 'underscore': { exports: '_' }, 'zepto': { exports: 'Zepto' } } }); require([ 'app', 'routers/app' ], function(App, AppRouter) { function init() { // Initialize routing and start Backbone.history() var router = new AppRouter(); window.router = router; Backbone.history.start(); } App.initialize(init); });
import Promise from 'bluebird'; import mongoose from 'mongoose'; import DateProcess from '../Helpers/DateProcess'; // const debug = require('debug')('chatify-server:index'); const Schema = mongoose.Schema; const ObjectId = Schema.ObjectId; const Message = new Schema({ roomId: { type: ObjectId, required: [true, 'Room is required'], ref: 'Room' }, userId: { type: ObjectId, required: [true, 'User is required'], ref: 'User' }, message: { type: String }, location: { type: [Number], // longitude is x-axis and latitude is y-axis index: '2dsphere' }, type: { type: String, default: 'text' }, created: { type: Date, default: Date.now } }); /** * Add your * - pre-save hooks * - validations * - virtuals */ /** * Methods */ Message.method({ }); /** * Statics */ Message.statics = { /** * Add Message * @params params * @return Promise */ add(params) { const saveParams = params; const message = new this(saveParams); return message.save(); }, del(params) { return this.remove(params).exec(); }, /** * get statics - Get array of Message objects * * @params params - Json Object designed to query the Collection * @return Promise * */ get(params, recursive = 1) { const queryParams = params.queryParams; const offset = parseInt(params.paginate.offset, 10); const limit = parseInt(params.paginate.limit, 10); const Model = this; const queryObject = Model.find(queryParams) .lean(); if (recursive === 1) { queryObject .populate({ path: '_room_id' }) .populate({ path: '_user_id' }); } queryObject .sort({ _id: 'desc' }) .skip(offset) .limit(limit) .exec(); return queryObject .then((messages) => { if (messages.length) { const processedMessages = messages.map(message => this.processDate(message)); return Promise.all(processedMessages); } return Promise.resolve(messages); }) .catch(err => Promise.reject(err)); }, /** * getOne statics - Get a Message object * * @params params - Json Object designed to query the Collection * @return Promise * */ getOne(params, recursive = 1) { const Model = this; const queryObject = Model.findOne(params) .lean(); if (recursive === 0) { queryObject.exec(); } if (recursive === 1) { queryObject.populate({ path: '_room_id' }) .populate({ path: '_user_id' }) .exec(); } return queryObject .then((message) => { if (message) { return Model.processDate(message); } return Promise.resolve(message); }) .catch(err => Promise.reject(err)); }, processDate(obj) { const returnObj = obj; const processedDate = new DateProcess(returnObj.created); returnObj.created = processedDate.date; return Promise.resolve(returnObj); }, lastMessage(params) { const Model = this; const queryParams = { queryParams: params, paginate: { offset: 0, limit: 1 } }; return Model.get(queryParams); } }; /** * @typedef Message */ export default mongoose.model('Message', Message);
package is.hail.types.physical import is.hail.annotations._ import is.hail.asm4s._ import is.hail.expr.ir.{EmitCodeBuilder, EmitMethodBuilder, IEmitCode} import is.hail.types.physical.stypes.interfaces.{SIndexableCode, SIndexableValue} abstract class PContainer extends PIterable { override def containsPointers: Boolean = true def elementByteSize: Long def contentsAlignment: Long def loadLength(aoff: Long): Int def loadLength(aoff: Code[Long]): Code[Int] def storeLength(aoff: Code[Long], length: Code[Int]): Code[Unit] def nMissingBytes(len: Code[Int]): Code[Int] def lengthHeaderBytes: Long def elementsOffset(length: Int): Long def elementsOffset(length: Code[Int]): Code[Long] def isElementMissing(aoff: Long, i: Int): Boolean def isElementDefined(aoff: Long, i: Int): Boolean def isElementMissing(aoff: Code[Long], i: Code[Int]): Code[Boolean] def isElementDefined(aoff: Code[Long], i: Code[Int]): Code[Boolean] def setElementMissing(aoff: Long, i: Int) def setElementMissing(aoff: Code[Long], i: Code[Int]): Code[Unit] def setElementPresent(aoff: Long, i: Int) def setElementPresent(aoff: Code[Long], i: Code[Int]): Code[Unit] def firstElementOffset(aoff: Long, length: Int): Long def elementOffset(aoff: Long, length: Int, i: Int): Long def elementOffset(aoff: Long, i: Int): Long def elementOffset(aoff: Code[Long], length: Code[Int], i: Code[Int]): Code[Long] def elementOffset(aoff: Code[Long], i: Code[Int]): Code[Long] def firstElementOffset(aoff: Code[Long], length: Code[Int]): Code[Long] def firstElementOffset(aoff: Code[Long]): Code[Long] def loadElement(aoff: Long, length: Int, i: Int): Long def loadElement(aoff: Long, i: Int): Long def loadElement(aoff: Code[Long], i: Code[Int]): Code[Long] def loadElement(aoff: Code[Long], length: Code[Int], i: Code[Int]): Code[Long] def allocate(region: Region, length: Int): Long def allocate(region: Code[Region], length: Code[Int]): Code[Long] def setAllMissingBits(aoff: Long, length: Int) def clearMissingBits(aoff: Long, length: Int) def initialize(aoff: Long, length: Int, setMissing: Boolean = false) def stagedInitialize(aoff: Code[Long], length: Code[Int], setMissing: Boolean = false): Code[Unit] def zeroes(region: Region, length: Int): Long def zeroes(mb: EmitMethodBuilder[_], region: Value[Region], length: Code[Int]): Code[Long] def forEach(mb: EmitMethodBuilder[_], aoff: Code[Long], body: Code[Long] => Code[Unit]): Code[Unit] def hasMissingValues(sourceOffset: Code[Long]): Code[Boolean] def nextElementAddress(currentOffset: Long): Long def nextElementAddress(currentOffset: Code[Long]): Code[Long] } abstract class PIndexableValue extends PValue with SIndexableValue abstract class PIndexableCode extends PCode with SIndexableCode { def pt: PContainer def memoize(cb: EmitCodeBuilder, name: String): PIndexableValue def memoizeField(cb: EmitCodeBuilder, name: String): PIndexableValue }
# Web Worker API Shared Web WorkersService Workers Web Worker`importScripts()` [Instagram JS Filter][01] text ../instagram_js_filter/js filter.canvas.js filter.js lagrange.js worker.filter.js worker.js ← worker.util.js worker.jsworker.filter.jsworker.util.jslagrange.js OK javascript importScripts( 'worker.filter.js', 'worker.util.js', 'lagrange.js' ); [MDN][02] [01]:https://github.com/KENJU/instagram_js_filter/blob/master/js/worker.js [02]:https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers#<API key> ## Debug Web Workers Shared Web Workers`console.log()` ChromeWeb Workers URLShared Workersinspect - chrome://inspect/#workers Devloper ToolsPane PaneShared Web Workers Console`console.log()` ## CanvasProxy canvasWorker `CanvasProxy``<API key>()` - [CanvasProxy][21] text canvasProxy = canvas . <API key>(): Returns a CanvasProxy object that can be used to transfer control for this canvas over to another document (e.g. an iframe from another origin) or to a worker. Throws an InvalidStateError exception if the getContext() or setContext() methods have been used. canvasProxy . setContext(context): Sets the CanvasProxy object's canvas element's rendering context to the given object. Throws an InvalidStateError exception if the CanvasProxy has been transferred. UI javascript var canvas = document.<API key>('canvas')[0]; var proxy = canvas.<API key>(); var worker = new Worker('clock.js'); worker.postMessage(proxy, [proxy]); Worker javascript self.onmessage = function(event) { var context = new <API key>(); event.data.setContext(context); context.fillStyle = "red"; context.fillRect(...); }; [21]:https://html.spec.whatwg.org/multipage/scripting.html#<API key> ## Worker [@mohayonao][31] [4WebWorker][32]Qiita javascript var worker = new Worker("../path/to/worker.js"); Worker Worker javascript var worker = new Worker(scripts[scripts.length - 1].src); BlobWorker Inline Workers BlobWorker javascript var blob = new Blob([ "onmessage = function(e) { postMessage('msg from worker'); }"]); // WorkerBlob URL var blobURL = window.URL.createObjectURL(blob); var worker = new Worker(blobURL); [31]:https://github.com/mohayonao [32]:http://qiita.com/mohayonao/items/<API key> ## Shared Web Workers ## Service Workers ## JavaScript Promises
import {Component} from '@angular/core'; import {Direction} from '@angular/cdk/bidi'; @Component({ selector: '<API key>', templateUrl: './<API key>.component.html' }) export class <API key> { direction: Direction = 'ltr'; toggleDirection() { this.direction = this.direction === 'ltr' ? 'rtl' : 'ltr'; } }
#![cfg_attr(feature = "unstable", feature(const_fn, drop_types_in_const))] #![cfg_attr(feature = "serde_derive", feature(proc_macro))] #![cfg_attr(feature = "nightly-testing", feature(plugin))] #![cfg_attr(feature = "nightly-testing", plugin(clippy))] #![cfg_attr(not(feature = "unstable"), deny(warnings))] extern crate inflector; #[macro_use] extern crate lazy_static; extern crate regex; extern crate serde; extern crate serde_json; #[cfg(feature = "serde_derive")] #[macro_use] extern crate serde_derive; #[cfg(not(feature = "serde_derive"))] extern crate serde_codegen; use std::fs::File; use std::io::{Write, BufReader, BufWriter}; use std::path::Path; use botocore::Service as BotocoreService; use generator::generate_source; mod botocore; mod generator; mod serialization; mod util; const BOTOCORE_DIR: &'static str = concat!(env!("CARGO_MANIFEST_DIR"), "/botocore/botocore/data/"); pub struct Service { name: String, protocol_date: String, } impl Service { pub fn new<S>(name: S, protocol_date: S) -> Self where S: Into<String> { Service { name: name.into(), protocol_date: protocol_date.into(), } } } pub fn generate(service: Service, output_path: &Path) { let <API key> = output_path.join(format!("{}_botocore.rs", service.name)); let <API key> = output_path.join(format!("{}.rs", service.name)); let <API key> = Path::new(BOTOCORE_DIR) .join(format!("{}/{}/service-2.json", service.name, service.protocol_date)); botocore_generate(<API key>.as_path(), <API key>.as_path()); serde_generate(<API key>.as_path(), <API key>.as_path()); } fn botocore_generate(input_path: &Path, output_path: &Path) { let input_file = File::open(input_path).expect(&format!( "{:?} not found", input_path, )); let <API key> = BufReader::new(input_file); let service: BotocoreService = serde_json::from_reader(<API key>).expect(&format!( "Could not convert JSON in {:?} to Service", input_path, )); let source_code = generate_source(&service); let output_file = File::create(output_path).expect(&format!( "Couldn't open file for writing: {:?}", output_path, )); let mut output_bufwriter = BufWriter::new(output_file); output_bufwriter.write_all(source_code.as_bytes()).expect(&format!( "Failed to write generated source code to {:?}", output_path, )); } #[cfg(not(feature = "serde_derive"))] fn serde_generate(source: &Path, destination: &Path) { ::serde_codegen::expand(&source, &destination).unwrap(); } #[cfg(feature = "serde_derive")] fn serde_generate(source: &Path, destination: &Path) { ::std::fs::copy(source, destination).expect(&format!( "Failed to copy {:?} to {:?}", source, destination, )); }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Circle - p2.js</title> <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css"> <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css"> <link rel="stylesheet" href="../assets/css/main.css" id="site_styles"> <link rel="shortcut icon" type="image/png" href="../assets/favicon.png"> <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script> </head> <body class="yui3-skin-sam"> <div id="doc"> <div id="hd" class="yui3-g header"> <div class="yui3-u-3-4"> <h1><img src="../assets/css/logo.png" title="p2.js"></h1> </div> <div class="yui3-u-1-4 version"> <em>API Docs for: 0.5.0</em> </div> </div> <div id="bd" class="yui3-g"> <div class="yui3-u-1-4"> <div id="docs-sidebar" class="sidebar apidocs"> <div id="api-list"> <h2 class="off-left">APIs</h2> <div id="api-tabview" class="tabview"> <ul class="tabs"> <li><a href="#api-classes">Classes</a></li> <li><a href="#api-modules">Modules</a></li> </ul> <div id="api-tabview-filter"> <input type="search" id="api-filter" placeholder="Type to filter APIs"> </div> <div id="api-tabview-panel"> <ul id="api-classes" class="apis classes"> <li><a href="../classes/AABB.html">AABB</a></li> <li><a href="../classes/AngleLockEquation.html">AngleLockEquation</a></li> <li><a href="../classes/Body.html">Body</a></li> <li><a href="../classes/Broadphase.html">Broadphase</a></li> <li><a href="../classes/Capsule.html">Capsule</a></li> <li><a href="../classes/Circle.html">Circle</a></li> <li><a href="../classes/Constraint.html">Constraint</a></li> <li><a href="../classes/ContactEquation.html">ContactEquation</a></li> <li><a href="../classes/ContactMaterial.html">ContactMaterial</a></li> <li><a href="../classes/Convex.html">Convex</a></li> <li><a href="../classes/DistanceConstraint.html">DistanceConstraint</a></li> <li><a href="../classes/Equation.html">Equation</a></li> <li><a href="../classes/EventEmitter.html">EventEmitter</a></li> <li><a href="../classes/FrictionEquation.html">FrictionEquation</a></li> <li><a href="../classes/GearConstraint.html">GearConstraint</a></li> <li><a href="../classes/GridBroadphase.html">GridBroadphase</a></li> <li><a href="../classes/GSSolver.html">GSSolver</a></li> <li><a href="../classes/Heightfield.html">Heightfield</a></li> <li><a href="../classes/Island.html">Island</a></li> <li><a href="../classes/IslandManager.html">IslandManager</a></li> <li><a href="../classes/IslandNode.html">IslandNode</a></li> <li><a href="../classes/Line.html">Line</a></li> <li><a href="../classes/LockConstraint.html">LockConstraint</a></li> <li><a href="../classes/Material.html">Material</a></li> <li><a href="../classes/NaiveBroadphase.html">NaiveBroadphase</a></li> <li><a href="../classes/Narrowphase.html">Narrowphase</a></li> <li><a href="../classes/Particle.html">Particle</a></li> <li><a href="../classes/Plane.html">Plane</a></li> <li><a href="../classes/PrismaticConstraint.html">PrismaticConstraint</a></li> <li><a href="../classes/Rectangle.html">Rectangle</a></li> <li><a href="../classes/RevoluteConstraint.html">RevoluteConstraint</a></li> <li><a href="../classes/<API key>.html"><API key></a></li> <li><a href="../classes/<API key>.html"><API key></a></li> <li><a href="../classes/SAPBroadphase.html">SAPBroadphase</a></li> <li><a href="../classes/Shape.html">Shape</a></li> <li><a href="../classes/Solver.html">Solver</a></li> <li><a href="../classes/Spring.html">Spring</a></li> <li><a href="../classes/Utils.html">Utils</a></li> <li><a href="../classes/vec2.html">vec2</a></li> <li><a href="../classes/World.html">World</a></li> </ul> <ul id="api-modules" class="apis modules"> </ul> </div> </div> </div> </div> </div> <div class="yui3-u-3-4"> <div id="api-options"> Show: <label for="api-show-inherited"> <input type="checkbox" id="api-show-inherited" checked> Inherited </label> <label for="api-show-protected"> <input type="checkbox" id="api-show-protected"> Protected </label> <label for="api-show-private"> <input type="checkbox" id="api-show-private"> Private </label> <label for="api-show-deprecated"> <input type="checkbox" id="api-show-deprecated"> Deprecated </label> </div> <div class="apidocs"> <div id="docs-main"> <div class="content"> <h1>Circle Class</h1> <div class="box meta"> <div class="extends"> Extends <a href="../classes/Shape.html" class="crosslink">Shape</a> </div> <div class="foundat"> Defined in: <a href="../files/src_shapes_Circle.js.html#l6"><code>src&#x2F;shapes&#x2F;Circle.js:6</code></a> </div> </div> <div class="box intro"> <p>Circle shape class.</p> </div> <div class="constructor"> <h2>Constructor</h2> <div id="method_Circle" class="method item"> <h3 class="name"><code>Circle</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code class="optional">[radius=1]</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p> Defined in <a href="../files/src_shapes_Circle.js.html#l6"><code>src&#x2F;shapes&#x2F;Circle.js:6</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name optional">[radius=1]</code> <span class="type">Number</span> <span class="flag optional" title="This parameter is optional.">optional</span> <div class="param-description"> <p>The radius of this circle</p> </div> </li> </ul> </div> </div> </div> <div id="classdocs" class="tabview"> <ul class="api-class-tabs"> <li class="api-class-tab index"><a href="#index">Index</a></li> <li class="api-class-tab methods"><a href="#methods">Methods</a></li> <li class="api-class-tab properties"><a href="#properties">Properties</a></li> </ul> <div> <div id="index" class="api-class-tabpanel index"> <h2 class="off-left">Item Index</h2> <div class="index-section methods"> <h3>Methods</h3> <ul class="index-list methods extends"> <li class="index-item method inherited"> <a href="#method_computeAABB">computeAABB</a> </li> <li class="index-item method inherited"> <a href="#<API key>"><API key></a> </li> <li class="index-item method inherited"> <a href="#method_updateArea">updateArea</a> </li> <li class="index-item method inherited"> <a href="#<API key>"><API key></a> </li> </ul> </div> <div class="index-section properties"> <h3>Properties</h3> <ul class="index-list properties extends"> <li class="index-item property inherited"> <a href="#property_area">area</a> </li> <li class="index-item property inherited"> <a href="#<API key>">boundingRadius</a> </li> <li class="index-item property inherited"> <a href="#<API key>">collisionGroup</a> </li> <li class="index-item property inherited"> <a href="#<API key>">collisionMask</a> </li> <li class="index-item property inherited"> <a href="#property_id">id</a> </li> <li class="index-item property inherited"> <a href="#property_material">material</a> </li> <li class="index-item property"> <a href="#property_radius">radius</a> </li> <li class="index-item property inherited"> <a href="#property_sensor">sensor</a> </li> <li class="index-item property inherited"> <a href="#property_type">type</a> </li> </ul> </div> </div> <div id="methods" class="api-class-tabpanel"> <h2 class="off-left">Methods</h2> <div id="method_computeAABB" class="method item"> <h3 class="name"><code>computeAABB</code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>out</code> </li> <li class="arg"> <code>position</code> </li> <li class="arg"> <code>angle</code> </li> </ul><span class="paren">)</span> </div> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#method_computeAABB"> Shape </a> but overwritten in <a href="../files/src_shapes_Circle.js.html#l52"><code>src&#x2F;shapes&#x2F;Circle.js:52</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">out</code> <span class="type"><a href="../classes/AABB.html" class="crosslink">AABB</a></span> <div class="param-description"> <p>The resulting AABB.</p> </div> </li> <li class="param"> <code class="param-name">position</code> <span class="type">Array</span> <div class="param-description"> </div> </li> <li class="param"> <code class="param-name">angle</code> <span class="type">Number</span> <div class="param-description"> </div> </li> </ul> </div> </div> <div id="<API key>" class="method item"> <h3 class="name"><code><API key></code></h3> <div class="args"> <span class="paren">(</span><ul class="args-list inline commas"> <li class="arg"> <code>mass</code> </li> </ul><span class="paren">)</span> </div> <span class="returns-inline"> <span class="type">Number</span> </span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#<API key>"> Shape </a> but overwritten in <a href="../files/src_shapes_Circle.js.html#l26"><code>src&#x2F;shapes&#x2F;Circle.js:26</code></a> </p> </div> <div class="description"> </div> <div class="params"> <h4>Parameters:</h4> <ul class="params-list"> <li class="param"> <code class="param-name">mass</code> <span class="type">Number</span> <div class="param-description"> </div> </li> </ul> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Number</span>: </div> </div> </div> <div id="method_updateArea" class="method item"> <h3 class="name"><code>updateArea</code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type">Number</span> </span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#method_updateArea"> Shape </a> but overwritten in <a href="../files/src_shapes_Circle.js.html#l44"><code>src&#x2F;shapes&#x2F;Circle.js:44</code></a> </p> </div> <div class="description"> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Number</span>: </div> </div> </div> <div id="<API key>" class="method item"> <h3 class="name"><code><API key></code></h3> <span class="paren">()</span> <span class="returns-inline"> <span class="type">Number</span> </span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#<API key>"> Shape </a> but overwritten in <a href="../files/src_shapes_Circle.js.html#l36"><code>src&#x2F;shapes&#x2F;Circle.js:36</code></a> </p> </div> <div class="description"> </div> <div class="returns"> <h4>Returns:</h4> <div class="returns-description"> <span class="type">Number</span>: </div> </div> </div> </div> <div id="properties" class="api-class-tabpanel"> <h2 class="off-left">Properties</h2> <div id="property_area" class="property item inherited"> <h3 class="name"><code>area</code></h3> <span class="type">Number</span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#property_area">Shape</a>: <a href="../files/src_shapes_Shape.js.html#l87"><code>src&#x2F;shapes&#x2F;Shape.js:87</code></a> </p> </div> <div class="description"> <p>Area of this shape.</p> </div> </div> <div id="<API key>" class="property item inherited"> <h3 class="name"><code>boundingRadius</code></h3> <span class="type">Number</span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#<API key>">Shape</a>: <a href="../files/src_shapes_Shape.js.html#l34"><code>src&#x2F;shapes&#x2F;Shape.js:34</code></a> </p> </div> <div class="description"> <p>Bounding circle radius of this shape</p> </div> </div> <div id="<API key>" class="property item inherited"> <h3 class="name"><code>collisionGroup</code></h3> <span class="type">Number</span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#<API key>">Shape</a>: <a href="../files/src_shapes_Shape.js.html#l41"><code>src&#x2F;shapes&#x2F;Shape.js:41</code></a> </p> </div> <div class="description"> <p>Collision group that this shape belongs to (bit mask). See <a href="http: </div> <div class="example"> <h4>Example:</h4> <div class="example-content"> <pre class="code prettyprint"><code>// Setup bits for each available group var PLAYER = Math.pow(2,0), ENEMY = Math.pow(2,1), GROUND = Math.pow(2,2) // Put shapes into their groups player1Shape.collisionGroup = PLAYER; player2Shape.collisionGroup = PLAYER; enemyShape .collisionGroup = ENEMY; groundShape .collisionGroup = GROUND; // Assign groups that each shape collide with. // Note that the players can collide with ground and enemies, but not with other players. player1Shape.collisionMask = ENEMY | GROUND; player2Shape.collisionMask = ENEMY | GROUND; enemyShape .collisionMask = PLAYER | GROUND; groundShape .collisionMask = PLAYER | ENEMY;</code></pre> <pre class="code prettyprint"><code>// How collision check is done if(shapeA.collisionGroup &amp; shapeB.collisionMask)!=0 &amp;&amp; (shapeB.collisionGroup &amp; shapeA.collisionMask)!=0){ // The shapes will collide }</code></pre> </div> </div> </div> <div id="<API key>" class="property item inherited"> <h3 class="name"><code>collisionMask</code></h3> <span class="type">Number</span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#<API key>">Shape</a>: <a href="../files/src_shapes_Shape.js.html#l72"><code>src&#x2F;shapes&#x2F;Shape.js:72</code></a> </p> </div> <div class="description"> <p>Collision mask of this shape. See .collisionGroup.</p> </div> </div> <div id="property_id" class="property item inherited"> <h3 class="name"><code>id</code></h3> <span class="type">Number</span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#property_id">Shape</a>: <a href="../files/src_shapes_Shape.js.html#l27"><code>src&#x2F;shapes&#x2F;Shape.js:27</code></a> </p> </div> <div class="description"> <p>Shape object identifier.</p> </div> </div> <div id="property_material" class="property item inherited"> <h3 class="name"><code>material</code></h3> <span class="type"><a href="../classes/Material.html" class="crosslink">Material</a></span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#property_material">Shape</a>: <a href="../files/src_shapes_Shape.js.html#l80"><code>src&#x2F;shapes&#x2F;Shape.js:80</code></a> </p> </div> <div class="description"> <p>Material to use in collisions for this Shape. If this is set to null, the world will use default material properties instead.</p> </div> </div> <div id="property_radius" class="property item"> <h3 class="name"><code>radius</code></h3> <span class="type">Number</span> <div class="meta"> <p> Defined in <a href="../files/src_shapes_Circle.js.html#l15"><code>src&#x2F;shapes&#x2F;Circle.js:15</code></a> </p> </div> <div class="description"> <p>The radius of the circle.</p> </div> </div> <div id="property_sensor" class="property item inherited"> <h3 class="name"><code>sensor</code></h3> <span class="type">Boolean</span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#property_sensor">Shape</a>: <a href="../files/src_shapes_Shape.js.html#l94"><code>src&#x2F;shapes&#x2F;Shape.js:94</code></a> </p> </div> <div class="description"> <p>Set to true if you want this shape to be a sensor. A sensor does not generate contacts, but it still reports contact events. This is good if you want to know if a shape is overlapping another shape, without them generating contacts.</p> </div> </div> <div id="property_type" class="property item inherited"> <h3 class="name"><code>type</code></h3> <span class="type">Number</span> <div class="meta"> <p>Inherited from <a href="../classes/Shape.html#property_type">Shape</a>: <a href="../files/src_shapes_Shape.js.html#l11"><code>src&#x2F;shapes&#x2F;Shape.js:11</code></a> </p> </div> <div class="description"> <p>The type of the shape. One of:</p> <ul> <li><a href="../classes/Shape.html#property_CIRCLE" class="crosslink">Shape.CIRCLE</a></li> <li><a href="../classes/Shape.html#property_PARTICLE" class="crosslink">Shape.PARTICLE</a></li> <li><a href="../classes/Shape.html#property_PLANE" class="crosslink">Shape.PLANE</a></li> <li><a href="../classes/Shape.html#property_CONVEX" class="crosslink">Shape.CONVEX</a></li> <li><a href="../classes/Shape.html#property_LINE" class="crosslink">Shape.LINE</a></li> <li><a href="../classes/Shape.html#property_RECTANGLE" class="crosslink">Shape.RECTANGLE</a></li> <li><a href="../classes/Shape.html#property_CAPSULE" class="crosslink">Shape.CAPSULE</a></li> <li><a href="../classes/Shape.html#<API key>" class="crosslink">Shape.HEIGHTFIELD</a></li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <script src="../assets/vendor/prettify/prettify-min.js"></script> <script>prettyPrint();</script> <script src="../assets/js/yui-prettify.js"></script> <script src="../assets/../api.js"></script> <script src="../assets/js/api-filter.js"></script> <script src="../assets/js/api-list.js"></script> <script src="../assets/js/api-search.js"></script> <script src="../assets/js/apidocs.js"></script> </body> </html>
import Ember from 'ember'; import SerialPort from '../utils/serial-port'; const { Service, computed } = Ember; const { Promise } = Ember.RSVP; export default Service.extend({ serialPortFactory: window.require("serialport"), init() { this.set('ports', {}); }, baudRate: 9600, dataBits: 8, stopBits: 1, parity: "none", flowControl: false, rtscts: false, xon: false, xoff: false, xany: false, hupcl: true, rts: true, cts: false, dtr: true, dts: false, brk: false, bufferSize: 255, fetchPorts() { let serialPortFactory = this.get('serialPortFactory'); return new Promise((resolve, reject) => { serialPortFactory.list((error, ports) => { if(error) { reject(error); } else { resolve(ports.mapBy('comName')); } }); }); }, open(port, dataHandler, options = {}) { let defaults = this.getProperties([ 'baudRate', 'dataBits', 'stopBits', 'parity', 'rtscts', 'xon', 'xoff', 'xany', 'flowControl', 'bufferSize' ]); options = Ember.merge(options, defaults); let ports = this.get('ports'); if(ports[port]) { return null; // TODO throw error } let driver = SerialPort.create(); ports[port] = driver; return driver.open(this, port, dataHandler, options); }, close(port) { let ports = this.get('ports'); delete ports[port]; } });
<?php namespace App\Http\Controllers\business; use App\User; use App\Helpers\File; use App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Session; class <API key> extends controller { public function certificate($action = '', $id= '') { $table = __FUNCTION__; return $this->relatedToNewsCats($table, $action, $id); } }
NAME=<API key> URLS=ftp://ftp.ncbi.nih.gov/genomes/<API key>/CHR_Un/<API key>.fa.gz source getter.sh
using System; using CasualMeter.Core.Helpers; using Lunyx.Common.UI.Wpf.Collections; using Nicenis.ComponentModel; using Tera.Game; namespace CasualMeter.Tracker { public class PlayerInfo : PropertyObservable { public DamageTracker Tracker { get; private set; } public Player Player { get; private set; } public string Name => Player.Name; public string FullName => Player.FullName; public PlayerClass Class => Player.Class; public bool Healer => Player.IsHealer; public <API key><SkillResult> SkillLog { get; private set; } public DateTime EncounterStartTime => Tracker.FirstAttack ?? DateTime.Now; public SkillStats Received { get; private set; } public SkillStats Dealt { get; private set; } public PlayerInfo(Player user, DamageTracker tracker) { Tracker = tracker; Player = user; SkillLog = new <API key><SkillResult>(); Received = new SkillStats(tracker, SkillLog); Dealt = new SkillStats(tracker, SkillLog); } public void LogSkillUsage(SkillResult result) { SkillLog.Add(result); } public override bool Equals(object obj) { var other = obj as PlayerInfo; return Player.PlayerId.Equals(other?.Player.PlayerId); } public override int GetHashCode() { return Player.PlayerId.GetHashCode(); } } }
package mapleroad; import java.io.IOException; import java.util.Iterator; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapred.MapReduceBase; import org.apache.hadoop.mapred.OutputCollector; import org.apache.hadoop.mapred.Reducer; import org.apache.hadoop.mapred.Reporter; import org.jruby.Ruby; import org.jruby.RubyRuntimeAdapter; import org.jruby.javasupport.JavaEmbedUtils; import org.jruby.javasupport.JavaUtil; import org.jruby.runtime.Helpers; import org.jruby.runtime.builtin.IRubyObject; public class MapleRoadReducer extends MapReduceBase implements Reducer<Text, Text, Text, Text> { private String reducer_code = null; private Text keyText = new Text(); private Text valueText = new Text(); @Override public void configure(JobConf job) { reducer_code = job.get("reducer.code"); } @Override public void reduce(Text key, Iterator<Text> values, OutputCollector<Text, Text> outputCollector, Reporter arg3) throws IOException {; Ruby runtime = Ruby.getGlobalRuntime(); RubyRuntimeAdapter adapter = JavaEmbedUtils.newRuntimeAdapter(); IRubyObject receiver = adapter.eval(runtime, reducer_code); IRubyObject rubyKey = JavaUtil.convertJavaToRuby(runtime, key); IRubyObject rubyValues = JavaUtil.convertJavaToRuby(runtime, values); MapleRoadCollector collector = new MapleRoadCollector(keyText, valueText, outputCollector); IRubyObject rubyCollector = JavaUtil.convertJavaToRuby(runtime, collector); Helpers.invoke(runtime.getCurrentContext(), receiver, "reduce", rubyKey, rubyValues, rubyCollector); } }
const toolingPresetVue = require('../') test('main', () => { expect(typeof toolingPresetVue).toBe('function') })
#ifndef <API key> #define <API key> #include <Vuforia/View.h> #include <Vuforia/ViewList.h> #include <Vuforia/Mesh.h> #include <Vuforia/Matrices.h> #include <Vuforia/Vectors.h> #include <Vuforia/ViewerParameters.h> namespace Vuforia { RenderingPrimitives class /** * This class provides rendering primitives to be used when building * virtual reality experiences with an external VR viewer. * * The transformation measurement unit used is the same as the one used * to define the target size (usually meters). */ class VUFORIA_API RenderingPrimitives { public: virtual ~RenderingPrimitives(); Copy constructor RenderingPrimitives(const RenderingPrimitives& other); Returns the set of views available for rendering from these primitives virtual ViewList& getRenderingViews() const; Returns a viewport for the given display in the format (x,y, width, height) virtual Vec4I getViewport(VIEW viewID) const; Returns a viewport for the given display in the format (x, y, width, height) normalized between 0 and 1 virtual Vec4F <API key>(VIEW viewID) const; Returns the projection matrix to use for the given view and the specified coordinate system virtual Matrix34F getProjectionMatrix( VIEW viewID, <API key> csType, bool <API key> = true) const; Returns the Field-of-View of the viewports managed by this RenderingPrimitives object /* The effective FOV is computed based on screen size and viewer maximum FOV, * so will vary according to the host device and viewer. * This is only meaningful for the LEFT and RIGHT views, and only when used with a ViewerProfile * The components of the returned vector representFOV half-angles measured from the eye axis in the order: * {left, right, bottom, top} * These values are measured in radians */ virtual const Vec4F getEffectiveFov(VIEW viewID) const; Returns the skew adjustments for a viewer that need to be applied to the projection matrix for a given co-ordinate system /* * Returns the offset of the eye axis relative to the centre of the viewport * This is normalised to the extents of the viewport, ie -1 to +1 * * The values returned are used to modify the left/right eye projection matrices to ensure * the eye axis is in the centre of the viewport. For the <API key> these * values replace elements 3 and 7. For the camera projection matrices you replace * elements 2 and 6 of the matrix with these values. */ virtual const Vec2F <API key>(VIEW viewID, <API key> csType) const; Returns an adjustment matrix needed to correct for the different position of display relative to the eye /** * The returned matrix is to be applied to the tracker pose matrix during rendering. * The adjustment matrix is in meters, if your scene is defined in another unit * you will need to adjust the matrix before use. */ virtual Matrix34F <API key>(VIEW viewID) const; Returns the video background texture size that has been used to calculate the mesh virtual const Vec2I <API key>() const; Returns the projection matrix to use when projecting the video background virtual Matrix34F <API key>( VIEW viewID, <API key> csType, bool <API key> = true) const; Returns a simple mesh suitable for rendering a video background texture virtual const Mesh& <API key>(VIEW viewID) const; Returns the recommended size to use when creating a texture to apply to the distortion mesh virtual const Vec2I <API key>(VIEW viewID) const; Returns a viewport for the given input to the distortion mesh in the format (x,y, width, height) virtual Vec4I <API key>(VIEW viewID) const; Returns a barrel distortion mesh for the given view virtual const Mesh& <API key>(VIEW viewID) const; protected: RenderingPrimitives(); class Impl; Impl* mImpl; }; } // namespace Vuforia #endif // <API key>
Imports SistFoncreagro.BussinessEntities Imports SistFoncreagro.DataAccess Public Class <API key> : Implements <API key> Dim factoryrepository As <API key> Public Sub New() factoryrepository = New <API key> End Sub Public Sub <API key>(ByVal idRequisito As Integer) Implements <API key>.<API key> factoryrepository.<API key>(idRequisito) End Sub Public Function <API key>() As System.Collections.Generic.List(Of BussinessEntities.RequisitoAdicional) Implements <API key>.<API key> Return factoryrepository.<API key>() End Function Public Function <API key>(ByVal IdPosicion As Integer) As System.Collections.Generic.List(Of BussinessEntities.RequisitoAdicional) Implements <API key>.<API key> Return factoryrepository.<API key>(IdPosicion) End Function Public Function <API key>(ByVal IdRequisito As Integer, ByVal IdPosicion As Integer) As BussinessEntities.RequisitoAdicional Implements <API key>.<API key> Return factoryrepository.<API key>(IdRequisito, IdPosicion) End Function Public Function <API key>(ByVal RequisitoAdicional As BussinessEntities.RequisitoAdicional) As Integer Implements <API key>.<API key> Return factoryrepository.<API key>(RequisitoAdicional) End Function End Class
## 0.3.2 (Aug 21, 2017) fix - fix `getNiceTickValues` when the number is a scientific notation ## 0.3.1 (Jun 11, 2017) fix - fix `getDigitCount` when the number is a scientific notation ## 0.3.0 (Mar 01, 2017) feat - Add new ticks function `<API key>` ## 0.2.3 (Feb 28, 2017) fix - Fix calculation precision of calculateStep, add Arithmetic.modulo ## 0.2.2 (Feb 28, 2017) fix - Fix calculation precision of calculateStep ## 0.2.1 (July 25, 2016) fix - Fix the precision of ticks for decimals ## 0.2.0 (July 25, 2016) feat - Support `allowDecimals` option ## 0.1.11 (July 19, 2016) fix - Tweak the strategy of calculating step of ticks ## 0.1.10 (July 07, 2016) deps - update deps and fix lint error ## 0.1.9 (April 08, 2016) fix - Fix ticks for interval [0, 0] ## 0.1.8 (Feb 04, 2016) refactor - Refactor the export method ## 0.1.7 (Feb 04, 2016) chore - Optimize npm script commands
""" Physics test sandbox for the space race game! Alistair Reid 2015 """ import matplotlib.pyplot as pl import matplotlib as mpl import numpy as np from numpy.linalg import norm from time import time, sleep import os def integrate(states, props, inp, walls, bounds, dt): """ Implementing 4th order Runge-Kutta for a time stationary DE. """ derivs = lambda y: physics(y, props, inp, walls, bounds) k1 = derivs(states) k2 = derivs(states + 0.5*k1*dt) k3 = derivs(states + 0.5*k2*dt) k4 = derivs(states + k3*dt) states += (k1 + 2*k2 + 2*k3 + k4)/6. * dt def physics(states, props, inp, walls, bounds): # Unpack state, input and property vectors P = states[:, :2] Th = states[:, 2:3] V = states[:, 3:5] W = states[:, 5:6] m = props[:, 0:1] I = props[:, 1:2] rad = props[:, 2:3] cd_a = props[:, 3:4] # coeff drag * area f = inp[:, :1] * np.hstack((np.cos(Th), np.sin(Th))) trq = inp[:, 1:2] n = P.shape[0] # Physics model parameters (hand tuned to feel right) rho = 0.1 # Air density (or absorb into cd_a?) k_elastic = 4000. # spring normal force spin_drag_ratio = 1.8 # spin drag to forward drag eps = 1e-5 # avoid divide by zero warnings mu = 0.05 # coefficient of friction (tangent force/normal force) mu_wall = 0.01 # wall friction param sigmoid = lambda x: -1 + 2./(1. + np.exp(-x)) # Compute drag f -= cd_a * rho * V * norm(V, axis=1)[:, np.newaxis] trq -= spin_drag_ratio*cd_a * rho * W * np.abs(W) * rad**2 # Inter-ship collisions checks = <API key>(P, 1.) # Apply test spatial hashing for i, j in checks: dP = P[j] - P[i] dist = norm(dP) + eps diameter = rad[i] + rad[j] if dist < diameter: # Direct collision: linear spring normal force f_magnitude = (diameter-dist)*k_elastic f_norm = f_magnitude * dP f[i] -= f_norm f[j] += f_norm # Spin effects (ask Al to draw a free body diagram) perp = np.array([-dP[1], dP[0]])/dist # surface perpendicular v_rel = rad[i]*W[i] + rad[j]*W[j] + np.dot(V[i] - V[j], perp) fric = f_magnitude * mu * sigmoid(v_rel) f_fric = fric * perp f[i] += f_fric f[j] -= f_fric trq[i] -= fric * rad[i] trq[j] -= fric * rad[j] # Wall collisions --> single body collisions wall_info = linear_interpolate(walls, bounds, P) # import IPython # IPython.embed() # exit() for i in range(n): dist = wall_info[i][0] - rad[i] if dist < 0: normal = wall_info[i][1:3] # Linear spring normal force f_norm_mag = -dist*k_elastic f[i] += f_norm_mag * normal # surface tangential force perp = [-normal[1], normal[0]] # points left 90 degrees v_rel = W[i] * rad[i] - np.dot(V[i], perp) fric = f_norm_mag * mu_wall * sigmoid(v_rel) f[i] += fric*perp trq[i] -= fric * rad[i] # Compose the gradient vector return np.hstack((V, W, f/m, trq/I)) def <API key>(P, r): # Use spatial hashing to shortlist possible collisions n = P.shape[0] all_cells = dict() # potential collisions checks = set() grid = r * 2. + 1e-5 # base off diameter offsets = r*np.array([[1,1],[1,-1], [-1,1], [-1,-1]]) for my_id in range(n): bins = [tuple(m) for m in np.floor((P[my_id] + offsets)/grid)] for bin in bins: if bin in all_cells: for friend in all_cells[bin]: checks.add((my_id, friend)) all_cells[bin].append(my_id) else: all_cells[bin] = [my_id] return checks def main(): resources = os.getcwd()[:-8]+'/mapbuilder/testmap_%s.npy' wnx = np.load(resources % 'wnormx') wny = np.load(resources % 'wnormy') norm = np.sqrt(wnx**2 + wny**2) + 1e-5 wnx /= norm wny /= norm wdist = np.load(resources % 'walldist') mapscale = 10 walls = np.dstack((wdist/mapscale, wnx, wny)) map_img = np.load(resources % 'occupancy') # 'walldist') all_shape = np.array(map_img.shape).astype(float) / mapscale bounds = [0, all_shape[1], 0, all_shape[0]] # map_img = 0.25*(map_img[::2, ::2] + map_img[1::2,::2] + \ # map_img[::2, 1::2] + map_img[1::2, 1::2]) spawn = np.array([25, 25])/2. # x, y spawn_size = 6/2. n = 30 masses = 1. + 2*np.random.random(n) masses[0] = 1. Is = 0.25*masses radius = np.ones(n) cda = np.ones(n) properties = np.vstack((masses, Is, radius, cda)).T colours = ['r', 'b', 'g', 'c', 'm', 'y'] colours = (colours * np.ceil(n/len(colours)))[:n] colours[0] = 'k' # x, y, th, vx, vy, w x0 = 2*(np.random.random(n) - 0.5) * spawn_size + spawn[0] y0 = 2*(np.random.random(n) - 0.5) * spawn_size + spawn[1] th0 = np.random.random(n) * np.pi * 2 vx0 = np.random.random(n) * 2 - 1 vy0 = np.random.random(n) * 2 - 1 w0 = np.random.random(n) * 2 - 1 states0 = np.vstack((x0, y0, th0, vx0, vy0, w0)).T # Set up our spaceships fig = pl.figure() ax = pl.subplot(111) # Draw the backdrop: mapview = pl.imshow(-map_img, extent=bounds, cmap=pl.cm.gray, origin='lower') cx = np.linspace(bounds[0], bounds[1], map_img.shape[1]) cy = np.linspace(bounds[2], bounds[3], map_img.shape[0]) cX, cY = np.meshgrid(cx, cy) pl.contour(cX, cY, map_img, 1) pl.show(block=False) fig.canvas.draw() background = [fig.canvas.copy_from_bbox(ax.bbox)] sprites = [] for s, col, r in zip(states0, colours, radius): vis = draw_outline(ax, s, col, r) sprites.append(vis) ax.set_xlim(bounds[0:2]) ax.set_ylim(bounds[2:4]) ax.set_aspect('equal') dt = 0.02 start_time = time() t = 0. states = states0 event_count = 0 frame_rate = 30. frame_time = 1./frame_rate next_draw = frame_time keys = set() def press(event): keys.add(event.key) def unpress(event): keys.remove(event.key) def redo_background(event): for s in sprites: s.set_visible(False) fig.canvas.draw() background[0] = fig.canvas.copy_from_bbox(ax.bbox) for s in sprites: s.set_visible(True) # event.width, event.height accessible fig.canvas.mpl_connect('key_press_event', press) fig.canvas.mpl_connect('key_release_event', unpress) fig.canvas.mpl_connect('resize_event', redo_background) print('Press Q to exit') while 'q' not in keys: # Advance the game state while t < next_draw: inputs = np.zeros((n, 2)) inputs[:, 1] = 3.0 # try to turn inputs[:, 0] = 100 # some forward thrust! # give the user control of ship 0 if 'right' in keys: inputs[0, 1] = -10. elif 'left' in keys: inputs[0, 1] = 10. else: inputs[0, 1] = 0. if 'up' in keys: inputs[0, 0] = 100 else: inputs[0, 0] = 0 t += dt integrate(states, properties, inputs, walls, bounds, dt) # Draw at the desired framerate this_time = time() - start_time if this_time > next_draw: next_draw += frame_time # blit the background fig.canvas.restore_region(background[0]) for state, col, r, sprite in zip(states, colours, radius, sprites): draw_outline(ax, state, col, r, handle=sprite) fig.canvas.blit(ax.bbox) event_count += 1 fig.canvas.flush_events() else: sleep((next_draw - this_time)*0.25) def draw_outline(ax, state, c, radius, handle=None, n=15): x, y, th, vx, vy, w = state # m, I, radius, c = props # base_theta = np.linspace(np.pi-2, np.pi+2, n-1) # base_theta[0] = 0 # base_theta[-1] = 0 base_theta = np.linspace(0, 2*np.pi, n) theta = base_theta + th + np.pi theta[0] = th theta[-1] = th # size = np.sqrt(1. - np.abs(base_theta - np.pi)/np.pi) size = 1 vx = np.cos(theta) * radius * size vy = np.sin(theta) * radius * size vx += x vy += y if handle: handle.set_data(vx, vy) ax.draw_artist(handle) else: handle, = ax.plot(vx, vy, c) return handle def linear_interpolate(img, bounds, pos): """ Used for interpreting Dan-maps Args: img - n*m*k bounds - (xmin, xmax, ymin, ymax) pos - n*2 position vector of query Returns: interpolated vector """ h, w, ch = np.shape(img) xmin, xmax, ymin, ymax = bounds x, y = pos.T ix = (x - xmin) / (xmax - xmin) * (w - 1.) iy = (y - ymin) / (ymax - ymin) * (h - 1.) ix = np.minimum(np.maximum(0, ix), w-2) iy = np.minimum(np.maximum(0, iy), h-2) L = ix.astype(int) T = iy.astype(int) alphax = (ix - L)[:,np.newaxis] alphay = (iy - T)[:,np.newaxis] out = (1.-alphax)*(1.-alphay)*img[T, L] + \ (1.-alphax)*alphay*img[T+1, L] + \ alphax*(1-alphay)*img[T, L+1] + \ alphax*alphay*img[T+1, L+1] return out def <API key>(P, r): # Use spatial hashing to shortlist possible collisions # Requires radius = 1 even though I originally allowed it to vary. n = P.shape[0] all_cells = dict() # potential collisions checks = set() grid = r * 2. + 1e-5 # base off diameter UP = [tuple(v) for v in np.floor((P+[r, r]) / grid)] DOWN = [tuple(v) for v in np.floor((P+[r, -r]) / grid)] LEFT = [tuple(v) for v in np.floor((P+[-r, r]) / grid)] RIGHT = [tuple(v) for v in np.floor((P+[-r, -r]) / grid)] indx = list(range(n)) for i, u, d, l, r in zip(indx, UP, DOWN, LEFT, RIGHT): for my_id in (u, d, l, r): if my_id in all_cells: for friend in all_cells[my_id]: checks.add((i, friend)) all_cells[my_id].append(i) else: all_cells[my_id] = [i] return checks if __name__ == '__main__': main()
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta name="generator" content="pandoc" /> <title>Corona Docs: API > Types > Map > setRegion</title> <meta name="revised" content="16-May-2013" /> <meta name="description" content="Whether you're new to Corona or want to take your app to the next level, we've got a wealth of resources for you including extensive documentation, API reference, sample code, and videos. API > Types > Map > setRegion" /> <style type="text/css"> table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode { margin: 0; padding: 0; vertical-align: baseline; border: none; } table.sourceCode { width: 100%; } td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; } td.sourceCode { padding-left: 5px; } code > span.kw { color: #007020; font-weight: bold; } code > span.dt { color: #902000; } code > span.dv { color: #40a070; } code > span.bn { color: #40a070; } code > span.fl { color: #40a070; } code > span.ch { color: #4070a0; } code > span.st { color: #4070a0; } code > span.co { color: #60a0b0; font-style: italic; } code > span.ot { color: #007020; } code > span.al { color: #ff0000; font-weight: bold; } code > span.fu { color: #06287e; } code > span.er { color: #ff0000; font-weight: bold; } </style> <link rel="stylesheet" href="../../../css/style.css" type="text/css" /> <script src=" </head> <body> <div class="header"></div> <div class="title"> <span class="titleimg" onclick="window.location='http://docs.coronalabs.com/'"></span> <div id="nav"> <ul> <li><a href="../../index.html">SDK APIs</a></li> <li><a href="../../../native/index.html">Enterprise APIs</a></li> <li><a href="../../../plugin/index.html">Plugins</a></li> <li><a href="../../../guide/index.html">Guides</a></li> <li><a href="http: </ul> <div id="resources-link"><a href="http://www.coronalabs.com/resources/">Corona Resources</a> &#9657;</div> </div> </div> <div class="SearchBar"> <form action="http: <input type="hidden" name="cx" value="<API key>:g40gqt2m6rq" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="text" name="q" id="q" autocomplete="off" size="40" style="width:150px;float:left" /> <input type="submit" name="sa" value="Search" style="float:right; font-size: 13px;" /> </form> </div> <div id="TOC"> <ul> <li><a href="#objectsetregion">object:setRegion()</a><ul> <li><a href="#overview">Overview</a></li> <li><a href="#syntax">Syntax</a><ul> <li><a href="#latitude-required">latitude <sub><sup>(required)</sup></sub></a></li> <li><a href="#longitude-required">longitude <sub><sup>(required)</sup></sub></a></li> <li><a href="#<API key>">latitudeSpan <sub><sup>(required)</sup></sub></a></li> <li><a href="#<API key>">longitudeSpan <sub><sup>(required)</sup></sub></a></li> <li><a href="#isanimated-optional">isAnimated <sub><sup>(optional)</sup></sub></a></li> </ul></li> <li><a href="#example">Example</a></li> </ul></li> </ul> </div> <div id="breadcrumb"> <a href="http: </div> <div class="section level1" id="objectsetregion"> <h1><a href="#TOC">object:setRegion()</a></h1> <blockquote> <table> <tbody> <tr class="odd"> <td align="left"><strong>Type</strong></td> <td align="left"><a href="../Function.html">Function</a></td> </tr> <tr class="even"> <td align="left"><strong>Object</strong></td> <td align="left"><a href="index.html">Map</a></td> </tr> <tr class="odd"> <td align="left"><strong>Library</strong></td> <td align="left"><a href="../../library/native/index.html">native.*</a></td> </tr> <tr class="even"> <td align="left"><strong>Return value</strong></td> <td align="left">None</td> </tr> <tr class="odd"> <td align="left"><strong>Revision</strong></td> <td align="left"><a href="http://coronalabs.com/links/docs/current-corona-sdk">Current Public Release (2013.2076)</a></td> </tr> <tr class="even"> <td align="left"><strong>Keywords</strong></td> <td align="left">setRegion</td> </tr> <tr class="odd"> <td align="left"><strong>Sample code</strong></td> <td align="left"><em>/CoronaSDK/SampleCode/Interface/MapView</em></td> </tr> <tr class="even"> <td align="left"><strong>See also</strong></td> <td align="left"></td> </tr> </tbody> </table> </blockquote> <div class="section level2" id="overview"> <h2><a href="#TOC">Overview</a></h2> <p>Moves the displayed map region to a new location, with the new center point and horizontal/vertical span distances given in degrees of latitude and longitude (which implicitly sets the zoom level). This function will sanity-check the span settings, and will interpolate a consistent zoom level even if the latitudeSpan and longitudeSpan are specified with radically different values. The final parameter is an optional Boolean (default <code>false</code>) that determines whether the transition is animated or happens instantly.</p> <p>Note that degrees of latitude and longitude cover large distances on the Earth, so fairly small changes to extended decimal values will translate into big position changes in the map, especially at close zoom levels. Also note that most of the planet's map locations are fairly empty, so it will generally be easier to work with known latitude/longitude values when experimenting with maps. Try looking up your own address on a public geocoding site like <a href="http: </div> <div class="section level2" id="syntax"> <h2><a href="#TOC">Syntax</a></h2> <pre><code>object:setRegion( latitude, longitude, latitudeSpan, longitudeSpan [, isAnimated] )</code></pre> <div class="section level5" id="latitude-required"> <h5><a href="#TOC">latitude <sub><sup>(required)</sup></sub></a></h5> <p><em><a href="../Number.html">Number</a>.</em> The latitude of the region's center point.</p> </div> <div class="section level5" id="longitude-required"> <h5><a href="#TOC">longitude <sub><sup>(required)</sup></sub></a></h5> <p><em><a href="../Number.html">Number</a>.</em> The longitude of the region's center point.</p> </div> <div class="section level5" id="<API key>"> <h5><a href="#TOC">latitudeSpan <sub><sup>(required)</sup></sub></a></h5> <p><em><a href="../Number.html">Number</a>.</em> The region's latitudinal span in degrees. This implicitly sets the map's zoom level.</p> </div> <div class="section level5" id="<API key>"> <h5><a href="#TOC">longitudeSpan <sub><sup>(required)</sup></sub></a></h5> <p><em><a href="../Number.html">Number</a>.</em> The region's longitudinal span in degrees. This implicitly sets the map's zoom level.</p> </div> <div class="section level5" id="isanimated-optional"> <h5><a href="#TOC">isAnimated <sub><sup>(optional)</sup></sub></a></h5> <p><em><a href="../Boolean.html">Boolean</a>.</em> Specifies whether to animate the map from the current region to the new one. Default is <code>false</code>.</p> </div> </div> <div class="section level2" id="example"> <h2><a href="#TOC">Example</a></h2> <pre class="sourceCode lua"><code class="sourceCode lua"><span class="kw">local</span> <span class="kw">myMap</span> <span class="ot">=</span> <span class="kw">native</span><span class="ot">.</span>newMapView<span class="ot">(</span> <span class="dv">0</span>, <span class="dv">0</span>, <span class="kw">display</span><span class="ot">.</span><span class="kw">contentWidth</span>, <span class="kw">display</span><span class="ot">.</span><span class="kw">contentHeight</span> <span class="ot">)</span> <span class="kw">myMap</span>:setCenter<span class="ot">(</span> <span class="dv">37.331692</span>, <span class="ot">-</span><span class="dv">122.030456</span>, <span class="dv">0.01</span>, <span class="dv">0.01</span> <span class="ot">)</span></code></pre> <div id="footer"> <p style="font-size: 13px"> © 2013 Corona Labs Inc. All Rights Reserved. (Last updated: 16-May-2013) </p> <br /> <p> <strong>Help us help you! Give us feedback on this page:</strong> </p> <ul> <li> <a href="https://coronalabs.wufoo.com/forms/z7p9w5/def/field3=api.type.Map.setRegion&field4=Current+Public+Release+%282013%2E2076%29" target="_blank">Love it</a> </li> <li> <a href="https://coronalabs.wufoo.com/forms/z7p9m3/def/field103=api.type.Map.setRegion&field104=Current+Public+Release+%282013%2E2076%29" target="_blank">Like it, but...</a> </li> <li> <a href="https://coronalabs.wufoo.com/forms/z7p8x1/def/field103=api.type.Map.setRegion&field104=Current+Public+Release+%282013%2E2076%29" target="_blank">Hate it</a> </li> </ul> </div> </div> </div> </body> </html>
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var CIL; (function (CIL) { var Runtime; (function (Runtime) { var OpCodes; (function (OpCodes) { "use strict"; var Constrained = (function (_super) { __extends(Constrained, _super); function Constrained(memory, stack) { _super.call(this, memory, stack); } Constrained.prototype.number = function () { return 65046; }; Constrained.prototype.argumentCount = function () { return [4]; }; Constrained.prototype.execute = function (bytes) { return; }; return Constrained; })(Runtime.OpCode); OpCodes.Constrained = Constrained; Runtime.OpCode.opCodes[Constrained.prototype.number()] = function (memory, stack) { Constrained.Instance = Constrained.Instance = new Constrained(memory, stack); return Constrained.Instance; }; })(OpCodes = Runtime.OpCodes || (Runtime.OpCodes = {})); })(Runtime = CIL.Runtime || (CIL.Runtime = {})); })(CIL || (CIL = {})); //# sourceMappingURL=Constrained.js.map
# Freedom - Mind-blowing issue tracker. # Veselin Todorov <hi@vesln.com> require 'spec_helper' describe <API key> do let(:current_project) { current_project = mock_model(Project, :id => 1) } let(:project_id) { current_project.id } let(:milestone) { create(:milestone, :project_id => project_id) } let(:milestones) { double('milestones') } before do controller.stub(:current_project).and_return current_project current_project.stub(:milestones).and_return milestones milestones.stub(:find).and_return milestone end describe 'GET index' do it "assigns milestones for the current project" do milestones.should_receive(:all).and_return [milestone] get :index assigns(:milestones).should eq [milestone] end end describe 'GET new' do it "assigns a new milestone" do get :new assigns(:milestone).should be_a_new Milestone end end describe 'POST create' do before do milestones.stub :new => milestone end it "creates a new milestone with the supplied params" do milestones.should_receive(:new).with 'data' milestone.should_receive :save post :create, :milestone => 'data' end it "assigns the new milestone" do post :create, :project_id => project_id assigns(:milestone).should eq milestone end context 'with valid data' do it "redirects to milestones page" do milestone.stub :save => true post :create, :project_id => project_id response.should redirect_to(<API key>(current_project)) end end context 'with invalid data' do it "renders the new template" do milestone.stub :save => false post :create, :project_id => project_id response.should render_template :new end end end describe 'GET edit' do it "assign the requested milestone" do milestones.should_receive(:find).with('1').and_return milestone get :edit, :project_id => project_id, :id => '1' assigns(:milestone).should eq milestone end end describe 'PUT update' do it "assigns the requested milestone" do milestones.should_receive(:find).with '1' milestone.stub :update_attributes => false put :update, :project_id => project_id, :id => '1', :milestone => 'data' end it "updates the requested milestone" do milestone.should_receive(:update_attributes).with 'data' put :update, :project_id => project_id, :id => '1', :milestone => 'data' end context 'with valid data' do it "redirects to milestones" do milestone.stub :update_attributes => true put :update, :project_id => project_id, :id => '1', :milestone => 'data' controller.should redirect_to(<API key>(current_project)) end end context 'with invalid data' do it "renders the edit template" do milestone.stub :update_attributes => false put :update, :project_id => project_id, :id => '1', :milestone => 'data' controller.should render_template(:edit) end end end describe 'DELETE destroy' do it "deletes the requested milestone" do milestones.should_receive(:find).with '1' milestone.should_receive :destroy delete :destroy, :project_id => project_id, :id => '1' end it "redirects to milestones" do delete :destroy, :project_id => project_id, :id => '1' controller.should redirect_to(<API key>(current_project)) end end end
#ifndef <API key> #define <API key> #if defined(WEBRTC_WIN) #include <API key> //original-code:"rtc_base/asyncsocket.h" #include <API key> //original-code:"rtc_base/criticalsection.h" #include <API key> //original-code:"rtc_base/messagequeue.h" #include <API key> //original-code:"rtc_base/socket.h" #include <API key> //original-code:"rtc_base/socketfactory.h" #include <API key> //original-code:"rtc_base/socketserver.h" #include <API key> //original-code:"rtc_base/thread.h" #include <API key> //original-code:"rtc_base/win32window.h" namespace rtc { // Win32Socket class Win32Socket : public AsyncSocket { public: Win32Socket(); ~Win32Socket() override; bool CreateT(int family, int type); int Attach(SOCKET s); void SetTimeout(int ms); // AsyncSocket Interface SocketAddress GetLocalAddress() const override; SocketAddress GetRemoteAddress() const override; int Bind(const SocketAddress& addr) override; int Connect(const SocketAddress& addr) override; int Send(const void* buffer, size_t length) override; int SendTo(const void* buffer, size_t length, const SocketAddress& addr) override; int Recv(void* buffer, size_t length, int64_t* timestamp) override; int RecvFrom(void* buffer, size_t length, SocketAddress* out_addr, int64_t* timestamp) override; int Listen(int backlog) override; Win32Socket* Accept(SocketAddress* out_addr) override; int Close() override; int GetError() const override; void SetError(int error) override; ConnState GetState() const override; int GetOption(Option opt, int* value) override; int SetOption(Option opt, int value) override; private: void CreateSink(); bool SetAsync(int events); int DoConnect(const SocketAddress& addr); bool HandleClosed(int close_error); void PostClosed(); void UpdateLastError(); static int TranslateOption(Option opt, int* slevel, int* sopt); void OnSocketNotify(SOCKET socket, int event, int error); void OnDnsNotify(HANDLE task, int error); SOCKET socket_; int error_; ConnState state_; SocketAddress addr_; // address that we connected to (see DoConnect) uint32_t connect_time_; bool closing_; int close_error_; class EventSink; friend class EventSink; EventSink* sink_; struct DnsLookup; DnsLookup* dns_; }; // Win32SocketServer class Win32SocketServer : public SocketServer { public: Win32SocketServer(); ~Win32SocketServer() override; void set_modeless_dialog(HWND hdlg) { hdlg_ = hdlg; } // SocketServer Interface Socket* CreateSocket(int family, int type) override; AsyncSocket* CreateAsyncSocket(int family, int type) override; void SetMessageQueue(MessageQueue* queue) override; bool Wait(int cms, bool process_io) override; void WakeUp() override; void Pump(); HWND handle() { return wnd_.handle(); } private: class MessageWindow : public Win32Window { public: explicit MessageWindow(Win32SocketServer* ss) : ss_(ss) {} private: bool OnMessage(UINT msg, WPARAM wp, LPARAM lp, LRESULT& result) override; Win32SocketServer* ss_; }; static const TCHAR kWindowName[]; MessageQueue* message_queue_; MessageWindow wnd_; CriticalSection cs_; bool posted_; HWND hdlg_; }; // Win32Thread. Automatically pumps Windows messages. class Win32Thread : public Thread { public: explicit Win32Thread(SocketServer* ss); ~Win32Thread() override; void Run() override; void Quit() override; private: DWORD id_; }; } // namespace rtc #endif // WEBRTC_WIN #endif // <API key>
author: robmyers comments: true date: 2005-12-22 06:47:08+00:00 layout: post slug: <API key> title: New Rhizome Site Design Launch wordpress_id: 763 categories: - Generative Art The excellent Rhizome have a new site design: [http: Give it a go. Technorati Tags: [generative art](http:
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { Comp2156Component } from './comp-2156.component'; describe('Comp2156Component', () => { let component: Comp2156Component; let fixture: ComponentFixture<Comp2156Component>; beforeEach(async(() => { TestBed.<API key>({ declarations: [ Comp2156Component ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(Comp2156Component); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });
<?php abstract class qCal_Value { protected $value; public function __construct($value) { $this->setValue($value); } /** * A factory for data type objects. Pass in a type and a value, and it will return the value * casted to the proper type */ public static function factory($type, $value) { // remove dashes, capitalize properly $parts = explode("-", $type); $type = ""; foreach ($parts as $part) $type .= trim(ucfirst(strtolower($part))); // get the class, and instantiate $className = "qCal_Value_" . $type; $class = new $className($value); return $class; } /** * Sets the value of this object. The beauty of using inheritence here is that I can store * the value however I want for any value type, and then on __toString() I can return it how * iCalendar specifies :) */ public function setValue($value) { $this->value = $this->doCast($value); return $this; } /** * Returns raw value (as it is stored) */ public function getValue() { return $this->value; } /** * Casts $value to this data type */ public function cast($value) { return $this->doCast($value); } /** * Returns the value as a string */ public function __toString() { return $this->toString($this->value); } /** * Converts from native format to a string, __toString() calls this internally */ protected function toString($value) { return (string) $value; } /** * This is left to be implemented by children classes, basically they * implement this method to cast any input into their data type (from a string) * @todo Change the name of this to something more appropriate, maybe toNative or something */ abstract protected function doCast($value); }
// Kyle Russell // AUT University 2016 // Highly Secured Systems A2 package com.kyleruss.cryptocommons; import java.security.<API key>; import java.security.InvalidKeyException; import java.security.Key; import java.security.<API key>; import java.security.SecureRandom; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.<API key>; import javax.crypto.<API key>; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; public class EncryptedSession { //The AES secret key bytes private byte[] AESKey; //The plain/cipher text bytes private byte[] data; //The AES IV - default is empty[16] private byte[] iv; //The AES cipher instance used to encrypt the data private Cipher AESCipher; //A public/private RSA key //used to encrypt/decrypt the AES key private Key asymKey; public EncryptedSession() { initAESKey(); } public EncryptedSession(byte[] data, Key asymKey) { this.data = data; this.asymKey = asymKey; initAESKey(); } public EncryptedSession(byte[] AESKey, byte[] data, Key asymKey) { this.AESKey = AESKey; this.data = data; this.asymKey = asymKey; } //Initializes the AES cipher, iv and keys //Uses CBC mode and PKCS5 padding //mode: enter the cipher mode (Cipher.ENCRYPT_MODE, Cipher.DECRYPT_MODE) public void initCipher(int mode) { try { //initialize IV iv = new byte[16]; IvParameterSpec ivParam = new IvParameterSpec(iv); //initialize AES secret key SecretKeySpec keySpec = new SecretKeySpec(AESKey, "AES"); //initialize AES cipher AESCipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); AESCipher.init(mode, keySpec, ivParam); } catch(<API key> | <API key> | InvalidKeyException | <API key> e) { System.out.println("[Error] Failed to initialize AES Cipher: " + e.getMessage()); } } //Encrypts or decrypts the data using the AES cipher //EncryptedSession@initCipher should be called before public byte[] processData() throws <API key>, BadPaddingException { if(AESCipher == null) return null; return AESCipher.doFinal(data); } //Encrypts the AES secret key with the public/private key //Uses RSA encryption in ECB mode with PKCS1 padding public byte[] encryptKey() throws InvalidKeyException, <API key>, <API key>, <API key>, BadPaddingException { Cipher asymCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); asymCipher.init(Cipher.ENCRYPT_MODE, asymKey); return asymCipher.doFinal(AESKey); } //Unlocks this encrypted message //First decrypts the secret key with RSA decryption using the private/public key //Then AES decrypts the data using the decrypted secret key public void unlock() throws <API key>, <API key>, InvalidKeyException, <API key>, BadPaddingException { Cipher asymCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); asymCipher.init(Cipher.DECRYPT_MODE, asymKey); AESKey = asymCipher.doFinal(AESKey); initCipher(Cipher.DECRYPT_MODE); data = processData(); } //Initializes the secret key with 16 random bytes private void initAESKey() { SecureRandom rGen = new SecureRandom(); AESKey = new byte[16]; rGen.nextBytes(AESKey); } public byte[] getAESKey() { return AESKey; } public void setAESKey(byte[] AESKey) { this.AESKey = AESKey; } public byte[] getData() { return data; } public void setData(byte[] data) { this.data = data; } public byte[] getIv() { return iv; } public void setIv(byte[] iv) { this.iv = iv; } public Cipher getAESCipher() { return AESCipher; } public void setAESCipher(Cipher AESCipher) { this.AESCipher = AESCipher; } public Key getAsymKey() { return asymKey; } public void setAsymKey(Key asymKey) { this.asymKey = asymKey; } }
if ( jQuery && $('a[href="/UserDetails.aspx"]' , '#boxUser').length ) $(function() { $.get( '/UserDetails.aspx' , {} , function(o) { $('a[href="/UserDetails.aspx"]' , '#boxUser ') .eq(0) .before( $('<a/>') .attr({href : '/UserDetails.aspx'}) .append( $('<img/>') .css({ display : 'none' , margin : '3px 0 10px 0' , border : '1px solid lime' , 'border-radius' : '5px' , padding : '0.1em'}) .attr({ src : $(o) .find('#<API key> img') .attr('src') .replace('personal/' , 'personal/s')}) .fadeIn(100) ) ); } ); });
package fredboat.event; import fredboat.Config; import fredboat.commandmeta.CommandManager; import fredboat.commandmeta.CommandRegistry; import fredboat.commandmeta.abs.Command; import net.dv8tion.jda.core.events.message.<API key>; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.regex.Matcher; public class EventListenerSelf extends <API key> { private static final Logger log = LoggerFactory.getLogger(EventListenerSelf.class); public EventListenerSelf() { } @Override public void onMessageReceived(<API key> event) { if (!event.getAuthor().getId().equals(event.getJDA().getSelfUser().getId())) { return; } if (event.getMessage().getContent().length() < Config.CONFIG.getPrefix().length()) { return; } if (event.getMessage().getContent().substring(0, Config.CONFIG.getPrefix().length()).equals(Config.CONFIG.getPrefix())) { Command invoked = null; try { log.info(event.getGuild().getName() + " \t " + event.getAuthor().getName() + " \t " + event.getMessage().getRawContent()); Matcher matcher = COMMAND_NAME_PREFIX.matcher(event.getMessage().getContent()); matcher.find(); invoked = CommandRegistry.getCommand(matcher.group()).command; } catch (<API key> ignored) { } if (invoked == null) { return; } CommandManager.prefixCalled(invoked, event.getGuild(), event.getTextChannel(), event.getMember(), event.getMessage()); try { event.getMessage().delete().queue(); } catch (Exception ignored) { } } } }
'use strict'; /* * Polyfills loaded: None * Used in: Chrome */ // TODO: This needs to not exist at all. //TODO(notwaldorf): this is temporary and should be removed. import '../bower_components/shadycss/src/ShadyCSS.js' import '../src/unresolved.js'
package problem1; import java.util.stream.LongStream; /** * 10, 3 5 3, 5, 6, 9 4, 23 .<br> * , 1000 3 5 . * * @author user */ public class Problem1 { /** minimum value in the range. (thisValue <= range) */ private static final int BEGIN_VALUE = 1; /** value of less than. (range < thisValue) */ private static final int END_VALUE = 1000; /** entry point. */ public static void main(String[] args) { long total = LongStream.range(BEGIN_VALUE, END_VALUE).filter(e -> e % 3 == 0 || e % 5 == 0).sum(); System.out.println(total); } }
import 'rxjs/add/operator/let'; import 'rxjs/add/operator/pluck'; import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; import { Observable } from 'rxjs/Observable'; import { <API key> } from 'app/app-config'; import { IAppState } from 'app'; import { ITrack, ITracklistCursor } from 'app/tracklists'; import { IPlayerState } from './state/player-state'; import { getPlayer, getPlayerTrack, <API key>, getTimes } from './state/selectors'; import { ITimesState } from './state'; import { AudioService } from './audio-service'; import { AudioSource } from './audio-source'; import { PlayerActions } from './player-actions'; import { playerStorage } from './player-storage'; @Injectable() export class PlayerService extends AudioService { currentTime$: Observable<number>; cursor$: Observable<ITracklistCursor>; player$: Observable<IPlayerState>; times$: Observable<ITimesState>; track$: Observable<ITrack>; constructor(private actions: PlayerActions, audio: AudioSource, private store$: Store<IAppState>) { super(actions, audio); this.events$.subscribe(action => store$.dispatch(action)); this.volume = playerStorage.volume || <API key>; this.cursor$ = store$.let(<API key>()); this.player$ = store$.let(getPlayer()); this.track$ = store$.let(getPlayerTrack()); this.track$.subscribe(track => this.play(track.streamUrl)); this.times$ = store$.let(getTimes()); this.currentTime$ = this.times$.pluck('currentTime'); } select({trackId, tracklistId}: {trackId: number, tracklistId?: string}): void { this.store$.dispatch( this.actions.playSelectedTrack(trackId, tracklistId) ); } }
var React = require('react'); import $ from 'jquery'; var Search = React.createClass({ componentDidMount(){ searchThings(); }, render(){ return ( <section id="search-section"> <input id="search-notes" type="text" ref="name" placeholder="Search Notes" /> </section> ); } }); function searchThings(){ var $notes = $('#all-notes-section'); $('#search-notes').on('keyup', function() { var currentInput = this.value.toLowerCase(); $notes.children().each(function (index, note) { console.log("note: " + note) var $note = $(note); var $noteContent = $note.find('.note-content').text().toLowerCase(); console.log("notecontent :" + $noteContent) if ($noteContent.indexOf(currentInput) !== -1) { $note.show(); } else { $note.hide(); } }); }); } module.exports = Search;
Ext.override(Ext.ux.StatusBar, { hideBusy() { return this.setStatus({ text: this.defaultText, icon_cls: this.defaultIconCls }); } });
""" To build cx_Freeze executable: python setup.py bdist_msi """ from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict(packages = [], excludes = []) import PyQt5 from glob import glob import sys, os import os.path as osp base = 'Win32GUI' if sys.platform=='win32' else None executables = [ Executable('edit_table.py', base=base) ] PY_HOME = osp.abspath(osp.join(osp.split(os.__file__)[0], os.pardir)) # C:\Anaconda2\Library\plugins\platforms platforms_file = osp.join(PY_HOME, "Library", "plugins", 'platforms', 'qwindows.dll') setup(name='pyqt_db', version = '1.0', description = 'Playing around with Qt5 and database widgets', data_files = [ ('', glob(r'C:\Windows\SYSTEM32\msvcp100.dll')), ('', glob(r'C:\Windows\SYSTEM32\msvcr100.dll')), ('', ['example.sqlite']), #('platforms', glob(osp.join(PY_HOME, 'Lib\site-packages\PyQt5\plugins\platforms\windows.dll'))), ('platforms', [platforms_file]), #('images', ['images\logo.png']), #('images', ['images\shannon.png']), ], options = { 'py2exe': { 'bundle_files': 1, 'includes': ['sip', 'PyQt5.QtCore'], } }, executables = executables)
#define <API key> enum Main { // GL_CULL_VERTEX_IBM = 103050, };
#ifndef __XYZFILE_H__ #define __XYZFILE_H__ #include "file.h" namespace ZBPlugin { // CXyzFile: XYZ file format class CXyzFile : public CFile { public: CXyzFile(){}; ~CXyzFile(){}; inline Vector3DVector& <API key>() {return m_vertices;} inline Vector3DVector& <API key>() {return m_texCoords;} private: Vector3DVector m_vertices; Vector3DVector m_texCoords; // PowerCrust stuff public: // PolyData class CPolyData { public: class CPoly { public: std::vector<ulong> m_vertIndices; }; typedef std::vector<CPoly> PolyVector; inline PolyVector& GetPolys() {return m_polys;} inline Vector3DVector& GetPoints() {return m_points;} inline std::vector<double>& GetWeights() {return m_weights;} private: PolyVector m_polys; Vector3DVector m_points; std::vector<double> m_weights; }; inline CPolyData& GetMedialSurface() {return m_medialSurface;} inline CPolyData& GetFinalSurface() {return m_finalSurface;} private: CPolyData m_medialSurface; CPolyData m_finalSurface; }; } // End ZBPlugin namespace #endif // __XYZFILE_H__
# Support macro to use a precompiled header # Usage: # <API key>(CURRENT_MODULE HEADER_FILE SRC_FILE) macro(<API key>) if(<API key> OR <API key>) <API key>(${DIOS_MODULE_${DIOS_BUILDER_MODULE}_DIRECTORY}/src/precompiled.h ${DIOS_MODULE_${DIOS_BUILDER_MODULE}_DIRECTORY}/src/precompiled.cpp) elseif(<API key> OR <API key>) <API key>(${DIOS_MODULE_${DIOS_BUILDER_MODULE}_DIRECTORY}/src.ios/cpp/Prefix.pch) endif() endmacro() macro(<API key> HEADER_FILE SRC_FILE) <API key>(HEADER ${HEADER_FILE} NAME) if(<API key> OR <API key>) add_definitions(/Yu"${HEADER}") <API key>(${SRC_FILE} PPROPERTIES COMPILE_FLAGS /Yc"${HEADER}") else() MESSAGE(FATAL_ERROR "only <API key> OR <API key> can run '<API key>'") endif() endmacro() macro(<API key> PCH_FILE) <API key>( ${CURRENT_MODULE} PROPERTIES <API key> ${PCH_FILE} <API key> "YES") endmacro()
namespace HomeCloud.DataStorage.DataAccess.Components.Repositories { #region Usings using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using HomeCloud.DataAccess.Contracts; using HomeCloud.DataStorage.DataAccess.Contracts; using HomeCloud.DataStorage.DataAccess.Services.Repositories; #endregion <summary> Provides methods to handle <see cref="File"/> data. </summary> <seealso cref="HomeCloud.DataStorage.DataAccess.Services.Repositories.IFileRepository" /> public class FileRepository : IFileRepository { #region Constants <summary> The <see cref="[dbo].[InsertFile]"/> stored procedure name. </summary> private const string <API key> = "[dbo].[InsertFile]"; <summary> The <see cref="[dbo].[UpdateFile]"/> stored procedure name. </summary> private const string <API key> = "[dbo].[UpdateFile]"; <summary> The <see cref="[dbo].[DeleteFileByID]"/> stored procedure name. </summary> private const string <API key> = "[dbo].[DeleteFileByID]"; <summary> The <see cref="[dbo].[<API key>]"/> stored procedure name. </summary> private const string <API key> = "[dbo].[<API key>]"; <summary> The <see cref="[dbo].[GetFileByID]"/> stored procedure name. </summary> private const string <API key> = "[dbo].[GetFileByID]"; <summary> The <see cref="[dbo].[<API key>]"/> stored procedure name. </summary> private const string <API key> = "[dbo].[<API key>]"; <summary> The <see cref="[dbo].[<API key>]"/> stored procedure name. </summary> private const string <API key> = "[dbo].[<API key>]"; #endregion #region Private Members <summary> The database context </summary> private readonly IDbContext context = null; #endregion #region Constructors <summary> Initializes a new instance of the <see cref="FileRepository" /> class. </summary> <param name="context">The database context.</param> public FileRepository(IDbContext context) { this.context = context; } #endregion #region IFileRepository Implementations <summary> Gets the number of entities that match the specified one. </summary> <param name="file">>The file to search by.</param> <returns>The number of entities.</returns> public async Task<int> GetCountAsync(File file) { return await this.context.ExecuteScalarAsync<object, int>( <API key>, new { @Name = string.IsNullOrWhiteSpace(file?.Name) ? null : file.Name.Trim().ToLower(), @DirectoryID = file.DirectoryID }); } <summary> Deletes the entity by specified identifier. </summary> <param name="id">The unique identifier.</param> <returns>The asynchronous operation.</returns> public async Task DeleteAsync(Guid id) { await this.context.ExecuteAsync( <API key>, new { @ID = id }); } <summary> Deletes the list of entities by specified identifier of entity of <see cref="T:HomeCloud.DataStorage.DataAccess.Contracts.Catalog" /> type the list belongs to. </summary> <param name="id">The parent entity unique identifier.</param> <returns>The asynchronous operation.</returns> public async Task <API key>(Guid id) { await this.context.ExecuteAsync( <API key>, new { @DirectoryID = id }); } <summary> Looks for all records of <see cref="!:T" /> type. </summary> <param name="offset">The index of the first record that should appear in the list.</param> <param name="limit">The number of records to select.</param> <returns> The list of instances of <see cref="!:T" /> type. </returns> <exception cref="<API key>">Not supported as data requires the relationship for <see cref="Catalog"/>.</exception> public async Task<IEnumerable<File>> FindAsync(int offset = 0, int limit = 20) { return await Task.FromException<IEnumerable<File>>(new <API key>()); } <summary> Gets the entity by specified identifier. </summary> <param name="id">The unique identifier.</param> <returns> The instance of <see cref="T:HomeCloud.DataStorage.DataAccess.Contracts.File" />. </returns> public async Task<File> GetAsync(Guid id) { IEnumerable<File> result = await this.context.QueryAsync<File>( <API key>, new { @ID = id }); return result.FirstOrDefault(); } <summary> Gets the list of entities that match the specified one. </summary> <param name="file">The file to search by.</param> <param name="offset">The index of the first record that should appear in the list.</param> <param name="limit">The number of records to select.</param> <returns> The list of instances of <see cref="File" />. </returns> public async Task<IEnumerable<File>> FindAsync(File file, int offset = 0, int limit = 20) { return await this.context.QueryAsync<File>( <API key>, new { @Name = string.IsNullOrWhiteSpace(file?.Name) ? null : file.Name.Trim().ToLower(), @DirectoryID = file.DirectoryID, @StartIndex = offset, @ChunkSize = limit }); } <summary> Saves the specified entity. </summary> <param name="entity">The entity of type <see cref="T:HomeCloud.DataStorage.DataAccess.Contracts.File" />.</param> <returns> The instance of <see cref="T:HomeCloud.DataStorage.DataAccess.Contracts.File" />. </returns> public async Task<File> SaveAsync(File entity) { Guid id = entity.ID == Guid.Empty ? Guid.NewGuid() : entity.ID; if (await this.context.ExecuteAsync( entity.ID == Guid.Empty ? <API key> : <API key>, new { @ID = id, @DirectoryID = entity.DirectoryID, @Name = entity.Name }) > 0) { return await this.GetAsync(id); } return entity; } #endregion } }
'use strict'; import * as assert from 'assert'; import { TextModel } from 'vs/editor/common/model/textModel'; import { SyntaxRangeProvider } from 'vs/editor/contrib/folding/syntaxRangeProvider'; import { <API key>, FoldingRange, FoldingContext } from 'vs/editor/common/modes'; import { ITextModel } from 'vs/editor/common/model'; import { CancellationToken } from 'vs/base/common/cancellation'; interface IndentRange { start: number; end: number; } class <API key> implements <API key> { constructor(private model: ITextModel, private ranges: IndentRange[]) { } <API key>(model: ITextModel, context: FoldingContext, <API key>): FoldingRange[] { if (model === this.model) { return this.ranges; } return null; } } suite('Syntax folding', () => { function r(start: number, end: number): IndentRange { return { start, end }; } test('Limit by nesting level', async () => { let lines = [ '{', ' A', ' {', ' {', ' B', ' }', ' {', ' A', ' {', ' A', ' }', ' {', ' {', ' {', ' A', ' }', ' }', ' }', ' }', ' }', '}', '{', ' A', '}', ]; let r1 = r(1, 20); let r2 = r(3, 19); let r3 = r(4, 5); let r4 = r(7, 18); let r5 = r(9, 10); let r6 = r(12, 17); let r7 = r(13, 16); let r8 = r(14, 15); let r9 = r(22, 23); let model = TextModel.createFromString(lines.join('\n')); let ranges = [r1, r2, r3, r4, r5, r6, r7, r8, r9]; let providers = [new <API key>(model, ranges)]; async function assertLimit(maxEntries: number, expectedRanges: IndentRange[], message: string) { let indentRanges = await new SyntaxRangeProvider(model, providers, maxEntries).compute(CancellationToken.None); let actual = []; for (let i = 0; i < indentRanges.length; i++) { actual.push({ start: indentRanges.getStartLineNumber(i), end: indentRanges.getEndLineNumber(i) }); } assert.deepEqual(actual, expectedRanges, message); } await assertLimit(1000, [r1, r2, r3, r4, r5, r6, r7, r8, r9], '1000'); await assertLimit(9, [r1, r2, r3, r4, r5, r6, r7, r8, r9], '9'); await assertLimit(8, [r1, r2, r3, r4, r5, r6, r7, r9], '8'); await assertLimit(7, [r1, r2, r3, r4, r5, r6, r9], '7'); await assertLimit(6, [r1, r2, r3, r4, r5, r9], '6'); await assertLimit(5, [r1, r2, r3, r4, r9], '5'); await assertLimit(4, [r1, r2, r3, r9], '4'); await assertLimit(3, [r1, r2, r9], '3'); await assertLimit(2, [r1, r9], '2'); await assertLimit(1, [r1], '1'); await assertLimit(0, [], '0'); }); });
<?php defined('BASEPATH') OR exit('No direct script access allowed'); $active_group = 'default'; $query_builder = TRUE; $db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'complain_book', 'dbdriver' => 'mysqli', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', 'char_set' => 'utf8', 'dbcollat' => 'utf8_general_ci', 'swap_pre' => '', 'encrypt' => FALSE, 'compress' => FALSE, 'stricton' => FALSE, 'failover' => array(), 'save_queries' => TRUE );
package equus.independent.data; import java.util.Collection; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.PriorityQueue; import java.util.Set; import equus.independent.util.Function; public class <API key><V, E> { private final Graph<V, E> graph; private final Function<E, ? extends Number> weightProvider; private final Map<V, SourcePathData> sourceMap; private final double maxDistance; private final int maxTargets; private static final double <API key> = Double.POSITIVE_INFINITY; private static final int DEFAULT_MAX_TARGETS = Integer.MAX_VALUE; private static <E> Function<E, ? extends Number> getNoWeightProvider() { return new Function<E, Integer>() { @Override public Integer apply(E input) { return 1; } }; } public <API key>(Graph<V, E> graph, Function<E, ? extends Number> weightProvider, double maxDistance, int maxTargets) { this.graph = graph; this.weightProvider = weightProvider; this.maxDistance = maxDistance; this.maxTargets = maxTargets; this.sourceMap = new HashMap<V, SourcePathData>(); } public <API key>(Graph<V, E> graph) { this(graph, <API key>.<E> getNoWeightProvider(), <API key>, DEFAULT_MAX_TARGETS); } public <API key>(Graph<V, E> graph, Function<E, ? extends Number> weightProvider) { this(graph, weightProvider, <API key>, DEFAULT_MAX_TARGETS); } public <API key>(Graph<V, E> graph, Function<E, ? extends Number> weightProvider, double maxTargets) { this(graph, weightProvider, maxTargets, DEFAULT_MAX_TARGETS); } public <API key>(Graph<V, E> graph, Function<E, ? extends Number> weightProvider, int maxTargets) { this(graph, weightProvider, <API key>, maxTargets); } public Double getShortestDistance(V source, V target) { if (!graph.containsVertex(source)) { throw new <API key>(); } if (!graph.containsVertex(target)) { throw new <API key>(); } <API key>(source, target); return getSourcePathData(source).getDistance(target); } public List<E> getShortestPath(V source, V target) { if (!graph.containsVertex(source)) { throw new <API key>(); } if (!graph.containsVertex(target)) { throw new <API key>(); } <API key>(source, target); return getSourcePathData(source).getPath(target); } public void <API key>(V source, V target) { Set<V> targets = new HashSet<V>(); targets.add(target); <API key>(source, targets); } public void <API key>(V source, Collection<V> targets) { SourcePathData data = getSourcePathData(source); if (data.isCalculatedAll()) { return; } Set<V> toGetVerteces = new HashSet<V>(); if (targets != null) { Set<V> calculatedVerteces = data.calculatedDistances.keySet(); for (V target : targets) { if (!calculatedVerteces.contains(target)) { toGetVerteces.add(target); } } } while (!data.<API key>.isEmpty() && !data.isCalculatedAll() && !toGetVerteces.isEmpty()) { Tuple<V, Number> next = data.getNextVertex(); if (next == null) { break; } V fixedVertex = next.getValue1(); double fixedVertexDistance = next.getValue2().doubleValue(); toGetVerteces.remove(fixedVertex); if (data.isCalculatedAll()) { break; } for (E toCheckEdge : graph.getOutgoingEdges(fixedVertex)) { for (V toCheckVertex : graph.getEndpoints(toCheckEdge).getCollection()) { if (data.isFixed(toCheckVertex)) { continue; } double edgeWeight = weightProvider.apply(toCheckEdge).doubleValue(); if (edgeWeight < 0) { throw new <API key>("Edges weights must be non-negative"); } double newDistance = fixedVertexDistance + edgeWeight; if (!data.estimatedDistances.containsKey(toCheckVertex)) { data.createRecord(toCheckVertex, toCheckEdge, newDistance); } else { double estimatedDistance = data.estimatedDistances.get(toCheckVertex).doubleValue(); if (newDistance < estimatedDistance) { data.update(toCheckVertex, toCheckEdge, newDistance); } } } } } } public SourcePathData getSourcePathData(V source) { SourcePathData data = sourceMap.get(source); if (data == null) { data = new SourcePathData(source); sourceMap.put(data.getSource(), data); } return data; } private class SourcePathData { final V source; final LinkedHashMap<V, Double> calculatedDistances; final Map<V, Double> estimatedDistances; final Map<V, E> <API key>; final LinkedHashMap<V, E> incomingEdges; final PriorityQueue<V> <API key>; double <API key> = 0; SourcePathData(V source) { this.source = source; this.calculatedDistances = new LinkedHashMap<V, Double>(); this.incomingEdges = new LinkedHashMap<V, E>(); this.estimatedDistances = new HashMap<V, Double>(); this.<API key> = new HashMap<V, E>(); this.<API key> = new PriorityQueue<V>(graph.getVertexCount(), new VertexComparator( estimatedDistances)); initialize(); } V getSource() { return source; } void initialize() { estimatedDistances.put(source, new Double(0)); <API key>.add(source); } boolean isCalculatedAll() { return calculatedDistances.size() >= graph.getVertexCount() || calculatedDistances.size() >= maxTargets || <API key>(); } Tuple<V, Number> getNextVertex() { V fixedVertex = <API key>.remove(); Double fixedVertexDistance = estimatedDistances.remove(fixedVertex); <API key> = fixedVertexDistance; if (<API key>()) { restoreVertex(fixedVertex, fixedVertexDistance); return null; } calculatedDistances.put(fixedVertex, fixedVertexDistance); E incomingEdge = <API key>.remove(fixedVertex); incomingEdges.put(fixedVertex, incomingEdge); return new Tuple<V, Number>(fixedVertex, fixedVertexDistance); } private boolean <API key>() { return <API key> > maxDistance; } boolean isFixed(V vertex) { return calculatedDistances.containsKey(vertex); } void update(V vertex, E edge, double newDistance) { estimatedDistances.put(vertex, newDistance); <API key>.remove(vertex); <API key>.add(vertex); <API key>.put(vertex, edge); } void createRecord(V vertex, E edge, double newDistance) { estimatedDistances.put(vertex, newDistance); <API key>.add(vertex); <API key>.put(vertex, edge); } void restoreVertex(V vertex, double distance) { estimatedDistances.put(vertex, distance); <API key>.add(vertex); calculatedDistances.remove(vertex); E incoming = incomingEdges.get(vertex); if (incoming != null) { <API key>.put(vertex, incoming); } } LinkedList<E> getPath(V target) { LinkedList<E> path = new LinkedList<E>(); if (incomingEdges.isEmpty() || incomingEdges.get(target) == null) { return path; } V current = target; while (!current.equals(source)) { E incoming = incomingEdges.get(current); path.addFirst(incoming); current = graph.getOpposite(current, incoming); } return path; } Double getDistance(V target) { return calculatedDistances.get(target); } private class VertexComparator implements Comparator<V> { private final Map<V, Double> distances; protected VertexComparator(Map<V, Double> distances) { this.distances = distances; } @Override public int compare(V o1, V o2) { return distances.get(o1).compareTo(distances.get(o2)); } } } }
public class Solution { public int RemoveElement(int[] a, int toRemove) { int writeIndex = 0; for (int readIndex = 0; readIndex < a.Length; readIndex++) { if (a[readIndex] != toRemove) { a[writeIndex++] = a[readIndex]; } } return a.Take(writeIndex).ToArray().Length; } }
import Component from 'ember-component'; import hbs from '<API key>'; /** * Not operational sidebar search component * @class NavigationAPI.SearchBar * @constructor * @extends Ember.Component */ export default Component.extend({ layout: hbs`` });
* { margin: 0px; padding: 0px; } /* must declare 0 margins on everything, also for main layout components use padding, not vertical margins (top and bottom) to add spacing, else those margins get added to total height and your footer gets pushed down a bit more, creating vertical scroll bars in the browser */ html, body, .container { height: 100%; } body { padding: 0px; } #wrap { min-height: 100%; } #main { overflow:auto; padding-bottom: 8em; } footer { position: relative; margin-top: -8em; /* negative value of footer height */ height: 8em; clear:both; } /*Opera Fix*/ body:before { content:""; height:100%; float:left; width:0; margin-top:-32767px; }
Tinypfadmin::Application.routes.draw do resources :aliases resources :users resources :domains # The priority is based upon order of creation: # first created -> highest priority. # Sample of regular route: # match 'products/:id' => 'catalog#view' # Keep in mind you can assign values other than :controller and :action # Sample of named route: # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase # This route can be invoked with purchase_url(:id => product.id) # Sample resource route (maps HTTP verbs to controller actions automatically): # resources :products # Sample resource route with options: # resources :products do # member do # get :short # post :toggle # end # collection do # get :sold # end # end # Sample resource route with sub-resources: # resources :products do # resources :comments, :sales # resource :seller # end # Sample resource route with more complex sub-resources # resources :products do # resources :comments # resources :sales do # get :recent, :on => :collection # end # end # Sample resource route within a namespace: # namespace :admin do
// <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> namespace Resources { using System; using System.Reflection; <summary> A strongly-typed resource class, for looking up localized strings, etc. </summary> // This class was auto-generated by the <API key> // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.<API key>("System.Resources.Tools.<API key>", "4.0.0.0")] [global::System.Diagnostics.<API key>()] [global::System.Runtime.CompilerServices.<API key>()] internal class Strings { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.<API key>("Microsoft.Performance", "CA1811:<API key>")] internal Strings() { } <summary> Returns the cached ResourceManager instance used by this class. </summary> [global::System.ComponentModel.<API key>(global::System.ComponentModel.<API key>.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.Strings", typeof(Strings).GetTypeInfo().Assembly); resourceMan = temp; } return resourceMan; } } <summary> Overrides the current thread's CurrentUICulture property for all resource lookups using this strongly typed resource class. </summary> [global::System.ComponentModel.<API key>(global::System.ComponentModel.<API key>.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } <summary> Looks up a localized string similar to Alternation conditions do not capture and cannot be named.. </summary> internal static string <API key> { get { return ResourceManager.GetString("<API key>", resourceCulture); } } <summary> Looks up a localized string similar to Alternation conditions cannot be comments.. </summary> internal static string <API key> { get { return ResourceManager.GetString("<API key>", resourceCulture); } } <summary> Looks up a localized string similar to Cannot include class \{0} in character range.. </summary> internal static string BadClassInCharRange { get { return ResourceManager.GetString("BadClassInCharRange", resourceCulture); } } <summary> Looks up a localized string similar to Start index cannot be less than 0 or greater than input length.. </summary> internal static string <API key> { get { return ResourceManager.GetString("<API key>", resourceCulture); } } <summary> Looks up a localized string similar to Capture number cannot be zero.. </summary> internal static string CapnumNotZero { get { return ResourceManager.GetString("CapnumNotZero", resourceCulture); } } <summary> Looks up a localized string similar to Capture group numbers must be less than or equal to Int32.MaxValue.. </summary> internal static string <API key> { get { return ResourceManager.GetString("<API key>", resourceCulture); } } <summary> Looks up a localized string similar to Count cannot be less than -1.. </summary> internal static string CountTooSmall { get { return ResourceManager.GetString("CountTooSmall", resourceCulture); } } <summary> Looks up a localized string similar to Enumeration has either not started or has already finished.. </summary> internal static string EnumNotStarted { get { return ResourceManager.GetString("EnumNotStarted", resourceCulture); } } <summary> Looks up a localized string similar to Illegal conditional (?(...)) expression.. </summary> internal static string IllegalCondition { get { return ResourceManager.GetString("IllegalCondition", resourceCulture); } } <summary> Looks up a localized string similar to Illegal \ at end of pattern.. </summary> internal static string IllegalEndEscape { get { return ResourceManager.GetString("IllegalEndEscape", resourceCulture); } } <summary> Looks up a localized string similar to Illegal {x,y} with x &gt; y.. </summary> internal static string IllegalRange { get { return ResourceManager.GetString("IllegalRange", resourceCulture); } } <summary> Looks up a localized string similar to Incomplete \p{X} character escape.. </summary> internal static string IncompleteSlashP { get { return ResourceManager.GetString("IncompleteSlashP", resourceCulture); } } <summary> Looks up a localized string similar to Internal error in ScanRegex.. </summary> internal static string InternalError { get { return ResourceManager.GetString("InternalError", resourceCulture); } } <summary> Looks up a localized string similar to Invalid group name: Group names must begin with a word character.. </summary> internal static string InvalidGroupName { get { return ResourceManager.GetString("InvalidGroupName", resourceCulture); } } <summary> Looks up a localized string similar to Length cannot be less than 0 or exceed input length.. </summary> internal static string LengthNotNegative { get { return ResourceManager.GetString("LengthNotNegative", resourceCulture); } } <summary> Looks up a localized string similar to parsing &apos;{0}&apos; - {1}. </summary> internal static string MakeException { get { return ResourceManager.GetString("MakeException", resourceCulture); } } <summary> Looks up a localized string similar to Malformed \k&lt;...&gt; named back reference.. </summary> internal static string MalformedNameRef { get { return ResourceManager.GetString("MalformedNameRef", resourceCulture); } } <summary> Looks up a localized string similar to (?({0}) ) malformed.. </summary> internal static string MalformedReference { get { return ResourceManager.GetString("MalformedReference", resourceCulture); } } <summary> Looks up a localized string similar to Malformed \p{X} character escape.. </summary> internal static string MalformedSlashP { get { return ResourceManager.GetString("MalformedSlashP", resourceCulture); } } <summary> Looks up a localized string similar to Missing control character.. </summary> internal static string MissingControl { get { return ResourceManager.GetString("MissingControl", resourceCulture); } } <summary> Looks up a localized string similar to Nested quantifier {0}.. </summary> internal static string NestedQuantify { get { return ResourceManager.GetString("NestedQuantify", resourceCulture); } } <summary> Looks up a localized string similar to Result cannot be called on a failed Match.. </summary> internal static string NoResultOnFailed { get { return ResourceManager.GetString("NoResultOnFailed", resourceCulture); } } <summary> Looks up a localized string similar to Not enough )&apos;s.. </summary> internal static string NotEnoughParens { get { return ResourceManager.GetString("NotEnoughParens", resourceCulture); } } <summary> Looks up a localized string similar to This operation is only allowed once per object.. </summary> internal static string OnlyAllowedOnce { get { return ResourceManager.GetString("OnlyAllowedOnce", resourceCulture); } } <summary> Looks up a localized string similar to Quantifier {x,y} following nothing.. </summary> internal static string <API key> { get { return ResourceManager.GetString("<API key>", resourceCulture); } } <summary> Looks up a localized string similar to The RegEx engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.. </summary> internal static string <API key> { get { return ResourceManager.GetString("<API key>", resourceCulture); } } <summary> Looks up a localized string similar to Replacement pattern error.. </summary> internal static string ReplacementError { get { return ResourceManager.GetString("ReplacementError", resourceCulture); } } <summary> Looks up a localized string similar to [x-y] range in reverse order.. </summary> internal static string ReversedCharRange { get { return ResourceManager.GetString("ReversedCharRange", resourceCulture); } } <summary> Looks up a localized string similar to A subtraction must be the last element in a character class.. </summary> internal static string <API key> { get { return ResourceManager.GetString("<API key>", resourceCulture); } } <summary> Looks up a localized string similar to Insufficient hexadecimal digits.. </summary> internal static string TooFewHex { get { return ResourceManager.GetString("TooFewHex", resourceCulture); } } <summary> Looks up a localized string similar to Too many | in (?()|).. </summary> internal static string TooManyAlternates { get { return ResourceManager.GetString("TooManyAlternates", resourceCulture); } } <summary> Looks up a localized string similar to Too many )&apos;s.. </summary> internal static string TooManyParens { get { return ResourceManager.GetString("TooManyParens", resourceCulture); } } <summary> Looks up a localized string similar to Reference to undefined group number {0}.. </summary> internal static string UndefinedBackref { get { return ResourceManager.GetString("UndefinedBackref", resourceCulture); } } <summary> Looks up a localized string similar to Reference to undefined group name {0}.. </summary> internal static string UndefinedNameRef { get { return ResourceManager.GetString("UndefinedNameRef", resourceCulture); } } <summary> Looks up a localized string similar to (?({0}) ) reference to undefined group.. </summary> internal static string UndefinedReference { get { return ResourceManager.GetString("UndefinedReference", resourceCulture); } } <summary> Looks up a localized string similar to Unexpected opcode in regular expression generation: {0}.. </summary> internal static string UnexpectedOpcode { get { return ResourceManager.GetString("UnexpectedOpcode", resourceCulture); } } <summary> Looks up a localized string similar to Unimplemented state.. </summary> internal static string UnimplementedState { get { return ResourceManager.GetString("UnimplementedState", resourceCulture); } } <summary> Looks up a localized string similar to Unknown property &apos;{0}&apos;.. </summary> internal static string UnknownProperty { get { return ResourceManager.GetString("UnknownProperty", resourceCulture); } } <summary> Looks up a localized string similar to Unrecognized control character.. </summary> internal static string UnrecognizedControl { get { return ResourceManager.GetString("UnrecognizedControl", resourceCulture); } } <summary> Looks up a localized string similar to Unrecognized escape sequence \{0}.. </summary> internal static string UnrecognizedEscape { get { return ResourceManager.GetString("UnrecognizedEscape", resourceCulture); } } <summary> Looks up a localized string similar to Unrecognized grouping construct.. </summary> internal static string <API key> { get { return ResourceManager.GetString("<API key>", resourceCulture); } } <summary> Looks up a localized string similar to Unterminated [] set.. </summary> internal static string UnterminatedBracket { get { return ResourceManager.GetString("UnterminatedBracket", resourceCulture); } } <summary> Looks up a localized string similar to Unterminated (?#...) comment.. </summary> internal static string UnterminatedComment { get { return ResourceManager.GetString("UnterminatedComment", resourceCulture); } } } }