Skip to content

Instantly share code, notes, and snippets.

View TryingToImprove's full-sized avatar
🦔

Oliver Lassen TryingToImprove

🦔
View GitHub Profile
// Notify listeners that the authentication is started
PatientActions.fetchContactInformationsStarted(patientId);
// Call the API
ContactInformationService.patient.findAll(patientId)
.then(cb(PatientActions.fetchContactInformationsSuccess, patientId),
cb(PatientActions.fetchContactInformationsFailed, patientId));
module.exports = {
fetchContactInformations: function(id) {
// Notify listeners that the authentication is started
PatientActions.fetchContactInformationsStarted(id);
// Call the API
ContactInformationService.patient.findAll(id)
.then(cb(PatientActions.fetchContactInformationsSuccess, id),
cb(PatientActions.fetchContactInformationsFailed, id));
}
module.exports = {
fetchContactInformations: function(id) {
// Notify listeners that the authentication is started
ContactInformationServerActions.fetchContactInformationsStarted(id);
// Call the API
ContactInformationService.patient.findAll(id)
.then(cb(ContactInformationServer.fetchContactInformationsSuccess, id),
cb(ContactInformationServer.fetchContactInformationsFailed, id));
}
Task.Factory.StartNew(() => {
Thread.Sleep(60000);
Clients.All.notify("You waited 1min for the server");
});
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
import ITower from "td/engine/domain/infrastructure/ITower";
import Position from "td/engine/domain/entities/Position";
export default class Turrent {
constructor(tower : ITower, position : Position) {
$.connection.MyHub.connection._deferral.done(function () {
$.connection.MyHub.server.replyChatMessage(request)
})
$.connection.MyHub.connection._deferral.done(function () {
$.connection.MyHub.server.replyChatMessage(request)
})
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.PlatformAbstractions;
namespace ConsoleApp1
{
public class Program
{
const createAction = (type) => {
  const actionCreator = (payload) => ({
    type,
    payload,
  })

  actionCreator.type = type