Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| sys_rb_usr=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
| sdk_rb_usr=`xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr | |
| sudo cp -r $sdk_rb_usr/include $sys_rb_usr/include |
| /** | |
| * A {@link HttpRequest.ConnectionFactory connection factory} which uses OkHttp. | |
| * <p/> | |
| * Call {@link HttpRequest#setConnectionFactory(HttpRequest.ConnectionFactory)} with an instance of | |
| * this class to enable. | |
| */ | |
| public class OkConnectionFactory implements HttpRequest.ConnectionFactory { | |
| private final OkHttpClient client; | |
| public OkConnectionFactory() { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
| import org.json.JSONObject; | |
| import android.content.Context; | |
| import com.android.volley.Request.Method; | |
| import com.android.volley.RequestQueue; | |
| import com.android.volley.Response.ErrorListener; | |
| import com.android.volley.Response.Listener; | |
| import com.android.volley.toolbox.ImageLoader; |
| #! /usr/bin/env python2 | |
| # -*- coding: utf-8 -*- | |
| from weibo import APIClient | |
| import urllib | |
| import requests | |
| # 个人信息 | |
| __author__ = 'GentlemanMod' | |
| __email__ = '[email protected]' | |
| __version__ = 'v1' |
URL: http://www.v2ex.com/api/site/stats.json
获取社区统计信息。
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| // | |
| // UIView+frameAdjust.h | |
| // fenbi | |
| // | |
| // Created by Tang Qiao on 12-5-31. | |
| // Copyright (c) 2012年 Fenbi.com . All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |