title | tags | notebook | |
---|---|---|---|
pipe 操作注意事项.md |
|
default |
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 <tchar.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <process.h> | |
///////////////////////////1//1///111111/! | |
// crt_ begthrdex. cpp | |
// compile with: /MT |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <chrono> | |
#include <string> | |
#include <string.h> | |
#include <iostream> | |
#include <fstream> | |
#include <sys/stat.h> // stat | |
#include <errno.h> // errno, ENOENT, EEXIST |
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 <set> | |
#include <iostream> | |
struct MyStruct | |
{ | |
int kk; | |
bool operator<(const MyStruct & right) const | |
{ | |
return kk > right.kk; |
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
from functools import wraps | |
import errno | |
import os | |
import signal | |
import time | |
# timeout any function in given seconds | |
# solution from http://stackoverflow.com/questions/2281850/timeout-function-if-it-takes-too-long-to-finish | |
class TimeoutError(Exception): |
Git常用备忘.md
引自:http://blogread.cn/it/article/6282?f=sa
配置
git config --global user.name "robbin"
git config --global user.email "[email protected]"
git config --global color.ui true
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
#! /bin/bash | |
# Set the default policies to allow everything while we set up new rules. | |
# Prevents cutting yourself off when running from remote SSH. | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
# Flush any existing rules, leaving just the defaults | |
iptables -F |
gist test hello wode
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 BaseType; | |
import java.util.Iterator; | |
public class SimpleLinkList<T> { | |
class Node{ | |
public Node(T t){ | |
this.data = t; | |
} |
NewerOlder