URL: http://www.v2ex.com/api/site/stats.json
获取社区统计信息。
| " copy all this into a vim buffer, save it, then... | |
| " source the file by typing :so % | |
| " Now the vim buffer acts like a specialized application for mastering vim | |
| " There are two queues, Study and Known. Depending how confident you feel | |
| " about the item you are currently learning, you can move it down several | |
| " positions, all the way to the end of the Study queue, or to the Known | |
| " queue. | |
| " type ,, (that's comma comma) |
| package org.goodev; | |
| import android.util.Log; | |
| import org.goodev.BuildConfig; | |
| /** | |
| * https://github.com/ANDLABS-Git/AndlabsAndroidUtils/blob/master/library/src/com/andlabs/androidutils/logging/L.java | |
| * | |
| * <pre> |
URL: http://www.v2ex.com/api/site/stats.json
获取社区统计信息。
| android { | |
| signingConfigs { | |
| release | |
| } | |
| buildTypes { | |
| release { | |
| signingConfig signingConfigs.release | |
| } |
| from requests_oauthlib import OAuth2Session | |
| from flask import Flask, request, redirect, session, url_for | |
| from flask.json import jsonify | |
| import os | |
| app = Flask(__name__) | |
| # This information is obtained upon registration of a new GitHub | |
| client_id = "<your client key>" |
| Step 1 - Add repositories primary server: | |
| touch README.md | |
| git init | |
| git add README.md | |
| git commit -m "Initial commit" | |
| git remote add origin git@remote-server1:repositories1/app | |
| git push -u origin master | |
| Step 2 - Add repositories alternative server: | |
| git remote add alter git@remote-server2:repositories2/app |
| #!/usr/bin/env bash | |
| # fresh-chrome | |
| # | |
| # Use this script on OS X to launch a new instance of Google Chrome | |
| # with its own empty cache, cookies, and user configuration. | |
| # | |
| # The first time you run this script, it will launch a new Google | |
| # Chrome instance with a permanent user-data directory, which you can | |
| # customize below. Perform any initial setup you want to keep on every |
| android { | |
| defaultConfig { | |
| versionName "actionbar" | |
| } | |
| signingConfigs { | |
| release { | |
| storeFile file("android.keystore") | |
| ... | |
| } | |
| } |
| // Usage: | |
| // blacklist | |
| String[] blacklist = new String[]{"com.any.package", "net.other.package"}; | |
| // your share intent | |
| Intent intent = new Intent(Intent.ACTION_SEND); | |
| intent.setType("text/plain"); | |
| intent.putExtra(Intent.EXTRA_TEXT, "some text"); | |
| intent.putExtra(android.content.Intent.EXTRA_SUBJECT, "a subject"); | |
| // ... anything else you want to add | |
| // invoke custom chooser |