Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| // ---------------------------------------------------------- | |
| // 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) {} |
| { | |
| "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", |
| public class GithubController : Controller | |
| { | |
| /// <summary> | |
| /// Github OAuth Callback | |
| /// </summary> | |
| /// <param name="code"></param> | |
| /// <returns></returns> | |
| public JsonResult callback(string code) | |
| { | |
| var clientId = "[insert yours]"; |
| 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 | |
| { |
| [PetaPoco.TableName("People")] | |
| [PetaPoco.PrimaryKey("Id")] | |
| public class Person | |
| { | |
| public int Id { get; set; } | |
| // .. some other fields | |
| } | |
| public ActionResult Create( Person person ) | |
| { |
| <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> |
| sub, sup { | |
| /* Specified in % so that the sup/sup is the | |
| right size relative to the surrounding text */ | |
| font-size: 75%; | |
| /* Zero out the line-height so that it doesn't | |
| interfere with the positioning that follows */ | |
| line-height: 0; | |
| /* Where the magic happens: makes all browsers position |
| public void NonQuery() | |
| { | |
| var connectionString = ConfigurationManager.ConnectionStrings["Default"].ConnectionString; | |
| var sqlCommandText = "UPDATE People SET Name = 'John'"; | |
| using (var sqlConnection = new SqlConnection(connectionString)) | |
| using (var sqlCommand = new SqlCommand(sqlCommandText, sqlConnection)) | |
| { | |
| sqlCommand.Connection.Open(); | |
| (function ($) { | |
| $(function () { | |
| var $html = $('html'); | |
| var requests = 0; | |
| function setBusy() { | |
| if (++requests == 1) { | |
| $html.addClass('busy-cursor'); | |
| } | |
| } |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/