const createAction = (type) => {
const actionCreator = (payload) => ({
type,
payload,
})
actionCreator.type = type
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 temp = filteredContributors.Select(group = new GitHubGlobalContributorModel(group)) | |
.Where(contributor => contributor.TotalCommits > 0) | |
.ToList(); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.PlatformAbstractions; | |
namespace ConsoleApp1 | |
{ | |
public class Program | |
{ |
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
$.connection.MyHub.connection._deferral.done(function () { | |
$.connection.MyHub.server.replyChatMessage(request) | |
}) |
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
$.connection.MyHub.connection._deferral.done(function () { | |
$.connection.MyHub.server.replyChatMessage(request) | |
}) |
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 ITower from "td/engine/domain/infrastructure/ITower"; | |
import Position from "td/engine/domain/entities/Position"; | |
export default class Turrent { | |
constructor(tower : ITower, position : Position) { |
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
using System; | |
using System.Collections.Generic; | |
using Newtonsoft.Json; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
Task.Factory.StartNew(() => { | |
Thread.Sleep(60000); | |
Clients.All.notify("You waited 1min for the server"); | |
}); |
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
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)); | |
} |
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
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)); | |
} |
NewerOlder