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
/* | |
Usage: | |
var viewModel = createFrom(regularObject); | |
To update the viewmodel: | |
viewModel.updateFrom(newRegularObject); | |
*/ | |
var createFrom = function(source, destination, isNested) { | |
if (!destination) destination = {}; |
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.Text; | |
using AspComet; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
namespace Teletrax.Common.Web.Comet | |
{ |
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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> | |
<script src="http://knockoutjs.com/js/jquery.tmpl.js" type="text/javascript"></script> | |
<script src="http://knockoutjs.com/js/knockout-latest.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
$(document).ready(function() { |
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 Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web; |
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
use std::collections::HashMap; | |
use std::rc::Rc; | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
struct Component { | |
events: HashMap<Event, Box<StateCallback>>, | |
children: Vec<Component>, | |
} |
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
version: '2' | |
services: | |
prometheus: | |
container_name: prometheus | |
image: bitnami/prometheus:latest | |
volumes: | |
- ./prometheus.yml:/opt/bitnami/prometheus/conf/prometheus.yml | |
ports: | |
- "9090:9090" |