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
ko.bindingHandlers.chartColumns = { | |
init: function(element, valueAccessor, allBindings, viewModel, bindingContext) { | |
var columns = ko.unwrap(valueAccessor()), | |
options = ko.unwrap(allBindings.get('chartOptions')) || {}; | |
options = $.extend(true, options, { | |
bindto: element, | |
data: { | |
columns: columns | |
} |
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
// https://github.com/aterrien/jQuery-Knob/issues/209 | |
ko.bindingHandlers.knob = { | |
init: function(element, valueAccessor, allBindings, viewModel, bindingContext) { | |
var local = ko.utils.unwrapObservable(valueAccessor()), | |
options = {}; | |
ko.utils.extend(options, ko.bindingHandlers.knob.options); | |
ko.utils.extend(options, allBindings.get('knobOptions')); | |
$(element) |
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
// | |
// BitwiseOptions.swift | |
// | |
// Created by Gregory Higley on 11/24/14. | |
// Copyright (c) 2014 Prosumma LLC. All rights reserved. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
@echo off | |
REM place this in C:\ and install teamviewer.reg below. Then you should be able to | |
REM openteamviewers from the webbrowser with teamviewer://1234 | |
set protocolString=%1 | |
REM uncomment below for testing | |
REM set protocolString="teamviewer://795143153" | |
set protocolString=%protocolString:"=% |
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
void function(global){ | |
if ('DataView' in global && 'ArrayBuffer' in global) { | |
return; | |
} | |
var hide = (function(){ | |
// check if we're in ES5 | |
if (typeof Object.getOwnPropertyNames === 'function' && !('prototype' in Object.getOwnPropertyNames)) { | |
var hidden = { enumerable: false }; |
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
// TinyTween.cs | |
// | |
// Copyright (c) 2013 Nick Gravelyn | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software | |
// and associated documentation files (the "Software"), to deal in the Software without restriction, | |
// including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
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.Diagnostics; | |
using System.Linq; | |
using Duality; | |
using Duality.Components.Physics; | |
using Duality.Components.Renderers; | |
using Duality.Input; | |
using TinyTween; |
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
<UsingTask | |
TaskName="CustomHeatDirectory" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" > | |
<ParameterGroup> | |
<Directory Required="true" /> | |
<DirectoryRefId Required="true" /> | |
<ComponentGroupName Required="true" /> | |
<OutputFile Required="true" /> | |
<GenerateGuidsNow Required="true" /> |
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 System.Net.Sockets; | |
using System.Data; | |
using System.Net; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Reactive.Linq; |
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
//from http://stackoverflow.com/questions/20220755/how-can-i-see-what-my-reactive-extensions-query-is-doing/20220756#20220756 | |
public static IObservable<T> Spy<T>(this IObservable<T> source, string opName = null) | |
{ | |
opName = opName ?? "IObservable"; | |
Console.WriteLine("{0}: Observable obtained on Thread: {1}", | |
opName, | |
Thread.CurrentThread.ManagedThreadId); | |
return Observable.Create<T>(obs => |