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
bundles.Add(new ScriptBundle("~/bundles/app").Include( | |
"~/Scripts/app/app.js", | |
"~/Scripts/app/router.js", | |
"~/Scripts/app/helpers.js") | |
.IncludeDirectory("~/Scripts/app/routes", "*.js") | |
.IncludeDirectory("~/Scripts/app/models", "*.js") | |
.IncludeDirectory("~/Scripts/app/views", "*.js") | |
.IncludeDirectory("~/Scripts/app/controllers", "*.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
$secure = (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS']!='off')) || $_SERVER['SERVER_PORT']=='443'; |
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
<ul id="panes" class="blockpix"> | |
<li class="onehunpic"> | |
<img src="<%=Url.Content("~/content/images/splash/0.jpg") %>" /> | |
</li> | |
<li class="onehunpic"> | |
<img src="<%=Url.Content("~/content/images/splash/1.jpg") %>" /> | |
</li> | |
<li class="onehunpic whitesq"></li> | |
<li class="onehunpic whitesq"></li> | |
<li class="onehunpic"> |
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.Text; | |
using Google.GData.Apps; | |
namespace AtlasBay.GoogleAppsTools | |
{ | |
class Program | |
{ |
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 ConnectService : IConnectService { | |
readonly string appId; | |
readonly string appSecret; | |
FacebookCookie cookie = null; | |
public ConnectService() { | |
appId = ConfigurationManager.AppSettings["FacebookAppId"]; | |
appSecret = ConfigurationManager.AppSettings["FacebookAppSecret"]; | |
} |
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
Api api = new Api(session); | |
var user = api.Users.GetInfo(4); | |
string firstName = user.first_name; | |
string lastName = user.last_name; | |
string email = user.email; | |
var likes = api.Users.GetLikes(4); | |
foreach (var like in likes) { | |
string name = like.name; | |
} |
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> | |
<meta charset="utf-8" /> | |
<title>@ViewBag.Title</title> | |
<link href="@Url.StaticContent("~/Content/Site.css")" rel="stylesheet" type="text/css" /> | |
<script src="@Url.StaticContent("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script> | |
<script src="@Url.StaticContent("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script> | |
</head> | |
<body> |
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 static List cachedList = new List() { | |
new MyCachedThing() { Name = "Something" }, | |
new MyCachedThing() { Name = "Another"} | |
}; |
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 account = CloudStorageAccount.FromConfigurationSetting("DataConnectionString"); | |
CloudTableClient.CreateTablesFromModel( | |
typeof(TableServiceContext), | |
account.TableEndpoint.AbsoluteUri, | |
account.Credentials); |
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
@ViewBag.Title | |
<script type="text/javascript" src="@Url.CdnContent("/Scripts/jquery-1.5.1.min.js")"></script> | |
<script type="text/javascript" src="@Url.CdnCombinedJs("core")"></script> |