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></head> | |
<body> | |
<img class="image"/> | |
<style type="text/css"> | |
.image { | |
background-color: grey; |
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 getTemplate = function(url){ | |
var deferred = $.Deferred(); | |
// simulate latency | |
setTimeout(function(){ | |
deferred.resolve('template-result-done-'+url); | |
}, 1000); | |
return deferred.promise(); | |
} | |
var fetch = function(/* params string[] urls */){ |
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 app = {}; | |
Function.prototype.inherits = function (base) { | |
var isFunction = base.constructor == Function; | |
this.prototype = isFunction ? new base : base; | |
this.prototype.constructor = this; | |
return this; | |
}; | |
(function (app) { |
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.ObjectModel; | |
using System.Collections.Specialized; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
namespace restlessmedia.UI.Api.Extensions |
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 upload = function (url, files) { | |
// var data = new FormData(); | |
// app.utils.forEach(files, function () { | |
// data.append('file', this); | |
// }); | |
// return send({ type: 'POST', url: url, data: data, contentType: false, processData: false }); | |
// } | |
(function ($, app) { |
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
public static class Validator | |
{ | |
public static bool IsValidName(string name) | |
{ | |
if (string.IsNullOrEmpty(name)) | |
return false; | |
const string rootName = "$root"; | |
if (name.Equals(rootName)) |
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 lang="en"> | |
<head> | |
<link rel="stylesheet" type="text/css" href="bootstrap.min.css"/> | |
<style type="text/css"> | |
.loading { | |
position: absolute; | |
left: 0; | |
top: 0; | |
opacity: 0; |
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
javascript:alert([].join.call($('.list:not(.add-list)').map(function(){return $(this).find('h2').text() + ': ' + $(this).find('.list-card:not(.hide)').length}),'\n') + '\n\n' + 'Total: ' + $('.list-card:not(.hide)').length) |
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 scrolly = (function () { | |
var isDrag = false; | |
var lag = 100; | |
var isMouseDown = false; | |
var listeners = {}; | |
var previous; | |
var Bounce = function (delegate, lag) { | |
var that = 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
var tap = (function () { | |
var isSwipe = false; | |
var handlers = {}; | |
var eventTypes = { | |
swipe: 'swipe', | |
tap: 'tap' | |
}; | |
var applyEach = function (arr, context, args) { |
OlderNewer