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
<?xml version="1.0" encoding="utf-8"?> | |
<log4net debug="false"> | |
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> | |
<file value="Logs/Debug.log" /> | |
<appendToFile value="true" /> | |
<rollingStyle value="Size" /> | |
<maxSizeRollBackups value="10" /> | |
<maximumFileSize value="1000KB" /> | |
<staticLogFileName value="true" /> | |
<layout type="log4net.Layout.PatternLayout"> |
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.Globalization; | |
using System.IO; | |
using log4net; | |
using log4net.Config; | |
namespace Core | |
{ | |
/// <summary> |
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> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"> | |
</script> | |
<script type="text/javascript" charset="utf-8"> | |
var query = 'askhybel'; | |
$(function() { | |
$.getJSON("http://search.twitter.com/search.json?callback=?&q=" + query, | |
function (r) { |
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
/// <summary> | |
/// Get the DataAnnotation attributed DisplayName attribute value. | |
/// </summary> | |
/// <example> | |
/// GetDisplayNameFor<VagtTyper>(x => x.Doegnvagt) ==> "Døgnvagt" | |
/// </example> | |
/// <typeparam name="TSource"></typeparam> | |
/// <param name="propLambda"></param> | |
/// <returns></returns> | |
public string GetDisplayNameFor<TSource>(Expression<Func<TSource,object>> propLambda) |
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('.menu-submenu').after(jQuery('<div style="overflow:auto;width:400px;height:500px;margin:10px;">').html(jQuery('table.tickets tbody tr').map(function(i,e){return '<a href="https://www.assembla.com'+jQuery(e).find('td.number a').attr('href')+'">#'+jQuery(e).find('td.number').text().trim()+'</a> '+jQuery(e).find('td.summary').text();}).toArray().join('<br>\n\r'))); |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<Project DefaultTargets = "Main" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | |
<PropertyGroup> | |
<siteRoot>$(MSBuildProjectDirectory)\..\Intranet Project\Intranet website</siteRoot> | |
</PropertyGroup> | |
<ItemGroup> | |
<JsFiles Include="$(siteRoot)\content\js\BHFUtil.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
public class PodioClient | |
{ | |
public PodioClient() | |
{ | |
_authkeys = new AuthKeys(); | |
} | |
private DateTime ExpectedExpiry { get; set; } | |
private double ExpiresIn { get; set; } | |
private string RefreshToken { get; set; } |
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
[TestFixture] | |
public class JsonExpandoTests{ | |
[Test] | |
public void FromJsonToExpando() | |
{ | |
var json = "{\"Name\":\"Eksponent\",\"Rate\":33.2,\"OrgCode\":123}"; | |
dynamic org = JsonConvert.DeserializeObject<ExpandoObject>(json); | |
Assert.AreEqual("Eksponent",org.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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
/// <summary> | |
/// Get a specific user's profile | |
/// </summary> | |
/// <param name="encodedUserId"></param> | |
/// <param name="callback"></param> | |
/// <returns></returns> | |
public void GetUserProfile(string encodedUserId, Action<UserProfile, FitbitException> callback) | |
{ | |
string apiCall; |
OlderNewer