text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```xml import {Component, OnInit} from 'angular2/core'; import {Router, ROUTER_DIRECTIVES} from 'angular2/router'; import {IPlan} from '../../interfaces/iplan'; import {PlanService} from '../../services/plan-service'; @Component({ selector: 'plan-new', templateUrl: './components/plan-new/plan-new.html', p...
/content/code_sandbox/app/components/plan-new/plan-new.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
5,494
```html <div class="menu" [class.menu-hidden]="hideMenu"> <header> <i class="fa fa-cogs menu-toggle" (click)="hideMenu = !hideMenu"></i> <h3>display options</h3> </header> <ul> <li> <input id="showPlanStats" type="checkbox" [(ngModel)]="viewOptions.showPlanStats"> <label cl...
/content/code_sandbox/app/components/plan-view/plan-view.html
html
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
1,013
```xml import {Component, OnInit} from 'angular2/core'; import {ROUTER_DIRECTIVES, RouteParams} from 'angular2/router'; import {IPlan} from '../../interfaces/iplan'; import {HighlightType, ViewMode} from '../../enums'; import {PlanNode} from '../plan-node/plan-node'; import {PlanService} from '../../services/plan-serv...
/content/code_sandbox/app/components/plan-view/plan-view.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
512
```xml import {Component} from 'angular2/core'; @Component({ selector: 'about', templateUrl: './components/about/about.html' }) export class About {} ```
/content/code_sandbox/app/components/about/about.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
33
```html <div class="page page-content"> <h2>Postgres EXPLAIN Visualizer (Pev)</h2> <p> Pev is designed to make <a href="path_to_url"> Postgres query plans</a> easier to grok. It displays a plan as a tree, with each node representing a step that takes in a row set and produces another. Pev can sh...
/content/code_sandbox/app/components/about/about.html
html
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
546
```xml import {Component, ViewEncapsulation} from 'angular2/core'; import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router'; import {PlanView} from '../plan-view/plan-view'; import {PlanList} from '../plan-list/plan-list'; import {PlanNew} from '../plan-new/plan-new'; import {About} from '../about/about'; @Comp...
/content/code_sandbox/app/components/app/app.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
213
```html <nav> <div class="nav-container"> <a class="about"[routerLink]="['About']">about</a> <a class="btn btn-primary btn-lg pull-right" [routerLink]="['PlanNew']">new plan</a> <a [routerLink]="['PlanList']">plans</a> </div> </nav> <router-outlet></router-outlet> <footer><strong>pev</strong> ...
/content/code_sandbox/app/components/app/app.html
html
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
162
```scss $menu-offset: 120px; $menu-toggle-height: 45px; .menu { width: 190px; height: 260px; position: absolute; font-size: $font-size-sm; top: $menu-offset - 5; left: 0; background-color: $gray-dark; box-shadow: 1px 1px 2px 1px rgba(0,0,0,0.2); color: #fff; border-top-right-radius: $bord...
/content/code_sandbox/app/assets/sass/_menu.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
356
```scss .page { padding-top: $padding-lg; margin: auto; width: $page-width; min-height: 600px; em { font-style: italic; } } .page-content { h2 { font-size: round($font-size-base * 2); line-height: 2; } h3 { font-size: round($font-size-base * 1.7); margin-top: $p...
/content/code_sandbox/app/assets/sass/_page.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
260
```scss .plan-node { text-decoration: none; color: $text-color; display: inline-block; transition: all 0.1s; position: relative; padding: $padding-base $padding-lg; background-color: #fff; font-size: $font-size-sm; border: 1px solid $line-color; margin-bottom: 4px; border-radius: $border-radius...
/content/code_sandbox/app/assets/sass/_plan-node.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
789
```scss .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; opacity: 0.1; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; transition: all 1s; .modal-dialog { posit...
/content/code_sandbox/app/assets/sass/_modal.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
311
```scss .plan-query-container { border: 1px solid $line-color; padding: $padding-xl; background-color: #fff; position: absolute; box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.3); border-radius: $border-radius-base; margin-bottom: $padding-xl; z-index: 6; left: 0; code { font-weight: 300...
/content/code_sandbox/app/assets/sass/_highlight.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
496
```scss @import "compass/css3/user-interface"; .input-box { @include input-placeholder { color: $gray; font-size: round($font-size-base * 1.4); } &:focus { box-shadow: 0 0 5px rgba(81, 203, 238, 1); } &-main { font-size: round($font-size-base * 1.4); width: 700px; border: 0; bor...
/content/code_sandbox/app/assets/sass/_forms.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
230
```scss footer { border-top: 2px solid $gray-light; margin: round($padding-lg * 2); padding: round($padding-lg * 2); color: $gray; text-align: center; width: 600px; margin: auto; .fa { font-size: $font-size-lg; margin-left: $padding-base; } } ```
/content/code_sandbox/app/assets/sass/_footer.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
85
```scss html { height: 100%; } body { font-size: $font-size-base; font-weight: 300; color: $text-color; height: 100%; width: 100%; background-color: $bg-color; line-height: $line-height-base; } strong { font-weight: 600; } body, input, a, button, textarea { font-family: $font-family-sans-serif; font-weigh...
/content/code_sandbox/app/assets/sass/_common.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
379
```scss .table { width: 100%; td { border-bottom: 1px solid $line-color; padding: $padding-base; } tr:hover { background-color: $gray-lightest; } } ```
/content/code_sandbox/app/assets/sass/_table.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
50
```scss @import "compass/reset"; @import "font-awesome/styles"; @import "variables"; @import "fonts"; @import "common"; @import "buttons"; @import "forms"; @import "nav"; @import "plan"; @import "plan-node"; @import "menu"; @import "page"; @import "table"; @import "modal"; @import "footer"; @import "highlight"; ```
/content/code_sandbox/app/assets/sass/styles.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
85
```scss @font-face { font-family: 'noto'; src: url('../fonts/noto-sans-regular.ttf') format('truetype'); font-weight: 300; font-style: normal; } @font-face { font-family: 'noto'; src: url('../fonts/noto-sans-italic.ttf') format('truetype'); font-weight: 300; font-style: italic; } @font-face { font-f...
/content/code_sandbox/app/assets/sass/_fonts.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
270
```scss .btn { border-radius: $border-radius-base; padding: $padding-base $padding-lg; font-size: $font-size-base; line-height: 1.2; text-decoration: none; text-transform: uppercase; cursor: pointer; margin-left: $padding-base; &-default { border: 1px solid $blue; color: $blue; back...
/content/code_sandbox/app/assets/sass/_buttons.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
519
```scss $connector-height: 12px; $connector-line: 2px solid darken($line-color, 10%); .plan { padding-bottom: $padding-lg * 3; margin-left: 100px; ul { display: flex; padding-top: $connector-height; position: relative; margin: auto; transition: all 0.5s; margin-top: -5px; // vertical connector...
/content/code_sandbox/app/assets/sass/_plan.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
779
```scss //vars $page-width: 1000px; $padding-base: 6px; $padding-sm: 3px; $padding-lg: 10px; $padding-xl: 18px; $font-size-base: 13px; $font-size-xs: round($font-size-base * 0.7); $font-size-sm: round($font-size-base * 0.9); $font-size-lg: round($font-size-base * 1.3); $font-size-xl: round($font-size-base * 1.7); $f...
/content/code_sandbox/app/assets/sass/_variables.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
409
```scss nav { font-size: round($font-size-base * 1.3); background-color: #fff; padding: round($padding-lg * 1.5); .nav-container { width: $page-width; margin: auto; } .about { float: right; line-height: 2; margin-left: $padding-xl; } } ```
/content/code_sandbox/app/assets/sass/_nav.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
83
```scss // Spinning Icons // -------------------------- .#{$fa-css-prefix}-spin { -webkit-animation: fa-spin 2s infinite linear; animation: fa-spin 2s infinite linear; } .#{$fa-css-prefix}-pulse { -webkit-animation: fa-spin 1s infinite steps(8); animation: fa-spin 1s infinite steps(8); } @-we...
/content/code_sandbox/app/assets/sass/font-awesome/_animated.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
195
```scss // Icon Sizes // ------------------------- /* makes the font 33% larger relative to the icon container */ .#{$fa-css-prefix}-lg { font-size: (4em / 3); line-height: (3em / 4); vertical-align: -15%; } .#{$fa-css-prefix}-2x { font-size: 2em; } .#{$fa-css-prefix}-3x { font-size: 3em; } .#{$fa-css-prefix}-4x...
/content/code_sandbox/app/assets/sass/font-awesome/_larger.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
128
```scss /* FONT PATH * -------------------------- */ @font-face { font-family: 'FontAwesome'; src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}'); src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'), url('#{$fa-font-path}/fontawesome-web...
/content/code_sandbox/app/assets/sass/font-awesome/_path.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
220
```scss // Bordered & Pulled // ------------------------- .#{$fa-css-prefix}-border { padding: .2em .25em .15em; border: solid .08em $fa-border-color; border-radius: .1em; } .#{$fa-css-prefix}-pull-left { float: left; } .#{$fa-css-prefix}-pull-right { float: right; } .#{$fa-css-prefix} { &.#{$fa-css-prefix}-...
/content/code_sandbox/app/assets/sass/font-awesome/_bordered-pulled.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
190
```scss // List Icons // ------------------------- .#{$fa-css-prefix}-ul { padding-left: 0; margin-left: $fa-li-width; list-style-type: none; > li { position: relative; } } .#{$fa-css-prefix}-li { position: absolute; left: -$fa-li-width; width: $fa-li-width; top: (2em / 14); text-align: center; &.#...
/content/code_sandbox/app/assets/sass/font-awesome/_list.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
122
```scss /*! * Font Awesome 4.5.0 by @davegandy - path_to_url - @fontawesome */ @import "variables"; @import "mixins"; @import "path"; @import "core"; @import "larger"; @import "fixed-width"; @import "list"; @import "bordered-pulled"; @import "animated"; @import "rotated-flipped"; @import "stacked"; @import "icons";...
/content/code_sandbox/app/assets/sass/font-awesome/_styles.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
98
```scss // Base Class Definition // ------------------------- .#{$fa-css-prefix} { display: inline-block; font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration font-size: inherit; // can't have font-size inherit on line above, so need to override t...
/content/code_sandbox/app/assets/sass/font-awesome/_core.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
113
```scss // Stacked Icons // ------------------------- .#{$fa-css-prefix}-stack { position: relative; display: inline-block; width: 2em; height: 2em; line-height: 2em; vertical-align: middle; } .#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x { position: absolute; left: 0; width: 100%; text-...
/content/code_sandbox/app/assets/sass/font-awesome/_stacked.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
155
```css html,body,div,span,applet,object,iframe,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,...
/content/code_sandbox/app/assets/styles.css
css
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
10,718
```scss // Variables // -------------------------- $fa-font-path: "../fonts" !default; $fa-font-size-base: 14px !default; $fa-line-height-base: 1 !default; //$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.5.0/fonts" !default; // for referencing Bootstrap CDN font files directly $fa-css-prefix...
/content/code_sandbox/app/assets/sass/font-awesome/_variables.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
7,871
```scss // Rotated & Flipped Icons // ------------------------- .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); } .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); } .#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); } .#{$fa-css-prefix}-flip-horizontal { @includ...
/content/code_sandbox/app/assets/sass/font-awesome/_rotated-flipped.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
217
```scss // Fixed Width Icons // ------------------------- .#{$fa-css-prefix}-fw { width: (18em / 14); text-align: center; } ```
/content/code_sandbox/app/assets/sass/font-awesome/_fixed-width.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
34
```scss // Mixins // -------------------------- @mixin fa-icon() { display: inline-block; font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration font-size: inherit; // can't have font-size inherit on line above, so need to override text-rendering: a...
/content/code_sandbox/app/assets/sass/font-awesome/_mixins.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
239
```scss /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons */ .#{$fa-css-prefix}-glass:before { content: $fa-var-glass; } .#{$fa-css-prefix}-music:before { content: $fa-var-music; } .#{$fa-css-prefix}-search:before { content: $fa-v...
/content/code_sandbox/app/assets/sass/font-awesome/_icons.scss
scss
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
12,756
```xml import {IPlan} from '../interfaces/iplan'; import {EstimateDirection} from '../enums'; /// <reference path="moment.d.ts" /> /// <reference path="lodash.d.ts" /> export class PlanService { // plan property keys NODE_TYPE_PROP: string = 'Node Type'; ACTUAL_ROWS_PROP: string = 'Actual Rows'; PLAN_R...
/content/code_sandbox/app/services/plan-service.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
1,608
```xml /// <reference path="highlight.d.ts" /> /// <reference path="lodash.d.ts" /> export class SyntaxHighlightService { OPEN_TAG: string = ' _OPEN_TAG_'; CLOSE_TAG: string = '_CLOSE_TAG_'; highlight(code: string, keyItems: Array<string>) { hljs.registerLanguage('sql', LANG_SQL); hljs.con...
/content/code_sandbox/app/services/syntax-highlight-service.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
3,053
```xml export class ColorService { /** * path_to_url * * Converts an HSL color value to RGB. Conversion formula * adapted from path_to_url * Assumes h, s, and l are contained in the set [0, 1] and * returns r, g, and b in the set [0, 255]. * * @para...
/content/code_sandbox/app/services/color-service.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
557
```css html,body,div,span,applet,object,iframe,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,...
/content/code_sandbox/app/assets/css/styles.css
css
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
10,718
```xml /// <reference path="lodash.d.ts" /> export class HelpService { getNodeTypeDescription(nodeType: string) { return NODE_DESCRIPTIONS[nodeType.toUpperCase()]; } } export var NODE_DESCRIPTIONS = { 'LIMIT':'returns a specified number of rows from a record set.', 'SORT': 'sorts a record set based ...
/content/code_sandbox/app/services/help-service.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
547
```xml export * from './utils/template-injectables'; export * from './utils/template-locals'; export * from './utils/server'; export * from './utils/tasks_tools'; export function tsProjectFn(plugins) { return plugins.typescript.createProject('tsconfig.json', { typescript: require('typescript') }); } ```
/content/code_sandbox/tools/utils.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
68
```xml declare module 'connect-livereload' { function connectLivereload(options?: any): any; module connectLivereload {} export = connectLivereload; } ```
/content/code_sandbox/tools/typings/connect-livereload.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
35
```xml declare module 'tiny-lr' { function tinylr(): ITinylr; module tinylr {} export = tinylr; interface ITinylr { changed(options: any): void; listen(port: number): void; } } ```
/content/code_sandbox/tools/typings/tiny-lr.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
59
```xml // path_to_url // Does not support ES2015 import (import * as open from 'open'). declare module 'open' { function open(target: string, app?: string): void; module open {} export = open; } ```
/content/code_sandbox/tools/typings/open.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
51
```xml import {readFileSync} from 'fs'; import {argv} from 'yargs'; // -------------- // Configuration. export const ENV = argv['env'] || 'dev'; export const DEBUG = argv['debug'] || false; export const PORT = argv['port'] || 5555; export const LIVE_RELOAD_PORT = argv['reload-port'] || 4002; export const DOCS_PORT = a...
/content/code_sandbox/tools/config.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
908
```xml declare module 'yargs' { var yargs: IYargs; export = yargs; // Minimalistic but serves the usage in the seed. interface IYargs { argv: any; } } ```
/content/code_sandbox/tools/typings/yargs.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
49
```xml declare module 'slash' { function slash(path: string): string; module slash {} export = slash; } ```
/content/code_sandbox/tools/typings/slash.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
26
```xml // Type definitions for gulp-load-plugins // Project: path_to_url // Definitions by: Joe Skeen <path_to_url // Definitions: path_to_url // Does not support ES2015 import (import * as open from 'open'). /** Loads in any gulp plugins and attaches them to an object, freeing you up from having to manually require ...
/content/code_sandbox/tools/typings/gulp-load-plugins.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
396
```xml declare module 'run-sequence' { function runSequence(...args: any[]): void; module runSequence {} export = runSequence; } ```
/content/code_sandbox/tools/typings/run-sequence.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
32
```xml declare module 'systemjs-builder' { class Builder { constructor(configObject?: any, baseUrl?: string, configPath?: string); bundle(source: string, target: string, options?: any): Promise<any>; buildStatic(source: string, target: string, options?: any): Promise<any>; } module Builder {} expor...
/content/code_sandbox/tools/typings/systemjs-builder.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
76
```xml declare module 'merge-stream' { function mergeStream(...streams: NodeJS.ReadWriteStream[]): MergeStream; interface MergeStream extends NodeJS.ReadWriteStream { add(stream: NodeJS.ReadWriteStream): MergeStream; } module mergeStream {} export = mergeStream; } ```
/content/code_sandbox/tools/typings/merge-stream.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
62
```xml import {join} from 'path'; import {APP_SRC} from '../config'; export = function watchDev(gulp, plugins) { return function () { plugins.watch(join(APP_SRC, '**/*'), () => gulp.start('build.dev')); }; }; ```
/content/code_sandbox/tools/tasks/watch.dev.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
54
```xml // Use this minimalistic definition file as bluebird dependency // generate a lot of errors. declare module 'karma' { var karma: IKarma; export = karma; interface IKarma { server: { start(options: any, callback: Function): void }; } } ```
/content/code_sandbox/tools/typings/karma.d.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
65
```xml import {join} from 'path'; import {APP_SRC, TMP_DIR} from '../config'; import {templateLocals, tsProjectFn} from '../utils'; export = function buildJSDev(gulp, plugins) { return function () { let tsProject = tsProjectFn(plugins); let src = [ join(APP_SRC, '**/*.ts'), '!...
/content/code_sandbox/tools/tasks/build.js.prod.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
160
```xml import * as async from 'async'; import * as del from 'del'; import {APP_DEST, TEST_DEST, TMP_DIR} from '../config'; export = function clean(gulp, plugins, option) { return function (done) { switch(option) { case 'all' : cleanAll(done); break; case 'dist' : cleanDist(done); break; ...
/content/code_sandbox/tools/tasks/clean.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
191
```xml import {join} from 'path'; import {APP_SRC, TOOLS_DIR} from '../config'; export = function tslint(gulp, plugins) { return function () { let src = [ join(APP_SRC, '**/*.ts'), '!' + join(APP_SRC, '**/*.d.ts'), join(TOOLS_DIR, '**/*.ts'), '!' + ...
/content/code_sandbox/tools/tasks/tslint.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
146
```xml import {join} from 'path'; import {APP_SRC, TEST_DEST} from '../config'; import {tsProjectFn} from '../utils'; export = function buildTest(gulp, plugins) { return function () { let tsProject = tsProjectFn(plugins); let src = [ join(APP_SRC, '**/*.ts'), '!' + join(APP_SR...
/content/code_sandbox/tools/tasks/build.test.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
142
```xml import {VERSION_NPM, VERSION_NODE} from '../config'; function reportError(message: string) { console.error(require('chalk').white.bgRed.bold(message)); process.exit(1); } module.exports = function check(gulp, plugins) { return function () { let exec = require('child_process').exec; let semver = r...
/content/code_sandbox/tools/tasks/check.versions.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
258
```xml import * as merge from 'merge-stream'; import {join} from 'path'; import {APP_SRC, TMP_DIR} from '../config'; // const HTML_MINIFIER_OPTS = { empty: true }; export = function buildJSDev(gulp, plugins) { return function () { return merge(minifyHtml(), minifyCss()); function minifyHtml() { retu...
/content/code_sandbox/tools/tasks/build.html_css.prod.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
156
```xml import {join} from 'path'; import {APP_SRC, APP_DEST} from '../config'; export = function buildFontsDev(gulp, plugins) { return function () { return gulp.src([ join(APP_SRC, '**/*.eot'), join(APP_SRC, '**/*.ttf'), join(APP_SRC, '**/*.woff'), join(APP_SRC, '**/*.woff2'), ...
/content/code_sandbox/tools/tasks/build.fonts.dev.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
104
```xml import * as runSequence from 'run-sequence'; import {join} from 'path'; import {APP_SRC} from '../config'; import {notifyLiveReload} from '../utils'; export = function watchServe(gulp, plugins) { return function () { plugins.watch(join(APP_SRC, '**'), e => runSequence('build.dev', () => notifyLiveRe...
/content/code_sandbox/tools/tasks/watch.serve.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
84
```xml export = function npm(gulp, plugins) { return plugins.shell.task([ 'npm prune' ]); }; ```
/content/code_sandbox/tools/tasks/npm.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
24
```xml import * as karma from 'karma'; import {join} from 'path'; export = function karmaStart() { return function (done) { new (<any>karma).Server({ configFile: join(process.cwd(), 'karma.conf.js'), singleRun: true }).start(done); }; }; ```
/content/code_sandbox/tools/tasks/karma.start.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
68
```xml import {join} from 'path'; import {APP_SRC} from '../config'; export = function buildSassDev(gulp, plugins, option) { return function() { return gulp.src(join(APP_SRC, '**', '*.scss')) .pipe(plugins.plumber({ // this allows gulp not to crash on sass compilation errors ...
/content/code_sandbox/tools/tasks/build.sass.dev.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
145
```xml import {join} from 'path'; import {APP_SRC, APP_TITLE, DOCS_DEST} from '../config'; export = function buildDocs(gulp, plugins, option) { return function() { let src = [ join(APP_SRC, '**/*.ts'), '!' + join(APP_SRC, '**/*_spec.ts') ]; return gulp.src(src)...
/content/code_sandbox/tools/tasks/build.docs.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
180
```xml import {parallel} from 'async'; import {join} from 'path'; import * as Builder from 'systemjs-builder'; import {BUNDLES_DEST, SYSTEM_CONFIG_BUILDER} from '../config'; const BUNDLE_OPTS = { minify: true, sourceMaps: true, format: 'cjs' }; export = function bundles(gulp, plugins) { return function (done)...
/content/code_sandbox/tools/tasks/build.bundles.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
152
```xml import {join} from 'path'; import {APP_SRC} from '../config'; export = function watchTest(gulp, plugins) { return function () { plugins.watch(join(APP_SRC, '**/*.ts'), () => gulp.start('build.test')); }; }; ```
/content/code_sandbox/tools/tasks/watch.test.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
55
```xml import * as merge from 'merge-stream'; import {DEPENDENCIES} from '../config'; export = function buildDepsProd(gulp, plugins) { return function () { let stream = merge(); DEPENDENCIES.forEach(dep => { stream.add(addStream(dep)); }); return stream; function addStream(dep) { l...
/content/code_sandbox/tools/tasks/build.deps.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
96
```xml import {serveSPA} from '../utils'; export = function serverStart(gulp, plugins) { return function () { serveSPA(); }; }; ```
/content/code_sandbox/tools/tasks/server.start.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
32
```xml import {serveDocs} from '../utils'; export = function serverStart(gulp, plugins) { return function () { serveDocs(); }; }; ```
/content/code_sandbox/tools/tasks/serve.docs.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
32
```xml export = function tsd(gulp, plugins) { return plugins.shell.task([ 'tsd reinstall --clean', 'tsd link', 'tsd rebundle' ]); }; ```
/content/code_sandbox/tools/tasks/tsd.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
41
```xml import {join, sep} from 'path'; import {APP_SRC, APP_DEST, DEPENDENCIES, ENV} from '../config'; import {transformPath, templateLocals} from '../utils'; export = function buildIndexDev(gulp, plugins) { return function () { return gulp.src(join(APP_SRC, 'index.html')) // NOTE: There might be a way to ...
/content/code_sandbox/tools/tasks/build.index.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
259
```xml import {join} from 'path'; import {APP_SRC, APP_DEST} from '../config'; import {templateLocals, tsProjectFn} from '../utils'; export = function buildJSDev(gulp, plugins) { let tsProject = tsProjectFn(plugins); return function () { let src = [ join(APP_SRC, '**/*.ts'), '!'...
/content/code_sandbox/tools/tasks/build.js.dev.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
193
```xml import {join} from 'path'; import {APP_SRC, APP_DEST} from '../config'; export = function buildImagesDev(gulp, plugins) { return function () { return gulp.src([ join(APP_SRC, '**/*.gif'), join(APP_SRC, '**/*.jpg'), join(APP_SRC, '**/*.png'), join(APP_SRC, '**/*.svg') ...
/content/code_sandbox/tools/tasks/build.img.dev.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
91
```xml import * as connectLivereload from 'connect-livereload'; import * as express from 'express'; import * as tinylrFn from 'tiny-lr'; import * as openResource from 'open'; import * as serveStatic from 'serve-static'; import {resolve} from 'path'; import {APP_BASE, APP_DEST, DOCS_DEST, LIVE_RELOAD_PORT, DOCS_PORT, PO...
/content/code_sandbox/tools/utils/server.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
271
```xml import * as slash from 'slash'; import {join} from 'path'; import {APP_BASE, APP_DEST, ENV} from '../config'; let injectables: string[] = []; export function injectableAssetsRef() { return injectables; } export function registerInjectableAssetsRef(paths: string[], target: string = '') { injectables = inje...
/content/code_sandbox/tools/utils/template-injectables.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
170
```xml import * as gulp from 'gulp'; import * as util from 'gulp-util'; import * as chalk from 'chalk'; import * as gulpLoadPlugins from 'gulp-load-plugins'; import * as _runSequence from 'run-sequence'; import {readdirSync, existsSync, lstatSync} from 'fs'; import {join} from 'path'; import {TOOLS_DIR} from '../config...
/content/code_sandbox/tools/utils/tasks_tools.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
499
```xml import {APP_BASE, APP_DEST, APP_ROOT, APP_TITLE, SYSTEM_CONFIG, VERSION} from '../config'; // TODO: Add an interface to register more template locals. export function templateLocals() { return { APP_BASE, APP_DEST, APP_ROOT, APP_TITLE, SYSTEM_CONFIG, VERSION }; } ```
/content/code_sandbox/tools/utils/template-locals.ts
xml
2016-01-04T01:19:52
2024-08-15T22:13:36
pev
AlexTatiyants/pev
2,757
72
```emacs lisp ((emacs-lisp-mode (indent-tabs-mode . nil) (tab-width . 2)) (git-commit-mode (git-commit-major-mode . git-commit-elisp-text-mode))) ```
/content/code_sandbox/.dir-locals.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
42
```unknown .POSIX: MAKEFLAGS += k CASK = cask EMACS ?= emacs NO_LOAD_WARNINGS = --eval "(defvar treemacs-no-load-time-warnings t)" SRC_DIR = src/elisp EXTRA_DIR = src/extra EMACSFLAGS = -Q -batch -L $(SRC_DIR) $(NO_LOAD_WARNINGS) COMPILE_COMMAND = --eval "(setq byte-compile-error-on-warn t)" -f...
/content/code_sandbox/Makefile
unknown
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
997
```org # -*- fill-column: 100 -*- #+STARTUP: content * Changelog ** current master - Deprecated ~treemacs-window-background-color~ in favour of ~treemacs-window-background-face~ and ~treemacs-hl-line-face~ - Added ~treemacs-copy-absolute-path-at-point~ - Added ~treemacs-start-on-boot~ - Made it possible to disable w...
/content/code_sandbox/Changelog.org
org
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
2,079
```unknown (source gnu) (source melpa) (package-file "src/elisp/treemacs.el") (development (depends-on "dash") (depends-on "s") (depends-on "ht") (depends-on "ace-window") (depends-on "all-the-icons") (depends-on "pfuture") (depends-on "hydra") (depends-on "cfrs") (depends-on "evil") (depends-on "projectile...
/content/code_sandbox/Cask
unknown
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
144
```org # -*- fill-column: 120 -*- * Content :TOC:noexport: - [[#treemacs-extension-tutorial][Treemacs Extension Tutorial]] - [[#intro][Intro]] - [[#setup-basics][Setup Basics]] - [[#defining-node-types][Defining Node Types]] - [[#en...
/content/code_sandbox/Extensions.org
org
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
4,510
```org # -*- fill-column: 120 org-list-indent-offset: 1 toc-org-max-depth: 2 org-hide-emphasis-markers: nil -*- #+STARTUP: noinlineimages [[path_to_url [[path_to_url#/treemacs][file:path_to_url [[path_to_url#/treemacs][file:path_to_url * Treemacs - a tree layout file explorer for Emacs ...
/content/code_sandbox/README.org
org
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
16,578
```emacs lisp ;;; -*- lexical-binding: t -*- ;;; Based on path_to_url (require 'bytecomp) (require 'checkdoc) (require 'dash) (require 's) (defconst all-el-files (append (directory-files "./src/elisp" :full ".el") (directory-files "./src/extra" :full ".el"))) (defconst valid-doc-words ...
/content/code_sandbox/test/checkdock.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
962
```emacs lisp (defconst FOO) (defun fn1 ()) (defun fn2 ()) ```
/content/code_sandbox/test/testdir1/testdir2/testdir3/testfile.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
15
```org * Foo ** Foo2 *** Foo3 * Bar ```
/content/code_sandbox/test/testdir1/testdir2/testdir3/testfile.org
org
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
15
```python from subprocess import Popen, PIPE import sys STATUS_CMD = "git status -sb" def main(): proc = Popen(STATUS_CMD, shell=True, stdout=PIPE, bufsize=100) if (proc.wait() != 0): sys.exit(2) line = proc.stdout.readline() i_open = line.find(b"[") i_close = line.find(b"]") if (i_...
/content/code_sandbox/src/scripts/treemacs-git-commit-diff.py
python
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
365
```python from subprocess import Popen, PIPE from os.path import exists import sys GIT_CMD = "git clean -ndX" STDOUT = sys.stdout.buffer def quote(string): return b'"' + string + b'"' def process_git_output(root, proc): root_bytes = bytes(root, "utf-8") count = 0 for line in proc.stdout: # ...
/content/code_sandbox/src/scripts/treemacs-find-ignored-files.py
python
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
313
```python from subprocess import Popen, PIPE import sys # Command line arguments are a list of maildirs. # The output is a list of items in the form '((P1 A1) (P2 A2))' where P is the node path for a maildir # node, and A is the mail count annotation text # Exmaple: '(((treemacs-mu4e "/web/") " (176)")((treemacs-mu4e ...
/content/code_sandbox/src/scripts/treemacs-count-mail.py
python
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
522
```python from os import listdir from os.path import isdir from posixpath import join import sys import os LIMIT = int(sys.argv[1]) SHOW_ALL = sys.argv[2] == 't' ROOTS = sys.argv[3:] STDOUT = sys.stdout # special workaround for windows platforms # the default `join' implementation cannot quite deal with windo...
/content/code_sandbox/src/scripts/treemacs-dirs-to-collapse.py
python
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
705
```python from subprocess import run, Popen, PIPE, DEVNULL, check_output import sys import os # There are 3+ command line arguments: # 1) the file to update # 2) the file's previous state, to check if things changed at all # 3) the file's parents that need to be updated as well FILE = sys.argv[1] OLD_FACE = sys.argv[...
/content/code_sandbox/src/scripts/treemacs-single-file-git-status.py
python
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
898
```python from subprocess import Popen, PIPE from os import listdir, environ from os.path import isdir, islink from posixpath import join import sys # The script is supplied with the followig command line arguments # 1) the repository root - used only for file-joining to an absolute path # the actual working direct...
/content/code_sandbox/src/scripts/treemacs-git-status.py
python
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
1,171
```emacs lisp ;;; treemacs-test.el --- Tests for treemacs -*- lexical-binding: t -*- ;; This program is free software; you can redistribute it and/or modify ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied ...
/content/code_sandbox/test/treemacs-test.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
23,644
```emacs lisp ;;; treemacs.el --- A tree style file viewer package -*- lexical-binding: t -*- ;; This program is free software; you can redistribute it and/or modify ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the...
/content/code_sandbox/src/elisp/treemacs-mouse-interface.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
4,061
```emacs lisp ;;; treemacs.el --- A tree style file viewer package -*- lexical-binding: t -*- ;; This program is free software; you can redistribute it and/or modify ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the...
/content/code_sandbox/src/elisp/treemacs-interface.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
15,335
```emacs lisp ;;; treemacs.el --- A tree style file viewer package -*- lexical-binding: t -*- ;; This program is free software; you can redistribute it and/or modify ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the...
/content/code_sandbox/src/elisp/treemacs-treelib.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
10,693
```emacs lisp ;;; treemacs.el --- A tree style file viewer package -*- lexical-binding: t -*- ;; This program is free software; you can redistribute it and/or modify ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the...
/content/code_sandbox/src/elisp/treemacs-rendering.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
13,299
```emacs lisp ;;; treemacs.el --- A tree style file explorer package -*- lexical-binding: t -*- ;; Author: Alexander Miller <alexanderm@web.de> ;; Package-Requires: ((emacs "26.1") (cl-lib "0.5") (dash "2.11.0") (s "1.12.0") (ace-window "0.9.0") (pfuture "1.7") (hydra "0.13.2") (ht "2.2") (cfrs "1.3.2")) ;; Homepage:...
/content/code_sandbox/src/elisp/treemacs.el
emacs lisp
2016-07-17T21:13:35
2024-08-16T10:41:21
treemacs
Alexander-Miller/treemacs
2,068
2,952