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
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
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
/* 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
<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
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
void(function(){var c=prompt("コメント:");c=c===""||c===null?"":c+"\n\n";window.open("http://twitter.com/share?text="+encodeURIComponent(c+document.title+" -")+"&url="+location.href,"share","height=400,width=600,left="+(screen.width/2-600/ 2) + ",top=" + (screen.height/2-400/2))})(); |
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
<?php | |
function GetVersion($command, $pattern = '/([\d.]*[\d])/') { | |
if (preg_match($pattern, shell_exec($command), $matches)) { | |
return $matches[1]; | |
} | |
return false; | |
} | |
$versions = [ | |
'php' => phpversion(), |
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
#include <stdio.h> | |
int main(int n, char **m) { | |
FILE *p, *q; | |
int A, k, a, r, i; | |
char *d = "P%" "d\n%d\40%d" "\n%d\n\00wb+", | |
b[1024], | |
y[] = "yuriyurarararayuruyuri*daijiken**akkari~n**" | |
"/y*u*k/riin<ty(uyr)g,aur,arr[a1r2a82*y2*/u*r{uyu}riOcyurhiyua**rrar+*arayra*=" | |
"yuruyurwiyuriyurara'rariayuruyuriyuriyu>rarararayuruy9uriyu3riyurar_aBrMaPrOaWy^?" |
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; | |
/// <summary> | |
/// <see cref="System.ValueType"/> への拡張メソッドを提供します。 | |
/// </summary> | |
public static class ValueTypeExtensions | |
{ | |
/// <summary> | |
/// 文字列形式を、<see cref="System.Boolean"/> に変換します。変換できない場合は <c>null</c> を返します。 | |
/// </summary> |