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
/* | |
An API demo of sqlite3 | |
author: Ady Liu | |
email: [email protected] | |
web: http://www.blogjava.net/xylz/archive/2012/09/25/388519.html | |
*/ | |
#include <stdio.h> | |
#include "sqlite3.h" | |
int print_record(void *,int,char **,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
#!/usr/bin/env python3 | |
#-*- coding:utf-8 -*- | |
#author: adyliu([email protected]) | |
#version: 0.1 | |
import os | |
import os.path | |
import sys | |
DEBUG='--debug' in sys.argv |
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
adylab:script adyliu$ python3 htmlsubstring.py | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,我就不信不行</div><h2>标题党</h2></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,</div></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,</div></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,我就不</div></div> | |
<div class="test">测试<span>谁知道&<br>是<br/>什么<br />东东<i>也许吧</i></span><div>我靠,我就不</div></div> |
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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
# Base62 tools (convert number <=> string) | |
# v1.0/20130109 | |
# python 2.x/3.x supported | |
# | |
#author: Ady Liu([email protected]) | |
#github: github.com/adyliu | |
import sys |
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 | |
echo "build at `date`" | |
git pull | |
rake generate |
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 java.io.Closeable; | |
import java.io.IOException; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Properties; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import com.shijiebang.xpower.configcenter.ConfigCenter; | |
import com.sohu.jafka.consumer.Consumer; |
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 demo; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.concurrent.ForkJoinPool; |
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
pragma solidity ^0.4.24; | |
//============================================================================== | |
// _ _ _ _|_ _ . | |
// (/_\/(/_| | | _\ . | |
//============================================================================== | |
contract F3Devents { | |
// fired whenever a player registers a name | |
event onNewName |
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 demo; | |
import java.math.BigInteger; | |
import java.util.Arrays; | |
import org.web3j.crypto.Hash; | |
import org.web3j.utils.Numeric; | |
public class AddressChecker { |
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 eos.sample; | |
import java.time.ZoneId; | |
import java.time.ZonedDateTime; | |
import java.time.format.DateTimeFormatter; | |
import java.time.temporal.ChronoUnit; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; |
OlderNewer