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 wechat | |
// See doc at https://work.weixin.qq.com/api/doc/90000/90136/91770 | |
import ( | |
"bytes" | |
"crypto/md5" | |
"encoding/base64" | |
"encoding/json" | |
"fmt" |
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 ( | |
"context" | |
"fmt" | |
"sync" | |
"time" | |
) | |
func main() { |
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 scala.collection.mutable.ListBuffer | |
import scala.util.control.Breaks | |
def parseCdnLogLineV2(line: String): Array[String] = { | |
val itemBuffer = new ListBuffer[String]() | |
val length = line.length | |
var startIndex = 0 | |
var delimiter = " " | |
var elemStart = "" | |
val loop = new Breaks |
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 ( | |
"context" | |
"flag" | |
"fmt" | |
"net/url" | |
"os" | |
"time" |
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 <libiptcdata/iptc-data.h> | |
#include <libiptcdata/iptc-jpeg.h> | |
#include <jpeglib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
void iptc_dataset_foreach_handler(IptcDataSet *dataset, void *datasetName) { | |
IptcFormat format = iptc_dataset_get_format(dataset); | |
printf("filter: %s\n\n", (char *) datasetName); |
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" | |
"flag" | |
"fmt" | |
"os" | |
"os/exec" | |
"sync" | |
) |
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 ( | |
"fmt" | |
"regexp" | |
) | |
func main() { | |
rule := `^/upload/photo/(\w+)/(\w+)/(\w+)/(70|60|48|32|16|80|150)\_(.*)$` | |
str := "/upload/photo/0/0/0/70_u57313833790062233714.jpg" |
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 sys | |
fname1 = sys.argv[1] | |
fname2 = sys.argv[2] | |
first_dict = {} | |
second_dict = {} | |
fp1 = open(fname1) | |
for line in fp1: |
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 ( | |
"fmt" | |
"golang.org/x/net/context" | |
"qiniupkg.com/api.v7/conf" | |
"qiniupkg.com/api.v7/kodo" | |
) | |
const ( |
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" | |
"fmt" | |
"os" | |
"strings" | |
) | |
/* |
NewerOlder