Skip to content

Instantly share code, notes, and snippets.

Avatar

Moyang Wang googolmo

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am googolmo on github.
  • I am momowang (https://keybase.io/momowang) on keybase.
  • I have a public key ASDXezlaKS8yaFlbUqmCKDn2RSWntPFOFw5dQr6uncXR7wo

To claim this, I am signing this object:

@googolmo
googolmo / init.vim
Last active Mar 8, 2018
NeoVim Config
View init.vim
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
call plug#begin("~/.local/share/nvim/plugged")
Plug 'autozimu/LanguageClient-neovim', { 'do': ':UpdateRemotePlugins' }
Plug 'roxma/nvim-completion-manager'
" Using a tagged release; wildcard allowed (requires git 1.9.2 or above)
Plug 'fatih/vim-go', { 'tag': '*' }
@googolmo
googolmo / blinks2.zsh-theme
Created Mar 7, 2018
config for oh_my_zsh
View blinks2.zsh-theme
# https://github.com/blinks zsh theme
# This theme works with both the "dark" and "light" variants of the
# Solarized color schema. Set the SOLARIZED_THEME variable to one of
# these two values to choose. If you don't specify, we'll assume you're
# using the "dark" variant.
case ${SOLARIZED_THEME:-dark} in
light) bkg=white;;
*) bkg=black;;
View simple-obfs.rb
# Documentation: http://docs.brew.sh/Formula-Cookbook.html
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
class SimpleObfs < Formula
desc "Simple-obfs is a simple obfusacting tool, designed as plugin server of shadowsocks."
homepage "https://github.com/shadowsocks/simple-obfs"
url "https://github.com/shadowsocks/simple-obfs/archive/v0.0.2.tar.gz"
sha256 "cfd7b847be57401e1c664662781d41bc5b089b341232d94375ca4dd612b3852f"
View about_gradle.md

#About Gradle# ##What is Gradle##

Gradle is build automation evolved. Gradle can automate the building, testing, publishing, deployment and more of software packages or other types of projects such as generated static websites, generated documentation or indeed anything else.

Gradle combines the power and flexibility of Ant with the dependency management and conventions of Maven into a more effective way to build. Powered by a Groovy DSL and packed with innovation, Gradle provides a declarative way to describe all kinds of builds through sensible defaults. Gradle is quickly becoming the build system of choice for many open source projects, leading edge enterprises and legacy automation challenges.

http://www.gradle.org/

##Gradle和Maven的比较##

View Traceback.movie
11-15 14:40:28.774 24973-24973/com.douban.movie E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.douban.movie, PID: 24973
java.lang.UnsatisfiedLinkError: Couldn't load amapv3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.douban.movie-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.douban.movie-1, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at com.autonavi.amap.mapcore.MapCore.<clinit>(MapCore.java:42)
at com.amap.api.mapcore.b.<init>(AMapDelegateImpGLSurfaceView.java:263)
at com.amap.api.mapcore.b.<init>(AMapDelegateImpGLSurfaceView.java:220)
at com.amap.api.mapcore.ac.a(MapFragmentDelegateImp.java:117)
at com.amap.api.maps.SupportMapFragment.onCreateView(SupportMapFragment.java:124)
View copy_file_to_jniLibs.gradle
android.LibraryVariant.all { variant ->
if (variant.packageLibrary) {
def originFolder = ""
copy {
from "$originFolder"
into variant.packageLibrary.jniDir
}
}
}
@googolmo
googolmo / index.php
Created Jan 30, 2012 — forked from rpetrich/index.php
Twitter self-hosted image service/url shortener
View index.php
<?
// Twitter self-hosted image service/url shortener by Ryan Petrich
// Installation:
// 1. Paste this script into the top of your HTTP root's index.php (rename index.html to index.php if it doesn't exist)
// 2. Add the following to your HTTP root's .htaccess file (create .htaccess if it doesn't exist):
// ErrorDocument 404 /index.php
// 3. Create a "s" subfolder and give it 777 permissions
// 4. Add the following as the custom URL for URL shortening in Twitter for iPhone's settings:
// http://yourdomain.com/?d=%@&p=password
// 5. Add the following as the custom URL for Image service:
@googolmo
googolmo / sdcard
Created Sep 16, 2011
Installing Android apps to the SD card
View sdcard
<android xmlns:android="http://schemas.android.com/apk/res/android">
<tool-api-level>8</tool-api-level>
<manifest android:installLocation="preferExternal">
<uses-sdk android:minSdkVersion="7" />
</manifest>
</android>