This file contains hidden or 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
/* eslint-disable max-len */ | |
// For a detailed explanation regarding each configuration property, visit: | |
// https://jestjs.io/docs/en/configuration.html | |
module.exports = { | |
// Indicates whether the coverage information should be collected while executing the test | |
collectCoverage: false, | |
// An array of glob patterns indicating a set of files for which coverage information should be collected |
This file contains hidden or 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 fetch from 'node-fetch'; | |
const https = require('https'); | |
const httpsAgent = new https.Agent({ | |
keepAlive: true, | |
}); | |
export const fetch_retry = async ( | |
url: string, | |
options: any = null, |
This file contains hidden or 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
<script> | |
// generate a unique guid to use with the session id | |
function guid() { | |
function s4() { | |
return Math.floor((1 + Math.random()) * 0x10000) | |
.toString(16) | |
.substring(1); | |
} | |
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); | |
} |
This file contains hidden or 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
.radio { | |
color: red; | |
} |
This file contains hidden or 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 Microsoft.Azure.ServiceBus; | |
using Microsoft.ServiceBus; | |
using System; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Amway.ServiceBus.MessageSendTester | |
{ | |
class Program | |
{ |
This file contains hidden or 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 { CookieService } from 'ngx-cookie'; | |
declare let Modernizr: any; | |
@Injectable() | |
export class ClientDataService { | |
private KEY_PREFIX = 'prodreg'; | |
private KEY_SEPARATOR = '|'; | |
private storage = null; |
This file contains hidden or 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
function getList(parms) { | |
var defaultParams = { endpoint: '', params: {}, doCache: true, doLog: true, capitalizeIdString: false, firstLetterCapitalize: true, api: restangular }; | |
parms = _.extend(defaultParams, parms); | |
return baseService.getList(endpoint, _utils.getParsedODataFilter(parms.params, parms.capitalizeIdString, parms.firstLetterCapitalize), parms.doCache, parms.doLog, parms.api); | |
} |
This file contains hidden or 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 IQueryable<CoursesBySectionViewModel> GetCoursesBySection() | |
{ | |
return from cs in this.courseSectionRepository.GetAll() | |
join staffmem in staffRepository.GetAll() on cs.CourseSectionID equals staffmem.CourseSectionID | |
select new CoursesBySectionViewModel | |
{ | |
AcademicYearId = cs.AcademicYearID, | |
SchoolId = cs.SchoolID, | |
CourseSectionId = cs.CourseSectionID, |
This file contains hidden or 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
@mixin locked-width-column($width) { | |
width: $width; | |
min-width: $width; | |
max-width: $width; | |
} | |
/* usage example */ | |
.td { @include locked-width-column(4em); } |
This file contains hidden or 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
namespace NHA.App.Module.Attendance.Api.Infrastructure | |
{ | |
using System.Reflection; | |
using Autofac; | |
using Autofac.Integration.WebApi; | |
using NHA.App.Module.Attendance.Contract.Repositories; | |
using NHA.App.Module.Attendance.Contract.Services; | |
using NHA.App.Module.Attendance.Repository; |