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 <vector> | |
template <typename T> | |
class vector_ex :protected std::vector<T> | |
{ | |
public: | |
typedef T data_type; | |
typedef std::vector<T> base_type; | |
typedef typename base_type::iterator iterator; | |
typedef typename base_type::size_type size_type; |
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 <iostream> | |
#include <numeric> | |
int main(void) { | |
std::cout << "numeric_limits= " << std::numeric_limits<double>::epsilon() << std::endl; | |
return 0; | |
} |
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 <string> | |
class string_ex : protected std::string | |
{ | |
public: | |
typedef std::string base_type; | |
typedef base_type::iterator iterator; | |
typedef base_type::const_iterator const_iterator; | |
typedef base_type::size_type size_type; |
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 primes_helper(lim, cur, acc): | |
if lim < cur: | |
return acc | |
elif len( filter( lambda x : cur % x == 0, acc)) == 0: | |
return primes_helper(lim, cur + 1, acc + (cur,)) | |
else: | |
return primes_helper(lim, cur + 1, acc) | |
def primes(lim): |
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
vim: filetype:python | |
def build_here_p(ctx): | |
import sys | |
import os | |
current_dir = os.getcwd() | |
#print current_dir | |
#this_wscript_path = os.path.dirname(__file__).abspath() | |
#this_wscript_path = os.path.dirname( os.__file__ ) | |
this_wscript_path = ctx.path.abspath() |
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
Pattern = %r{^ec:(\d+).(\d+).(\d+).(\d+)} | |
all_lines = [] | |
File.open("enzyme_randomized.list") do |f| | |
f.each_line do |line| | |
all_lines << line | |
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 <iostream> | |
#include <boost/type_traits.hpp> | |
int main(void) | |
{ | |
typedef int& int_ref; | |
typedef int* int_p; | |
std::cout << boost::is_same< boost::remove_reference<int>::type, int>::value << std::endl; | |
std::cout << boost::is_same< boost::remove_reference<int_ref>::type, int>::value << std::endl; |
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> | |
int main(void)??< | |
printf("Hello, World!??/n"); | |
return 0; | |
??> |
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
./a.out: file format mach-o-x86-64 | |
Disassembly of section .text: | |
0000000100000e90 <__Z2f1d>: | |
100000e90: 55 push %rbp | |
100000e91: 48 89 e5 mov %rsp,%rbp | |
100000e94: f2 0f 11 45 f8 movsd %xmm0,-0x8(%rbp) |
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 10 columns, instead of 5. in line 8.
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
id,name,region,weekday,friday,saturday,sunday,tel,seats,lan | |
113,川崎モアーズ店,神奈川県川崎市川崎区,07:00~22:30,07:00~22:30,07:00~22:30,07:00~22:30,044-200-0977,100,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300 | |
888,アトレ川崎店,神奈川県川崎市川崎区,10:00~21:00,10:00~21:00,10:00~21:00,10:00~21:00,044-221-6333,78,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300 | |
409,川崎 ラ チッタデッラ店,神奈川県川崎市川崎区,07:00~23:00,07:00~23:00,07:00~23:00,07:00~23:00,044-223-1570,94,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300 | |
343,川崎 丸井店,神奈川県川崎市川崎区,07:00~23:00,07:00~23:00,07:00~23:00,07:00~23:00,044-246-6765,41, | |
419,武蔵小杉北口店,神奈川県川崎市中原区,07:00~22:00,07:00~22:00,07:00~22:00,07:00~22:00,044-738-3137,33,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300 | |
1088,武蔵小杉東急スクエア店,神奈川県川崎市中原区,07:00~22:30,07:00~22:30,07:00~22:30,07:00~22:30,044-738-2350,60,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300 | |
697,ラゾーナ川崎店,神奈川県川崎市幸区,07:30~22:00,07:30~22:00,07:30~22:00,07:30~22:00,044-874-8359,58,STARBUCKS/ docomo/ FLET'S(東)/ SoftBank/ au/ Wi2300 | |
809,Qiz溝の口店,神奈川県川崎市高津区,07:00~22:30,07:00 |
OlderNewer