This file contains hidden or 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
import java.io.*; | |
import java.util.ArrayList; | |
public class FileManager { | |
private static volatile FileManager instance; | |
private static final Object lock = new Object(); | |
private final ArrayList<String> msg; | |
private final String FILE_NAME = "Data.txt"; |
This file contains hidden or 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
package ui.logic; | |
import ui.entities.IState; | |
import java.util.Comparator; | |
public class ComparatorState implements Comparator<IState> { | |
@Override | |
public int compare(IState o1, IState o2) { | |
return o1.compareTo(o2); |
This file contains hidden or 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.Linq; | |
using System.Collections.Generic; | |
namespace EnumHelper { | |
public class EnumHelper { | |
/// <summary> | |
/// Get all enum values. | |
/// </summary> | |
/// <typeparam name="TEnum">Enum type.</typeparam> | |
/// <returns>Collection of all enum types.</returns> |
This file contains hidden or 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.Web.Routing; | |
namespace System.Web.Mvc | |
{ | |
public static class ImageActionLinkExtensions | |
{ | |
public static MvcHtmlString ImageActionLink(this HtmlHelper helper, string imagePath, string actionName, string controllerName, | |
object routeValues, object imageAttributes, object linkAttributes) | |
{ | |
var urlHelper = new UrlHelper(helper.ViewContext.RequestContext, helper.RouteCollection); |
This file contains hidden or 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 Secure.Hash | |
{ | |
public interface ICryptography | |
{ | |
string HashString(string original); |
This file contains hidden or 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.Data.SqlClient; | |
public class CatRepository | |
{ | |
private readonly string _connectionString; | |
public CatRepository() | |
: base(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString) { } |
This file contains hidden or 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
package core.io; | |
import java.io.*; | |
/** | |
* Author: Jirka Pénzeš | |
* Date: 4.5.12 23:55 | |
*/ | |
public class Serializer { |
This file contains hidden or 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.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Mail; | |
using System.Reflection; | |
using System.Text; | |
using SimpleLogger.Logging; |
This file contains hidden or 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 Patterns.Observer | |
{ | |
public interface IObserver | |
{ | |
void Update(); |
This file contains hidden or 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
import java.awt.*; | |
import javax.swing.JScrollPane; | |
import javax.swing.SwingUtilities; | |
public class WrapLayout extends FlowLayout | |
{ | |
private Dimension preferredLayoutSize; | |
public WrapLayout() | |
{ |
OlderNewer