This file contains 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
package main | |
import ( | |
"bufio" | |
"errors" | |
"fmt" | |
"os" | |
"sort" | |
"strconv" | |
"strings" |
This file contains 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
package egetline | |
import ( | |
"bufio" | |
"os" | |
) | |
var scanner *bufio.Scanner | |
func init() { |
This file contains 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
package com.java.yamanoboriold.httpclient; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import android.support.annotation.NonNull; |
This file contains 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 <ctype.h> | |
#include <stdio.h> | |
#include <string.h> | |
void trim(const char* s, char* buf) | |
{ | |
const char* p = s; | |
while (isspace(*p)) p++; | |
const char* head = p; |
This file contains 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 <map> | |
#include <string> | |
std::map<std::string, std::map<std::string, std::string>> | |
GetPrivateProfileMap(std::string inifile) | |
{ | |
std::map<std::string, std::map<std::string, std::string>> mainmap; | |
char sections[8192], keys[8192], value[8192]; | |
::GetPrivateProfileString(NULL, NULL, "", sections, sizeof(sections), inifile.c_str()); | |
char* section = sections; |
This file contains 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 <windows.h> | |
#include <cstring> | |
#include <cstdlib> | |
#include <cstddef> | |
#include <string> | |
#include <map> | |
#include <vector> | |
#include <deque> | |
#include <sstream> | |
#include <iomanip> |
This file contains 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
# 再帰部が手続だけ | |
def fact_trailrec(n, p) | |
if n == 1 | |
p | |
else | |
fact_r(n - 1, n * p) | |
end | |
end |
This file contains 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> | |
#include <stdlib.h> | |
/* | |
* CRC16-CCITT理解 | |
*/ | |
/* | |
* 多項式 X^16 + X^12 + X^5 + 1 | |
*/ |
This file contains 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.Environment(getArgs) | |
import System.Exit | |
import Control.Monad(when) | |
import Text.Parsec | |
import Text.Parsec.Char | |
import Text.Parsec.String | |
-- COMMA = %x2C | |
comma :: Parser Char | |
comma = char ',' |
This file contains 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
"C:\\Program Files (x86)\\Ruby-2.1\\bin\\ruby.exe" "C:\\Installed\\timefolder.rb" "%1" |