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
<?php | |
$bankList = [ | |
'621098' => '邮储银行-绿卡通-借记卡', | |
'622150' => '邮储银行-绿卡银联标准卡-借记卡', | |
'622151' => '邮储银行-绿卡银联标准卡-借记卡', | |
'622181' => '邮储银行-绿卡专用卡-借记卡', | |
'622188' => '邮储银行-绿卡银联标准卡-借记卡', | |
'955100' => '邮储银行-绿卡(银联卡)-借记卡', | |
'621095' => '邮储银行-绿卡VIP卡-借记卡', | |
'620062' => '邮储银行-银联标准卡-借记卡', |
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 com.google.common.collect.ImmutableSet; | |
import com.google.common.reflect.ClassPath; | |
import com.google.gson.Gson; | |
import com.google.gson.JsonObject; | |
import quickfix.FieldNotFound; | |
import quickfix.Message; | |
import java.io.IOException; | |
import java.lang.reflect.Field; | |
import java.util.HashMap; |
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
<profiles> | |
<profile> | |
<id>dev</id> | |
<properties> | |
<package.environment>develop</package.environment> | |
</properties> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<build> |
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
public class SingletonExample { | |
// Inner class not loaded until some thread reference one of its fileds or methods | |
private static final class InnerSingleton { | |
private static final SingletonExample s = new SingletonExample(); | |
} | |
public static SingletonExample getInstance() { | |
return InnerSingleton.s; | |
} | |
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
__author__ = "Huang Shitao" | |
__email__ = "[email protected]" | |
__license__ = "None" | |
import re | |
import sys | |
def process_log(log): | |
pattern = (r'' | |
'([^ ]*) - ' #remote_addr |
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
size_t strlen(char const * s) | |
{ | |
size_t len = 0; | |
while(*s++) { | |
len++; | |
} | |
return len; | |
} |
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 <string.h> | |
#include <stdlib.h> | |
typedef struct TLV { | |
int type; | |
int length; | |
char value[0]; | |
}TLV; |
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
bool Is_exist_loop(struct Node *head) | |
{ | |
struct Node *slow = head; | |
struct Node *fast = head; | |
while (fast && fast->next) { | |
slow = slow->next; | |
fast = fast->next->next; | |
if (fast == slow) { | |
break; |
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 Element_type int | |
void Swap(Element_type *, Element_type*); | |
/* | |
Unstable sort! | |
*/ | |
void Quick_sort(Element_type array[], int left, int right) |
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> | |
#include <assert.h> | |
#define Element_type int | |
static void Msort(Element_type [], Element_type [], int start, int end); | |
static void Merge(Element_type [], Element_type [], int left_pos, int right_pos, int right_end); | |
void Merge_sort(Element_type array[], int size) |
NewerOlder