This file contains 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
'use strict'; | |
var atomPerforce = module, // sugary alias | |
path = require('path'), | |
os = require('os'), | |
p4 = require('node-perforce'), | |
Q = require('q'), | |
$ = require('jquery'), | |
environment = require('./environment'), | |
clientStatusBarElement = $('<div/>') |
This file contains 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
Using https://atom.io/packages/sync-settings |
This file contains 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
Area Type | Town name | number value | region | sub-region | |
---|---|---|---|---|---|
Unknown Area Type | Hlegu | 1511.19895194 | Yangon | Yangon, (North) | |
Unknown Area Type | Cocokyun | 33.8113207395 | Yangon | Yangon, (South) | |
Unknown Area Type | Mese | 1818.94431751 | Kayah | Bawlake |
This file contains 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
// Make a RxJS custom observable, using the pattern seen in rx.angular.js and RxJS-DOM. | |
// This is a skeleton, with meaningless code at the core, it is only to show the pattern. | |
/* global define */// Appeases ESLint | |
/* eslint no-invalid-this: 0 */ | |
// UMD (global & AMD & Common.js) loader | |
(function __iife(root, factory) | |
{ | |
// The AMD way |
This file contains 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
// TypeScript decorators. | |
// Shows how decorators compose, how to pass parameters. | |
// For classes, shows how to enrich a class and alter the constructor. | |
// You can just paste this gist in the TS playground... | |
//import "reflect-metadata"; // Cause error in playground | |
// tslint:disable no-console // These are for demo purpose | |
// tslint:disable member-access // Simpler |
This file contains 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
body | |
{ | |
display: flex; | |
flex-direction: column; | |
} | |
#ParticipantList | |
{ | |
max-width: 500px; | |
} |
This file contains 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
// index.ts as typed in https://stackblitz.com/edit/rxjs-iqjrzu | |
import { of, throwError } from 'rxjs'; | |
import { map, switchMap, catchError, tap, finalize } from 'rxjs/operators'; | |
const source = of('World').pipe( | |
map(x => { return { good: `Hello ${x}!` }; }), | |
// Comment out for testing regular behavior | |
switchMap((x) => throwError('bad')), | |
); |
This file contains 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
/******* | |
* Read input from STDIN | |
* Use: console.log() to output your result. | |
* Use: console.error() to output debug information into STDERR | |
* ***/ | |
var input = []; | |
// readline_object.on("line", (value) => { //Read input values | |
// input.push(value); |
This file contains 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
const vscode = require('vscode'); | |
/* | |
* VSCode Macros (exceedsystem.vscode-macros) for Angular refactoring. | |
* | |
* Macro configuration settings | |
* { | |
* [name: string]: { ... Name of the macro | |
* no: number, ... Order of the macro | |
* func: () => string | undefined ... Name of the body of the macro function; if returning a string, it is shown in a notification. |
OlderNewer