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
| <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"> |
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
| 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) { |
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
| 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('-','');}); |
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
| // data.cs | |
| // Created by quangquy87 on 2018/12/09 | |
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 System.Collections.Generic; | |
| using System.Data; | |
| using ServiceStack; | |
| using ServiceStack.OrmLite; | |
| using ServiceStack.DataAnnotations; | |
| using System; | |
| [Alias("WarehouseTransferDetails")] | |
| public class WarehouseTransferDetail | |
| { |
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
| const listType = Object.keys(AppointmentListEnum) | |
| .filter(o => o !== AppointmentListEnum.Ready) | |
| .map(k => AppointmentListEnum[k as any]) | |
| .map(v => v as AppointmentListEnum); |
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
| const functions = require("firebase-functions"); | |
| var request = require("request"); | |
| var API_KEY = "YOUR-API-KEY"; // Your Firebase Cloud Messaging Server API key | |
| function sendNotificationToUser(userId, message) { | |
| request( | |
| { | |
| url: "https://fcm.googleapis.com/fcm/send", | |
| method: "POST", |
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 'dart:io'; | |
| import 'dart:isolate'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:image/image.dart' as IMG; | |
| import 'package:path/path.dart'; | |
| class Thumbnail extends StatefulWidget { | |
| final Size size; | |
| final File image; |
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 static void BulkInsertNpgsql<T>(this IDbConnection dbConn, IEnumerable<T> list, IEnumerable<string> insertFields = null) | |
| { | |
| if (list == null) return; | |
| if (list.Count() < 1) return; | |
| var objWithAttributes = list.FirstOrDefault(); | |
| var modelDef = OrmLiteConfig.GetModelDefinition(objWithAttributes.GetType()); | |
| if (insertFields == null) insertFields = new List<string>(); |
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 android.app.Service | |
| import android.content.Intent | |
| import android.os.IBinder | |
| import android.support.annotation.Nullable | |
| import android.support.annotation.WorkerThread | |
| import kotlinx.coroutines.* | |
| import kotlinx.coroutines.channels.Channel | |
| import kotlinx.coroutines.channels.SendChannel | |
| import kotlinx.coroutines.channels.actor | |
| import kotlin.coroutines.CoroutineContext |
OlderNewer