Skip to content

Instantly share code, notes, and snippets.

View jonnii's full-sized avatar
:shipit:
<--- lets do this

Jonathan Goldman jonnii

:shipit:
<--- lets do this
View GitHub Profile
subscribe: function (connection) {
console.log(" -> subscribing to application updates");
var subscriber = connection.applicationHub;
var store = App.store;
subscriber.client.applicationUpdated = function (data) {
data.forEach(function (d) {
var persisted = store.find(App.Application, d.id);
persisted.set('last_message', d.last_message);
public class MessageHeader : IMessageHeader
{
public MessageHeader()
{
}
public MessageHeader(string message)
{
Body = message;
}
public class Application : IIdentifiable
{
public ObjectId Id { get; set; }
public string Name { get; set; }
public string Environment { get; set; }
public long TotalMessages { get; set; }
public HttpResponseMessage Post(IEnumerable<Message> messages)
{
try
{
Logger.Info("POST MessagesController::Create");
if (messages.Any(m => !m.IsValid))
{
return new HttpResponseMessage(HttpStatusCode.BadRequest)
{
source: Em.Route.extend({
route: '/source/:application_id',
connectOutlets: function (router, application) {
router.set('navigationController.selected', 'logs');
router.get('applicationController').connectOutlet('source', application);
},
deleteApplication: function (router) {
var application = router.get('sourceController').get('content');
application.deleteRecord();
App.store.commit();
App.Application = Ember.Object.extend({
hasUnread: false,
name: null,
environment: null,
shortEnvironment: function () {
var env = this.get('environment');
if (env == 'development') {
return 'dev';
}
$workingDirectory = $args[0]
$machine = $args[1]
$environment = $args[2]
$configuration = $args[3]
Set-Location $workingDirectory
# read the version file, which indicates which version we're going to deploy
$versionFile = resolve-path ../Version
$version = Get-Content $versionFile
private string FixExtractContents(string contents)
{
if (contents.StartsWith("<specifiedStressTest>") && !contents.EndsWith("</specifiedStressTest>"))
{
return contents + "</specifiedStressTest>";
}
return contents;
}
using System.Collections.Concurrent;
using System.Linq;
using System.Threading.Tasks;
namespace Chinchilla
{
public class TaskDeliveryStrategy : DeliveryStrategy
{
private readonly ConcurrentDictionary<int, TaskWorker> workers;
using System;
using Castle.DynamicProxy;
using NUnit.Framework;
namespace ProxyMagic
{
public class DataObject
{
public string FirstName { get; set; }
public string LastName { get; set; }