This file contains hidden or 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
private static readonly string _languagesKey = "languages"; | |
public static Dictionary<string, string> GetLanguages() | |
{ | |
return GetData(_languagesKey, () => | |
{ | |
// TODO: Get data from language service | |
var languages = new Dictionary<string, string>(); | |
return languages; |
This file contains hidden or 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
lock( HttpRuntime.Cache ) | |
{ | |
var languages = (Dictionary<string, string>)HttpRuntime.Cache.Get(languagesKey); | |
if (languages == null) | |
{ | |
languages = new Dictionary<string, string>(); | |
HttpRuntime.Cache.Add(languagesKey, languages, null, DateTime.Now.AddMinutes(15), Cache.NoSlidingExpiration, CacheItemPriority.Normal, null); | |
} | |
} |
This file contains hidden or 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
$('a').click(function(e) { | |
e.preventDefault(); | |
var url = this.href; | |
$.get(url, function(html) { | |
$('.newpage').html(html).animate({ left: "-= 1000px" }, function() { | |
window.history.pushState({}, "New Page Title", url ); | |
}); | |
}); | |
return false; | |
}); |
This file contains hidden or 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 showStats(tag_name) { | |
var script = document.createElement("scr" + "ipt"); | |
script.src = "https://api.stackexchange.com/2.0/questions?fromdate=1336780800&todate=1339459200&order=desc&sort=activity&tagged=" + tag_name + "&site=stackoverflow&callback=renderStats"; | |
console.log(script); | |
$('body').append( script ); | |
} | |
window.renderStats=function( json ) { | |
var num_closed = 0; | |
for(var i = -1, l = json.items.length; ++i < l; ) { |
This file contains hidden or 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
<script type="text/javascript"> | |
/* | |
html2canvas v0.33 <http://html2canvas.hertzen.com> | |
Copyright (c) 2011 Niklas von Hertzen. All rights reserved. | |
http://www.twitter.com/niklasvh | |
Released under MIT License | |
*/ | |
(function(j,L,n){function C(a){l.logging&&j.console&&j.console.log&&j.console.log(a)}function S(a,b){var h=[];return{storage:h,width:a,height:b,fillRect:function(){h.push({type:"function",name:"fillRect",arguments:arguments})},drawImage:function(){h.push({type:"function",name:"drawImage",arguments:arguments})},fillText:function(){h.push({type:"function",name:"fillText",arguments:arguments})},setVariable:function(a,b){h.push({type:"variable",name:a,arguments:b})}}}var l={logging:!1};l.log=C;l.Util= | |
{};l.Util.backgroundImage=function(a){if(/data:image\/.*;base64,/i.test(a)||/^(-webkit|-moz|linear-gradient|-o-)/.test(a))return a;a.toLowerCase().substr(0,5)==='url("'?(a=a.substr(5),a=a.substr(0,a.length-2)):(a=a.substr(4),a=a.substr(0,a.length-1));return a};l.Util.Bounds=function(a){var b={};if(a.getBo |
This file contains hidden or 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
private dynamic SteveAustin( string[] props, object[] args, object thing ) { | |
var sixmill_man = new ExpandoObject(); | |
var steve = sixmill_man as IDictionary<string, object>; | |
for( int i = 0; i < props.Length; i++ ) { | |
steve.Add( props[ i ], args[ i ] ); | |
} | |
if( thing != null ) | |
foreach( var pair in thing.ToDictionary() ) | |
if( !steve.ContainsKey( pair.Key ) ) | |
steve.Add( pair.Key, pair.Value ); |
This file contains hidden or 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
<script type="text/javascript" src="https://github.com/Miserlou/Blaccupy/raw/master/blaccupy.js"></script> |
This file contains hidden or 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.Dynamic; | |
using System.Linq; | |
using Massive; | |
using Massive.Expressions; | |
public class Test | |
{ | |
public void TestMethod( ) | |
{ |
This file contains hidden or 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.Dynamic; | |
using Massive; | |
namespace MassiveFluently.Expressions { | |
public class All {} | |
public class First {} | |
public class Last {} | |
} | |
namespace MassiveFluently { |
This file contains hidden or 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
$=((([])[(![]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]]));$()["eval"]("alert(1)") |