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
-- | |
-- Homework #2 - Graph | |
-- =================== | |
-- | |
-- Info: http://vyuka.haskell.cz/graph/ | |
-- Author: Tomáš Pažourek | |
-- | |
import Data.Function (on) | |
import qualified Data.Set as 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
/** | |
* Steganography | |
* @file main.c | |
* @author Tomáš Pažourek | |
* | |
* @note To see various information on standard output, | |
* compile with 'DEBUG' preprocessor definition. | |
* (add '#define DEBUG' or compile with -DDEBUG flag) | |
*/ |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <time.h> | |
#include <ncurses.h> | |
#define DIGIT_SIZE_X 5 | |
#define DIGIT_SIZE_Y 7 | |
#define SPACE_SIZE 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
Imports System.Diagnostics | |
Imports System.Globalization | |
Public Module Watch | |
Public Function Measure(Optional label As String = Nothing) As IDisposable | |
Return New InternalWatch(label) | |
End Function | |
Private Class InternalWatch |
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
// | |
// Finds and displays the filenames of all UTF8 files that contain a byte order mark | |
// in a specified directory tree. | |
// | |
// based on information from the following URL | |
// | |
// http://stackoverflow.com/questions/4520184/how-to-detect-the-character-encoding-of-a-text-file | |
// | |
using System; |
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
@charset "UTF-8"; | |
@font-face { | |
font-family: "feather"; | |
src: ~"url('@{icon-font-path}feather-webfont.eot')"; | |
src: ~"url('@{icon-font-path}feather-webfont.eot?#iefix') format('embedded-opentype')", | |
~"url('@{icon-font-path}feather-webfont.woff') format('woff')", | |
~"url('@{icon-font-path}feather-webfont.ttf') format('truetype')", | |
~"url('@{icon-font-path}feather-webfont.svg#featherregular') format('svg')"; | |
font-weight: normal; |
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
ServiceLocator.RegisterSingleton<ISomeClass>(() => new SomeClass(x, y, z)); | |
ServiceLocator.Register<IOtherClass>(() => new OtherClass(x, y, z)); | |
ServiceLocator.GetInstance<IOtherClass>(); // returns registered instance or fails | |
IOtherClass instance; | |
if (ServiceLocator.TryGetInstance<IOtherClass>(out instance)) { // if there is a registered instance | |
// ... | |
} |
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.Diagnostics; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
/// <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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using System.Web; | |
namespace MvcTagBuilder | |
{ |
NewerOlder