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.Linq; | |
public class HappyBirthday | |
{ | |
public static void ShowHappyBirthday() | |
{ | |
Console.WriteLine(string.Concat("Happy Birthday!".Select(x => new String(x, 3)))); | |
} | |
} |
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.Linq; | |
using System.Text.RegularExpressions; | |
public class 淫夢語録 | |
{ | |
private static Dictionary<Func<string, bool>, string> sayings = new Dictionary<Func<string, bool>, string> | |
{ | |
{ text => Regex.IsMatch(text, "(?:なん|何)でも(?:し|す)") && !Regex.IsMatch(text, "ん[??]"), "ん?" }, |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta http-equiv="Content-Language" content="en-us"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Twitter / Maintenance</title> | |
<link href="//abs.twimg.com/favicons/favicon.ico" rel="shortcut icon" type="image/x-icon"> | |
<link rel="stylesheet" href="//abs.twimg.com/errors/fullscreen_errors.css"> | |
</head> |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
new A(); | |
new B(); | |
} | |
} | |
class A |
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; | |
using System.Net; | |
using System.Net.Cache; | |
using System.Threading.Tasks; | |
using System.Windows.Media.Imaging; | |
public static class LazyBitmapImage | |
{ | |
public static Task<BitmapImage> GetImage(Uri uri) |
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 | |
header('Content-Type: text/html; charset=UTF-8'); | |
$progress = rand(0, 1) ? '進捗しました!' : '進捗ダメです(^_^;)'; | |
?> | |
<!doctype html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0"> | |
<title>進捗どうですか</title> | |
</head> |
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.Linq; | |
using System.Net; | |
using System.Text; | |
namespace TestApp | |
{ | |
public class Program | |
{ |
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; | |
public static class ObjectExtensions | |
{ | |
public static void Validate(this object o, string paramName) | |
{ | |
if (o == null) | |
{ | |
throw new ArgumentNullException(paramName); | |
} |
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
<DataTemplate.Triggers> | |
<DataTrigger Binding="{Binding}" Value="0"> | |
<!-- ここで適当にテンプレートを変更 --> | |
</DataTrigger> | |
</DataTemplate.Triggers> |
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 to_int(code, digit, length) do { \ | |
for (int i = 0; i < length; i++) \ | |
{ \ | |
code[i] = digit[i] - 48; \ | |
} \ | |
} while (0) | |
#include <stdio.h> | |
#include <string.h> |
OlderNewer