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
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Iterator; | |
import org.apache.poi.hssf.usermodel.HSSFCell; | |
import org.apache.poi.hssf.usermodel.HSSFRow; | |
import org.apache.poi.hssf.usermodel.HSSFSheet; | |
import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
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
import {ServerErrorResponseParser} from '../../../../src/components/common/Helpers/ServerErrorParser/server.error.response.parser'; | |
describe('ServerErrorParser', () => { | |
test('hasError', () => { | |
const testCases = [{ | |
name: 'Empty response object', | |
response: {}, | |
actual: false | |
}, { | |
name: 'Undefined', |
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 "sass:color"; | |
$white: #FFFFFF; | |
$bg-01: #202123; | |
$bg-02: #252628; | |
$bg-03: #2B2C2E; | |
$bg-04: #2F3032; | |
$bg-05: $white; | |
$bg-06: $white; |
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 "sass:color"; | |
$white: #FFFFFF; | |
$bg-01: #202123; | |
$bg-02: #252628; | |
$bg-03: #2B2C2E; | |
$bg-04: #2F3032; | |
$bg-05: $white; | |
$bg-06: $white; |
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
<div class="container"> | |
<div class="panzoom"> | |
<div class="diagram"> | |
<div id="i0" class="item">Root!</div> | |
<div id="i1" class="item">Child 1</div> | |
<div id="i11" class="item">Child 1.1</div> | |
<div id="i12" class="item">Child 1.2</div> | |
<div id="i2" class="item">Child 2</div> | |
<div id="i21" class="item">Child 2.1</div> | |
<div id="i3" class="item">Child 3</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
import {BaseEventEmitter} from './base.event.emitter' | |
import {RESIZE_EVENT_NAME, ResizeEventEmitter} from "./resize.event.emitter"; | |
import {fromEvent, Subscription} from "rxjs"; | |
export const CHANGE_OFFSET_SIZE = 'change:offset:size'; | |
export interface ChangeOffsetSizeData { | |
element: HTMLElement; | |
newOffsetWidth: number; |
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
{ | |
"masterId": "xnEAAARaZhn7WA", | |
"revisionId": "CIKAAABbZhn7WA", | |
"revision": "B", | |
"statuses": [ | |
{ | |
"name": "TCM Released", | |
"displayName": "TCM Released" | |
} | |
], |
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
/** | |
* Get the caret position in all cases | |
* | |
* @returns {object} left, top distance in pixels | |
*/ | |
getCaretTopPoint () { | |
const sel = document.getSelection() | |
const r = sel.getRangeAt(0) | |
let rect | |
let r2 |
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
/* | |
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects. | |
It will generate several classes such as: | |
.m-r-10 which gives margin-right 10 pixels. | |
.m-r-15 gives MARGIN to the RIGHT 15 pixels. | |
.m-t-15 gives MARGIN to the TOP 15 pixels and so on. | |
.p-b-5 gives PADDING to the BOTTOM of 5 pixels | |
.p-l-40 gives PADDING to the LEFT of 40 pixels |
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
import { | |
Injectable, | |
Injector, | |
ComponentFactoryResolver, | |
EmbeddedViewRef, | |
ApplicationRef | |
} from '@angular/core'; | |
@Injectable() | |
export class DomService { |
NewerOlder