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
Installation | |
http://graemechristie.github.io/graemechristie/blog/2014/05/26/asp-dot-net-vnext-on-osx-and-linux/ | |
http://www.mono-project.com/Compiling_Mono_From_Git | |
Ubuntu: | |
apt-get update | |
apt-get dist-upgrade | |
apt-get install build-essential git autoconf libtool g++ gettext automake unzip | |
git clone git://github.com/mono/mono.git |
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
XmlDocument xDoc = null; | |
string xmlPath = "~/App_Data/SomeXml.xml"; | |
if (HttpContext.Current.Cache[xmlPath] == null) { | |
string cacheFilePath = HttpContext.Current.Server.MapPath(xmlPath); | |
xDoc = new XmlDocument(); | |
xDoc.Load(cacheFilePath); | |
HttpContext.Current.Cache.Insert(xmlPath, xDoc, new CacheDependency(cacheFilePath)); | |
} else { | |
xDoc = (XmlDocument)HttpContext.Current.Cache[xmlPath]; |
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
/*! | |
* jQuery isVersion - v0.1 - 07/02/2010 | |
* http://benalman.com/ | |
* | |
* Copyright (c) 2010 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*/ | |
(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 System; | |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
namespace FacebookChallenge | |
{ | |
class Program | |
{ | |
static readonly string accessToken = "GET YOUR OWN FOO"; | |
static readonly string baseUrl = "https://graph.facebook.com/{0}/{1}?access_token={2}"; |
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
//dynamically generated by ASP.NET for the language passed in. | |
var labels = { | |
language: 'English', | |
objectOverlay: { | |
closeX: 'Close X', | |
fallback: 'Video for {vid}' | |
}, | |
global: { | |
label1: 'label1', | |
label2: 'label2' |
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
.journal-comment-area-wrapper .comment .signature:before { | |
font-size: 10px; | |
content: ''; | |
display: block; | |
height: 0; | |
width: 0; | |
border-right: 2em solid #666; | |
border-bottom: 2em solid #000; | |
border-bottom: 2em solid transparent; | |
position: absolute; |
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 parseCSS(str) { | |
function trim(str) { | |
return (str||'').replace(/^\s\s*/, '').replace(/\s\s*$/, ''); | |
} | |
var i, j, k, | |
split = '}', | |
cur_key = '', | |
cur_key_split, | |
css = str.replace(/\t*/g, '').replace(/\s{2}/, ' ').replace(/[\n|\r]/g, ' ').replace(/\/\*.*?\*\//g, '').split(split), |
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 ($) { | |
function background_image_url($object) { | |
var string = $object.css('backgroundImage'), | |
url_regex = /[("]([^()"]+)[")]/; | |
return url_regex.exec(string)[1]; | |
} | |
$.fn.preload_background_image = function () { | |
return $(this).each(function () { | |
(new Image()).src = background_image_url($(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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Determine Link Trigger Method With jQuery</title> | |
</head> | |
<body> | |
<h1> | |
Determine Link Trigger Method With jQuery | |
</h1> |
OlderNewer