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
| @model Epiphany.Web.Models.PagerViewModel | |
| @{ | |
| var showPages = 5; | |
| var maxPage = (int) Math.Ceiling((decimal) Model.Total/Model.PageSize); | |
| } | |
| @*[[ PAGER PAGE:@Model.Page PAGESIZE:@Model.PageSize TOTAL:@Model.Total MAXPAGE:@maxPage ]]*@ | |
| <div class="pagination"> |
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
| git diff 1.0.2 HEAD --stat=200 | |
| git diff 1.0.2 HEAD --stat=500 | where {$_ -Match ".cshtml|.css"} | %{$line=$_.split(" "); write-host $line[1] } | |
| git diff 1.0.2 HEAD --stat=200 | where {$_ -Match ".cshtml|.cs"} | %{$l=$_.split(" "); $file=$l[1]; $file=$file.replace("Umbraco.Site", ""); write-host $file } |
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.Linq; | |
| using System.Text.RegularExpressions; | |
| using LinqToTwitter; | |
| namespace TweetTest | |
| { | |
| internal class Program | |
| { | |
| private static readonly Regex TweetStatusRegex = new Regex(@"^https?:\/\/twitter\.com\/(?:#!\/)?(\w+)\/status(es)?\/(\d+)$"); |
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
| JSON.stringify = JSON.stringify || function (obj) { | |
| var t = typeof (obj); | |
| if (t != "object" || obj === null) { | |
| // simple data type | |
| if (t == "string") obj = '"'+obj+'"'; | |
| return String(obj); | |
| } | |
| else { | |
| // recurse array or object | |
| var n, v, json = [], arr = (obj && obj.constructor == Array); |
NewerOlder