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
preferred_syntax = :sass | |
http_path = '/' | |
css_dir = 'assets/stylesheets' | |
sass_dir = 'assets/sass' | |
images_dir = 'assets/images' | |
javascripts_dir = 'assets/javascripts' | |
relative_assets = true | |
line_comments = true | |
# output_style = :compressed |
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 class TypeExtensions | |
{ | |
/// <summary> | |
/// Determine whether a type is simple (String, Decimal, DateTime, etc) | |
/// or complex (i.e. custom class with public properties and methods). | |
/// </summary> | |
/// <see cref="http://stackoverflow.com/questions/2442534/how-to-test-if-type-is-primitive"/> | |
public static bool IsSimpleType( | |
this Type type) | |
{ |
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
//Look for other responsivevoice instances | |
/*if (window.parent != null) { | |
var iframes = window.parent.document.getElementsByTagName('iframe'); | |
for (var i = 0; i < iframes.length; i++) { | |
//iframes[i].style.width = "300px" | |
} | |
}*/ | |
if (typeof responsiveVoice != 'undefined') { | |
console.log('ResponsiveVoice already loaded'); |
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 url = "http://localhost:8082/consumers/my_binary_consumer/instances/my_instance/topics/test"; | |
using (var client = new HttpClient()) | |
{ | |
client.Timeout = TimeSpan.FromMilliseconds(Timeout.Infinite); | |
var request = new HttpRequestMessage(HttpMethod.Get, url); | |
using (var response = await client.SendAsync( | |
request, | |
HttpCompletionOption.ResponseHeadersRead)) |
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.Collections.Generic; | |
using System.Linq; | |
using HtmlAgilityPack; | |
namespace Amberizer | |
{ | |
public class HtmlUtilites | |
{ | |
public string RemoveUnwantedTags(string data, string[] acceptableTags) | |
{ |