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 http = http; | |
class Startup | |
{ | |
public static Main() | |
{ | |
http.createServer((req, res) => | |
{ | |
res.writeHead( |
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 <string> | |
#include <iostream> | |
using namespace std; | |
#define W 25 | |
#define H 25 | |
int direction[8][2] = { | |
{ -1, -2 }, | |
{ 1, -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
/* | |
* 102行付近GetImage | |
* こんな感じにすればpcklesに対応できる | |
* | |
* 実際のURLは | |
* http://pckles.com/[user]/[pic_id](.png) | |
* http://pckl.es/[user]/[pic_id](.png) | |
* 正規表現使ったほうが正確かもしれない。 | |
* | |
*/ |
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
// Key values | |
const string XAuthUsername = "x_auth_username"; | |
const string XAuthPassword = "x_auth_password"; | |
const string XAuthMode = "x_auth_mode"; | |
public bool GetAccessToken(string userName, string password) | |
{ | |
List<KeyValuePair<string, string>> para = new List<KeyValuePair<string, string>>(); | |
para.Add(new KeyValuePair<string, string>(XAuthUsername, userName)); |
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; | |
namespace Vuvuzela | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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; | |
namespace Dec2Bin | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Dec2Bin - 10進数から2進数に変換"); | |
Console.WriteLine("プログラム能力を試すのにお薦め"); |
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; | |
namespace Brainf__k | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int length = 1024; |
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
// コード汚いです。。 | |
// import System.Windows.Forms | |
public class SortableListBox : ListBox | |
{ | |
int moveItemIndex = -1; | |
public event EventHandler ItemSorted; | |
public SortableListBox() | |
: base() | |
{ |
NewerOlder