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
return connectorType. | |
GetCustomAttribute<ConfigurationNameAttribute>(inherit: true). | |
ToMaybe(). | |
Select(x => x.Name). | |
Return(@default: connectorType.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
describe("StringCalculator", function () { | |
describe("Given empty strings", function(){ | |
it('Should return 0', function(){ | |
expect(calculate("")).toBe(0); | |
}); | |
}); | |
describe("Given any positive number", function(){ | |
it('Should return given number', function(){ |
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.Security; | |
using System.Web.Mvc; | |
using NSubstitute; | |
using Xunit; | |
namespace MultiConnector.Web | |
{ | |
using Auth; | |
using Modules.Authentication; |
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
#region IDisposable Members | |
public static void Dispose() | |
{ | |
container.Dispose(); | |
} | |
#endregion |
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 white = 'x'; | |
var black = 'y'; | |
var north = {o:"N"}; | |
var east = {o:"E"}; | |
var south = {o:"S"}; | |
var west = {o:"W"}; | |
north.right = function() { return east; } | |
north.left = function() { return west; } | |
east.right = function() { return south;} |
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
{:desc "TODO", | |
:version "0.0.1", | |
:source "TODO", | |
:behaviors "user.behaviors", | |
;; Do not edit - :dependencies are auto-generated | |
:dependencies { | |
"Bracket glow" "0.0.2", | |
"CSS" "0.0.6", | |
"Clojure" "0.1.1", | |
"Emmet" "0.0.2", |
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
modifier = <'.'> (title|classes|styles|align)* | |
title = <'('> #"[^\)]*" <')'> | |
classes = <'['> ident? (<ws> ident)* <']'> | |
styles = <'{'> declaration* <'}'> | |
align = halign|valign|halign valign|valign halign|ε | |
declaration = property <":" ows> value <";"?> | |
ws = #"\s+" | |
ows = #"\s*" | |
ident = #"#?-?[_a-zA-Z][_a-zA-Z0-9-]*" | |
property = #"-?[a-zA-Z][_a-zA-Z0-9-]*" |
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
#define LOG | |
using System; | |
using System.IO; | |
using System.Net; | |
using System.Xml; | |
using System.Text; | |
using System.Threading; | |
using System.Net.Sockets; | |
using System.Collections; |
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
<?php namespace BodyMassIndex; | |
abstract class Thresholds { | |
const UNDERWEIGHT = 18.5; | |
const OVERWEIGHT = 25; | |
const OBESE = 30; | |
} | |
/** | |
* Calculates Body Mass Index. |
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
(ns body-mass-index.core) | |
(defn calc [mass height] | |
(/ mass (* height height))) | |
(defn category [bmi] | |
(cond | |
(> bmi 30) ::obese | |
(> bmi 25) ::overweight | |
(< bmi 18.5) ::underweight |
OlderNewer