Skip to content

Instantly share code, notes, and snippets.

View masaru-b-cl's full-sized avatar

TAKANO Sho / @masaru_b_cl masaru-b-cl

View GitHub Profile
@masaru-b-cl
masaru-b-cl / Program.cs
Created August 22, 2012 01:49
コレクション初期化子がコンパイルエラーにならない条件
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ConsoleApplication1
{
class MyCollection : IEnumerable
{
@masaru-b-cl
masaru-b-cl / Program.cs
Created August 22, 2012 02:12
コレクション初期化子のoverload解決順
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ConsoleApplication1
{
class MyCollection : IEnumerable
{
@masaru-b-cl
masaru-b-cl / Program.cs
Created September 5, 2012 01:11
dynamicでobject型引数と闘う
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
@masaru-b-cl
masaru-b-cl / git-master
Last active September 14, 2016 04:58 — forked from mzp/gist:1131618
git-master
#!/bin/sh
WORKING_BRANCH=`git branch -l | grep "*" | cut -d " " -f 2`
IFS_ORIG=$IFS
IFS=#
arr=($WORKING_BRANCH)
IFS=$IFS_ORIG
size=${#arr[@]}
@masaru-b-cl
masaru-b-cl / Program.cs
Created September 24, 2012 07:58
手動でJoinってこういうこと?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
@masaru-b-cl
masaru-b-cl / .gitignore
Created October 5, 2012 06:15
WPF-Overview-Tutorial
bin/
obj/
*.suo
*.user
@masaru-b-cl
masaru-b-cl / MainWindowViewModel.cs
Created October 17, 2012 14:28
MainWindowViewModel - Color
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace WpfApplication1
{
public class MainWindowViewModel
@masaru-b-cl
masaru-b-cl / MainWindowViewModel.cs
Created October 17, 2012 14:35
MainWindowViewModel - Brush
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
namespace WpfApplication1
{
public class MainWindowViewModel
@masaru-b-cl
masaru-b-cl / Program.cs
Created October 19, 2012 01:43
多次元配列の要素列挙
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
@masaru-b-cl
masaru-b-cl / Page.html
Created October 22, 2012 08:20
jQueryでselect要素入れ替えのサンプル
<!-- saved from url=(0014)about:internet -->
<!-- the comment above allows the embedded browser to load the document without the ActiveX security prompt -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>jQueryPad Preview</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<style type="text/css">