Skip to content

Instantly share code, notes, and snippets.

View chitoku-k's full-sized avatar
🐱
Becoming a cat

Chitoku chitoku-k

🐱
Becoming a cat
View GitHub Profile
@chitoku-k
chitoku-k / 進捗.php
Last active August 29, 2015 14:09
進捗どうですか
<?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>
@chitoku-k
chitoku-k / LazyBitmapImage.cs
Last active August 29, 2015 14:02
LazyImageBehavior
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)
@chitoku-k
chitoku-k / Program.cs
Last active August 29, 2015 14:01
Base class test
class Program
{
static void Main(string[] args)
{
new A();
new B();
}
}
class A
@chitoku-k
chitoku-k / 20140515001854.html
Created May 14, 2014 15:22
Twitter Activity API Response (Maintenance)
<!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>
@chitoku-k
chitoku-k / ζ·«ε€’θͺžιŒ².cs
Last active June 29, 2024 12:03
ζ·«ε€’θͺžιŒ²
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, "γ‚“[??]"), "γ‚“οΌŸ" },
@chitoku-k
chitoku-k / HappyBirthday.cs
Created March 25, 2014 06:45
おθͺ•η”Ÿζ—₯γŠγ‚γ§γ¨γ†οΌ
using System;
using System.Linq;
public class HappyBirthday
{
public static void ShowHappyBirthday()
{
Console.WriteLine(string.Concat("Happy Birthday!".Select(x => new String(x, 3))));
}
}