Skip to content

Instantly share code, notes, and snippets.

View snowdream's full-sized avatar
🏠
Working from home

snowdream snowdream

🏠
Working from home
View GitHub Profile
@snowdream
snowdream / API Documentation Generator Tools
Created August 29, 2013 05:46
API Documentation Generator Tools
#API Documentation Generator Tools
1.jsondoc [http://jsondoc.org/](http://jsondoc.org/ "")
easily generate docs and playground for your RESTful API
2.apidocjs [http://apidocjs.com/](http://apidocjs.com/ "")
apiDoc creates a documentation from API descriptions in your source code.
3.swagger [https://developers.helloreverb.com/swagger/](https://developers.helloreverb.com/swagger/ "")
Swagger is a specification and complete framework implementation for describing, producing, consuming, and visualizing RESTful web services.
@snowdream
snowdream / github hosts
Last active January 4, 2020 00:16
github hosts
207.97.227.239 github.com
65.74.177.129 www.github.com
207.97.227.252 nodeload.github.com
207.97.227.243 raw.github.com
204.232.175.78 documentcloud.github.com
204.232.175.78 pages.github.com
@snowdream
snowdream / gradle.properties
Last active January 1, 2016 08:39
gradle.properties
signing.keyId=1278B2B2
signing.password=1234567
signing.secretKeyRingFile=/home/travis/secring.gpg
android.signingConfigs.release.storeFile = file(/home/travis/snowdream.keystore)
android.signingConfigs.release.storePassword = 1234567
android.signingConfigs.release.keyAlias = snowdream
android.signingConfigs.release.keyPassword = 1234567
sonatypeRepo=https://oss.sonatype.org/service/local/staging/deploy/maven2/
@snowdream
snowdream / .bashrc
Last active February 25, 2016 18:53
.bashrc for centos
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
# Set colors for man pages
@snowdream
snowdream / gradle.properties
Created February 21, 2014 02:07
gradle.properties located in gradle user home.
# gradle.properties located in gradle user home.
# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
@snowdream
snowdream / hosts
Created February 23, 2014 01:14
hosts
/*
* Copyright (C) 2014 Snowdream Mobile <yanghui1986527@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
interface Computable<K,V>{
V compute(final K arg);
}
@snowdream
snowdream / iptables-oschina
Created February 28, 2014 01:46
OSChina 服务器上的 iptables 配置
# Generated by iptables-save v1.3.5 on Mon Jan 11 14:01:33 2010
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [69433329:72212483414]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -i eth1 -j ACCEPT
@snowdream
snowdream / iptables
Last active August 29, 2015 13:56
iptables-snowdream
# Generated by iptables-save v1.4.7 on Fri Feb 21 14:08:18 2014
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -m tcp --dport 5901:5902 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
public class ParentChildTest{
public static void main(String[] args){
Parent parent = new Parent();
parent.onDraw();