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 { Directive, Output, HostListener, EventEmitter } from '@angular/core'; | |
@Directive({ selector: '[mouseWheel]' }) | |
export class MouseWheelDirective { | |
throttleTime: number = Date.now(); | |
@Output() mouseWheelUp = new EventEmitter(); | |
@Output() mouseWheelDown = new EventEmitter(); | |
@HostListener('mousewheel', ['$event']) onMouseWheelChrome(event: any) { | |
this.throttle(this.mouseWheelFunc, 2000, event)(); |
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 { Component, OnInit, ContentChildren, QueryList, AfterContentInit, ViewChildren, AfterViewInit } from '@angular/core'; | |
import { ScrollSlideshowItemComponent } from '../scroll-slideshow-item/scroll-slideshow-item.component'; | |
@Component({ | |
selector: 'scroll-slideshow', | |
templateUrl: './scroll-slideshow.component.html', | |
styleUrls: ['./scroll-slideshow.component.css'] | |
}) | |
export class ScrollSlideshowComponent implements OnInit, AfterViewInit { | |
slides = ["Here is slide1", "Here is slide 2", "Here is slide 3", "Questions?"]; |
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 { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; | |
import { trigger, transition, animate, style, state, animation, useAnimation } from '@angular/animations'; | |
export const enterAnimation = animation([ | |
style({ opacity: 0, transform: 'translateX({{ initEnterTranslate }})' }), | |
animate('1000ms ease-in', style({ opacity: 1, transform: 'translateX(0%)' })) | |
] | |
); | |
export const exitAnimation = animation([ |
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="slide-show-container" mouseWheel (mouseWheelUp)="onMouseWheelUpFunc()" | |
(mouseWheelDown)="onMouseWheelDownFunc()"> | |
<scroll-slideshow-item *ngFor="let slide of slides ; let i = index"> | |
{{i + 1 }}. {{slide}} | |
</scroll-slideshow-item> | |
</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
<div #slideshowitem | |
[@scrollTrigger]="{ value : show, params : { initEnterTranslate : enterInitPosition, exitTranslate : exitPosition }}" | |
class="slide-show-item" *ngIf="show"> | |
<ng-content></ng-content> | |
</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
.slide-show-container { | |
background-color : black; | |
color : white; | |
position : relative; | |
width : 100vw; | |
height : 95vw; | |
} |
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
.slide-show-item { | |
font-size : 13vw; | |
width: 99vw; | |
height: 95vh; | |
background-color : black; | |
color : red; | |
border : 2px solid white; | |
position : absolute; | |
top : 0; | |
left : 0; |
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
#!/bin/sh | |
#Configuration Parameters | |
APACHE_LOG_DIR=<Your apache log dir with full path> | |
APACHE_LOG_FILE=<Your apache log file with full path> | |
SCRIPT_DIR=<Your scripts directory with full path> | |
SERVICES_LIST=<Space separated list of service URIs for which you want to assess performance> | |
FROM_EMAIL_ADDR=<From email address> | |
TO_EMAIL_ADDRESSES=<Comma separated list of to email addresses> | |
SERVICE_BASE_URI=<Your service base URI that can identify all your services> |
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
BEGIN { | |
print "<OL>"; | |
} | |
{ | |
split($0,a,"--"); | |
split(a[2],responseTimeArray,"/"); | |
if(responseTimeArray[2] > 4000000) | |
print "<li>",$0, a[2],":",responseTimeArray[2],"</li>"; | |
} |
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
table_columns_stg AS (SELECT c.table_name, | |
t.trigger_sql, | |
c.column_name, | |
column_id | |
FROM prm_input t, user_tab_columns c | |
WHERE t.table_name = c.table_name), |
OlderNewer