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 JSONP = { | |
_jsonpcallbacks: {}, | |
request: function (url, data, callback) { | |
var callbackName = Math.random(); | |
Ripple._jsonpcallbacks[callbackName] = callback; | |
var script = document.createElement('script'); | |
script.src = url + '?callback=' + callbackName + '&data=' + encodeURIComponent(JSON.stringify(data)); | |
script.type = 'text/javascript'; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
} |
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.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
var debug={ | |
enabled: true, | |
init: function () { | |
if (this.enabled) | |
$('body').append('<div id="debug" style="position:absolute;bottom:0;right:0;background:#FFF;border:solid 1px #000;font-size:10px;padding:5px;"></div>'); | |
}, | |
write: function () { | |
if (this.enabled) { | |
for(var i in arguments) | |
$('#debug').append('<div>' + ((typeof arguments[i]==='object')?JSON.stringify(arguments[i]):arguments[i]) + '</div>'); |
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 Newtonsoft.Json.Linq; | |
using OAuth; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
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
(function ($) { | |
$.fn.slider = function (method, options) { | |
var methods = { | |
init: function (options) { | |
if ($(this).children().length > 0) { | |
var slide = $($(this).children().get(options.startIndex)); | |
slide.addClass('selected'); | |
options.onInit(options.startIndex); | |
} | |
}, |
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
//method 1 | |
var A = function(name){ | |
var _name = name; | |
Object.defineProperty(this, 'name', {get: function(){console.log('get name'); return _name;}, | |
set:function(e){console.log('set name='+e); _name=e;}, | |
enumerable: true | |
}); | |
return this; |
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
function scan(obj, search, from) | |
{ | |
var k; | |
if (obj instanceof Object) { | |
for (k in obj){ | |
//console.log('object ', obj, k); | |
if (obj.hasOwnProperty(k)){ | |
if(k.toString().indexOf(search)!=-1){ | |
console.log('found string as prop ', k, obj); | |
}else{ |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
<script src="jquery-2.0.3.min.js"></script> | |
<script src="underscore.js"></script> | |
<script src="backbone.js"></script> | |
<script> | |
//#region eventHandler | |
var eventHandler = function (sender) { |
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.Web.Http; | |
using Newtonsoft.Json; | |
using System.Web.Routing; | |
using System.Net.Http; | |
namespace WebRoleV2 | |
{ |
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 OrangeMSE.Business; | |
using OrangeMSE.Business.Data; | |
using OrangeMSE.Business.Helpers; | |
using System; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure; | |
using System.Linq; | |
using System.Linq.Expressions; |
OlderNewer