Skip to content
View xmldoc.go
package main
import (
"fmt"
"log"
"net/http"
"github.com/go-xmlpath/xmlpath"
)
View gist:94c90ed66771dd55dff2
/*
* コメントはCスタイルの複数行コメントと…
*/
// C++スタイルの一行コメントの双方をサポートしている
// var name:Type = value でType型の変数nameを宣言し、valueで初期化する
var explicitDouble:Double = 70 // 70.0
/// 型が省略された場合は、型推論により初期値の型が適用される
var implicitInteger = 70 // Int
View gist:a286a0fc8d7d639fdd90
diff -r ca3db36a6ed8 src/os_win32.c
--- a/src/os_win32.c Thu May 14 05:56:09 2015 +0200
+++ b/src/os_win32.c Tue May 26 21:07:27 2015 +0900
@@ -2187,6 +2187,7 @@
COORD BufferCoord;
SMALL_RECT ReadRegion;
WORD Y, Y_incr;
+ BOOL Ret;
if (cb == NULL)
View gist:5aed3a57d3995e31a377
diff -r 3790fb70e04c src/os_win32.c
--- a/src/os_win32.c Tue Apr 21 19:10:49 2015 +0200
+++ b/src/os_win32.c Mon May 25 13:07:59 2015 +0900
@@ -584,6 +584,11 @@
SECURITY_INFORMATION, PSID *, PSID *, PACL *, PACL *,
PSECURITY_DESCRIPTOR *);
# endif
+typedef BOOL (*PRCOUTPUT)(HANDLE, PCHAR_INFO, COORD, COORD, PSMALL_RECT);
+typedef BOOL (*PWCOUTPUT)(HANDLE, CONST CHAR_INFO*, COORD, COORD, PSMALL_RECT);
+
View gist:bc4c8c094ab5dd148aa9
ag.vim
autofmt
ctrlp-ghq
ctrlp-launcher
ctrlp.vim
dicwin-vim
emmet-vim
gist-vim
memolist.vim
open-browser.vim
View _sprintf_test.c
#include <stdio.h>
#include <shlwapi.h>
int
main(int argc, char* argv[]) {
char buf[256];
strcpy(buf, "XXXXXXXXXXXXXXX");
_snprintf(buf, 8, "1234%s", "abcdef");
puts(buf);
return 0;
View gist:077f42e3b524d1e174b9
C:\dev\HTTP-Tinyish>build test
t/tinyish.t .. # Testing with HTTP::Tinyish::LWP
t/tinyish.t .. 1/?
# Failed test at t/tinyish.t line 25.
t/tinyish.t .. 3/? # got: '500'
# expected: '200'
# Failed test at t/tinyish.t line 26.
# 'Can't connect to cpan.metacpan.org:443
#
View foo.pl
use strict;
use warnings;
use HTTP::Tinyish;
use YAML::Syck;
my $res = HTTP::Tinyish->new->get("http://www.cpan.org/");
warn Dump $res;
View gist:5f388e4fdba9a69a49a2
diff -r 18d84ed365a5 src/search.c
--- a/src/search.c Wed Apr 22 22:18:22 2015 +0200
+++ b/src/search.c Thu Apr 30 00:43:26 2015 +0900
@@ -2154,6 +2154,7 @@
do_quotes = 0;
else if (do_quotes == -1)
{
+ int do_squotes = -1;
/*
* Count the number of quotes in the line, skipping \" and '"'.
View touch.cmd
@echo off
for %%i in (%*) do type NUL >> %1
Something went wrong with that request. Please try again.