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; | |
public static class EnumerableExtensions | |
{ | |
private static int IndexOfByForEach<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) | |
{ | |
int index = 0; | |
foreach (var item in source) |
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
<Window x:Class="Ochimpo" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
Title="おちんぽ。" Height="350" Width="525"> | |
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"> | |
おちんぽ。 | |
</TextBlock> | |
</Window> |
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
/* https://twitter.com/tana3n/status/497753779177926657 */ | |
var STATUS_ID = "497753779177926657"; | |
var Twitter = require("twitter")({ | |
consumer_key: process.env.TWITTER_CONSUMER_KEY, | |
consumer_secret: process.env.TWITTER_CONSUMER_SECRET, | |
access_token_key: process.env.TWITTER_ACCESS_TOKEN, | |
access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET, | |
}); |
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
var Twitter = require("twitter"); | |
var followers = []; | |
var client = new Twitter({ | |
consumer_key: process.env.TWITTER_CONSUMER_KEY, | |
consumer_secret: process.env.TWITTER_CONSUMER_SECRET, | |
access_token_key: process.env.TWITTER_ACCESS_TOKEN, | |
access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET, | |
}); |
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
if (process.argv.some(function (x) { return x === "-h" })) { | |
console.log("cocoa 1.0.0"); | |
console.log("使用法: cocoa [オプション]"); | |
console.log("コマンド"); | |
console.log("-a - はぁ…ココアちゃん…!"); | |
console.log("-b - cocはぁ…ココアちゃん…!"); | |
console.log("-c - はぁ…ココアちゃん…!"); | |
console.log("-d - はぁ…ココアちゃん…!"); | |
console.log("-e - はぁ…ココアちゃん…!"); | |
console.log("-f - はぁ…ココアちゃん…!"); |
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.ObjectModel; | |
using System.Collections.Specialized; | |
/// <summary> | |
/// キーが値に埋め込まれているコレクションを提供します。 | |
/// </summary> | |
/// <typeparam name="TKey">コレクション内のキーの型。</typeparam> | |
/// <typeparam name="TItem">コレクション内の項目の型。</typeparam> | |
public class ObservableKeyedCollection<TKey, TItem> : KeyedCollection<TKey, TItem>, INotifyCollectionChanged |
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
#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> |
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
<DataTemplate.Triggers> | |
<DataTrigger Binding="{Binding}" Value="0"> | |
<!-- ここで適当にテンプレートを変更 --> | |
</DataTrigger> | |
</DataTemplate.Triggers> |
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; | |
public static class ObjectExtensions | |
{ | |
public static void Validate(this object o, string paramName) | |
{ | |
if (o == null) | |
{ | |
throw new ArgumentNullException(paramName); | |
} |
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.Net; | |
using System.Text; | |
namespace TestApp | |
{ | |
public class Program | |
{ |