This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import goog = require("/AILabsToolkit/TClosure/goog"); | |
| import array = require("/AILabsToolkit/TClosure/array"); | |
| import asserts = require("/AILabsToolkit/TClosure/asserts"); | |
| import strings = require("/AILabsToolkit/TClosure/string/strings"); | |
| import structs = require("/AILabsToolkit/TClosure/structs"); | |
| import Map = require("/AILabsToolkit/TClosure/structs/Map"); | |
| import utils = require("/AILabsToolkit/TClosure/uri/utils"); | |
| // Copyright 2006 The Closure Library Authors. All Rights Reserved. | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public enum CardinalDirectionType | |
| { | |
| North ("n-resize"), | |
| NorthEast ("ne-resize"), | |
| East ("e-resize"), | |
| SouthEast ("se-resize"), | |
| South ("s-resize"), | |
| SouthWest ("sw-resize"), | |
| West ("w-resize"), | |
| NorthWest ("nw-resize"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public enum CardinalDirectionType | |
| { | |
| North ("n-resize", new Coordinate(100, 0) ), | |
| NorthEast ("ne-resize", new Coordinate(100, 0) ), | |
| East ("e-resize", new Coordinate(100, 50) ), | |
| SouthEast ("se-resize", new Coordinate(100, 100) ), | |
| South ("s-resize", new Coordinate(50, 100) ), | |
| SouthWest ("sw-resize", new Coordinate(0, 100) ), | |
| West ("w-resize", new Coordinate(0, 50) ), | |
| NorthWest ("nw-resize", new Coordinate(0, 0) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var DEFAULT_ACTIVE_FIELDS; | |
| var Lpipelinesystem_dataservice_PipelineDAL_2_classLit = createForClass('pipelinesystem.dataservice', 'PipelineDAL', 169); | |
| function $compare_1(this$static, s1, s2){ | |
| var s1_rank, s2_rank; | |
| s1_rank = $rankItem(this$static, s1); | |
| s2_rank = $rankItem(this$static, s2); | |
| if (s1_rank > s2_rank) { | |
| return 1; | |
| } | |
| else if (s1_rank < s2_rank) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var obj: Object = new Object(); | |
| class Puppet | |
| { | |
| public doTheatricalPuppet(): void | |
| { | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CKEDITOR.on('dialogDefinition', function(ev) { | |
| if (ev.data.name == "link") { | |
| var info = dialog.getContents("info"); | |
| info.elements.push({ | |
| type: "vbox", | |
| id: "urlOptions", | |
| children: [{ | |
| type: "hbox", | |
| children: [{ | |
| id: "button", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EXPLAIN ANALYZE SELECT page_url, page_title, COUNT(*)::int FROM siteanalytics_pageview | |
| WHERE domain=143 AND ( pageview_timestamp::date >= '7/10/2017'::date AND pageview_timestamp::date <= '8/9/2017'::date ) | |
| GROUP BY page_url, page_title ORDER BY count DESC LIMIT 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| shorty=# \d siteanalytics_pageview | |
| Table "public.siteanalytics_pageview" | |
| Column | Type | Modifiers | |
| -------------------------+--------------------------+----------------------------------------------- | |
| domain | integer | | |
| visit_id | uuid | | |
| pageview_id | uuid | | |
| page_url | text | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Fails to work. Cast exception occurs as soon a value is accessed by key from one of the outer maps: | |
| // e.g., iterable[0][outerKey] results in CastError | |
| Map<Object, Map<Object, num> > reduceOpaqueIterable(Iterable<Object> windowValues) | |
| { | |
| return windowValues.map( | |
| (inner) => (inner as Map).cast<Object, Map<Object, num> >() ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Solved by re-creating the outer maps so the inner maps could be cast. | |
| final results = new List< Map<Object, Map<Object, num> > >(); | |
| for (final value in windowValues) | |
| { | |
| Map<Object, Map<Object, num> > outerMap = | |
| new Map<Object, Map<Object, num> >.fromEntries( | |
| (value as Map).entries.map( (entry) => new MapEntry<Object, Map<Object, num> >(entry.key, (entry.value as Map).cast<Object, num>() ) ) | |
| ); |