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
var isPopupBlocked = function() { | |
var isBlocked, | |
popup = window.open('about:blank', 'popup_test','width=5, height=5, left=0, top=0'); | |
// pop under | |
if(popup) popup.blur(); | |
window.focus(); | |
isBlocked = !popup || typeof popup == 'undefined' || typeof popup.closed=='undefined' || popup.closed || popup.innerHeight == 0; | |
if(popup) popup.close(); |
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 } from '@angular/core'; | |
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpErrorResponse, HttpResponse } from '@angular/common/http'; | |
@Injectable() | |
export class CustomInterceptor implements HttpInterceptor { | |
constructor() { } | |
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
if (request.params.has('$count')) { |
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
pushd "%~dp0" | |
dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt | |
for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
del containers.txt | |
Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL | |
pause |
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 } from '@angular/core'; | |
import { environment } from '../../../environments/environment'; | |
import { Headers, Http, Response, URLSearchParams } from '@angular/http'; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/catch'; | |
import 'rxjs/add/operator/toPromise'; | |
import 'rxjs/add/operator/finally'; | |
import 'rxjs/add/observable/throw'; | |
import { throwError } from 'rxjs'; |
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
version: '3' | |
services: | |
prometheus: | |
image: prom/prometheus:latest | |
volumes: | |
- ./etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml | |
command: | |
- '--config.file=/etc/prometheus/prometheus.yml' | |
ports: | |
- '9090:9090' |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WEB.ATS.Pages.Job.WebForm1" %> | |
<%@ Register Assembly="DevExpress.Web.v18.2, Version=18.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
</head> |
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
--create or replace procedure cistp.PRC_ASSIGN_WORKJOB is | |
declare | |
vn_assign_lvl number := 0; | |
vc_empid varchar2(200) := ''; | |
vn_roundno number := 0; | |
cursor c_job | |
is | |
select j.jobid | |
from jobs j |
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
public class Global : HttpApplication | |
{ | |
void Application_Start(object sender, EventArgs e) | |
{ | |
// Code that runs on application startup | |
RouteConfig.RegisterRoutes(RouteTable.Routes); | |
BundleConfig.RegisterBundles(BundleTable.Bundles); | |
TimeSpan intervalTimespan = TimeSpan.FromSeconds(30); | |
Task.Factory.StartNew(() => { |
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
public class Global : HttpApplication | |
{ | |
void Application_Start(object sender, EventArgs e) | |
{ | |
// Code that runs on application startup | |
RouteConfig.RegisterRoutes(RouteTable.Routes); | |
BundleConfig.RegisterBundles(BundleTable.Bundles); | |
TimeSpan intervalTimespan = TimeSpan.FromSeconds(30); | |
Task.Factory.StartNew(() => { |
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
stages: | |
- build | |
- publish | |
.build: &build_template | |
stage: build | |
image: microsoft/dotnet:2.1-sdk-alpine | |
cache: | |
key: "$CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME" | |
paths: |
OlderNewer