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; | |
using System.Collections.Generic; | |
public class Tree<T> : ICollection<T>, IList<T> where T : IComparable<T> | |
{ | |
public class TreeNode : ICollection<T>, IList<T> | |
{ | |
public TreeNode(T value, Tree<T> tree) | |
{ |
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.IO; | |
unsafe class Program | |
{ | |
static void Main() | |
{ | |
var start = DateTime.Now; | |
var fs = new FileStream("prime.txt", FileMode.Create, FileAccess.Write, FileShare.Read); |
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.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
class Program | |
{ | |
static void Main() |
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.IO; | |
unsafe class Program | |
{ | |
const int size = 1000000000; | |
static bool[] sieve = null; | |
static void Main() | |
{ |
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; | |
class Program | |
{ | |
static void Main() | |
{ | |
var funcs = new Func<double, double>[8]; | |
funcs[0] = x => Math.Exp(x); | |
funcs[1] = x => Math.Log(x); | |
funcs[2] = x => 1 + x + x * x; |
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
// | |
// YTOMultilineTextbox.m | |
// MultilineTextbox | |
// | |
// Created by Yuto Takei on 1/18/14. | |
// Copyright (c) 2014 Yuto Takei. All rights reserved. | |
// | |
@interface YTOMultilineTextbox : UITextView |
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
// | |
// YTONotificationTest.m | |
// | |
// Created by Yuto Takei on 1/19/14. | |
// Copyright (c) 2014 Yuto Takei. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface AppDelegate : UIResponder <UIApplicationDelegate> |
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.Diagnostics; | |
using System.Text; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var rnd = new Random(1); | |
for (var i = 0; i < 5000; i++) |
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.IO; | |
class Program | |
{ | |
const int SplitSize = 1024 * 1024 * 1024; // Splits into 1GB files | |
const int BufferSize = 1024 * 1024; // using 1MB size buffer | |
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
// | |
// AppDelegate.m | |
// | |
// Created by Yuto Takei on 10/8/14. | |
// Copyright (c) 2014 Yuto Takei. All rights reserved. | |
// | |
#import <objc/runtime.h> | |
#import "AppDelegate.h" |
OlderNewer