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
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |
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
Show hidden characters
{ | |
"files": | |
{ | |
"cycle": "http://malsup.github.com/jquery.cycle.all.js", | |
"infinite_scroll": "https://github.com/paulirish/infinite-scroll/blob/master/jquery.infinitescroll.min.js", | |
"jquery": "http://code.jquery.com/jquery.min.js", | |
"localscroll": "http://flesler-plugins.googlecode.com/files/jquery.localscroll-1.2.7-min.js", | |
"raphael": "http://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js", | |
"reset": "http://meyerweb.com/eric/tools/css/reset/reset.css", | |
"scrollorama": "https://github.com/johnpolacek/scrollorama/blob/master/js/jquery.scrollorama.js", |
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
img { | |
border: 0; | |
font: 0/0 a; | |
text-shadow: none; | |
color: transparent; | |
background: url(test.png); | |
width: 300px; | |
height: 75px; | |
} |
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 class GithubController : Controller | |
{ | |
/// <summary> | |
/// Github OAuth Callback | |
/// </summary> | |
/// <param name="code"></param> | |
/// <returns></returns> | |
public JsonResult callback(string code) | |
{ | |
var clientId = "[insert yours]"; |
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
// Define a function within itself | |
var myfunction = function fun(number) { | |
myfunction = function( number ) { | |
return ++number; | |
}; | |
return number * 2; | |
}; | |
alert(myfunction(10)); // 20 | |
alert(myfunction(10)); // 11 |
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; | |
using System.Web.Mvc; | |
using Proggr.Controllers.Filters; | |
using Proggr.Controllers.Responses; | |
namespace Proggr.Controllers | |
{ |
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 Ninject; | |
using Ninject.Modules; | |
using SportsStore.Domain.Abstract; | |
using SportsStore.Domain.Concrete; | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; |
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
[PetaPoco.TableName("People")] | |
[PetaPoco.PrimaryKey("Id")] | |
public class Person | |
{ | |
public int Id { get; set; } | |
// .. some other fields | |
} | |
public ActionResult Create( Person person ) | |
{ |
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 db = new PetaPoco.Database(ConnectionHelper.ConnectionStringName); | |
var internalUsers = db.Fetch<InternalUser>("Order by InternalUserID"); | |
StringWriter sw = new StringWriter(); | |
sw.WriteLine("\"UserID\",\"FirstName\",\"LastName\",\"EmailAddress\""); | |
foreach (var user in internalUsers) | |
{ | |
sw.WriteLine(string.Format("\"{0}\",\"{1}\",\"{2}\",\"{3}\"", | |
user.UserID, |
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
<div class="container"> | |
<ul class="flip minutePlay"> | |
<li> | |
<a href="#"> | |
<div class="up"> | |
<div class="shadow"></div> | |
<div class="inn">0</div> | |
</div> | |
<div class="down"> | |
<div class="shadow"></div> |
OlderNewer