Skip to content

Instantly share code, notes, and snippets.

const listType = Object.keys(AppointmentListEnum)
.filter(o => o !== AppointmentListEnum.Ready)
.map(k => AppointmentListEnum[k as any])
.map(v => v as AppointmentListEnum);
@quangquy87
quangquy87 / data.cs
Last active December 18, 2018 02:21 — forked from gistlyn/data.cs
PKPL
using System.Collections.Generic;
using System.Data;
using ServiceStack;
using ServiceStack.OrmLite;
using ServiceStack.DataAnnotations;
using System;
[Alias("WarehouseTransferDetails")]
public class WarehouseTransferDetail
{
@quangquy87
quangquy87 / data.cs
Created December 9, 2018 14:15 — forked from gistlyn/main.cs
PKPL TEST
// data.cs
// Created by quangquy87 on 2018/12/09
@quangquy87
quangquy87 / gist:ecb94d4437f9c6ab7dbfc07cc88afbae
Created November 9, 2017 06:13 — forked from minardimedia/gist:3610889
String Functions for Javascript – trim, to camel case, to dashed, and to underscore
Trim String
String.prototype.trim = function(){
return this.replace(/^\s+|\s+$/g, "");
};
To Camel Case
String.prototype.toCamel = function(){
return this.replace(/(\-[a-z])/g, function($1){return $1.toUpperCase().replace('-','');});
@quangquy87
quangquy87 / main.js
Created July 2, 2016 04:47 — forked from turtlemonvh/main.js
Angular Messaging
var MyApp = angular.module('MyApp');
MyApp.factory('msgBus', ['$rootScope', function($rootScope) {
var msgBus = {};
msgBus.emitMsg = function(msg, data) {
data = data || {};
$rootScope.$emit(msg, data);
};
msgBus.onMsg = function(msg, func, scope) {
var unbind = $rootScope.$on(msg, func);
if (scope) {
@quangquy87
quangquy87 / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1DetailView.html">
<link rel="import" href="../../salesforce/s1-elements/s1MdplauncherOverflow.html">
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1AppScaffold.html">
<link rel="import" href="../../salesforce/s1-elements/scaffold/s1PageContainer.html">
<link rel="import" href="../../salesforce/s1-elements/s1AnchorLightLabelonBottom.html">
<link rel="import" href="../../salesforce/s1-elements/s1ListWithLabels.html">
<link rel="import" href="../../salesforce/s1-elements/s1StagedNavigationStageLeft.html">
<link rel="import" href="../../salesforce/s1-elements/s1StagedNavigationNotifications.html">
<polymer-element name="my-element">