(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
private fun getData(): Single<String> { | |
var request: Request? = null | |
var response: Response? = null | |
var data: Any? = null | |
var error: FuelError? = null | |
var manager = FuelManager() | |
manager.basePath = "http://192.168.1.73:3000" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
curl -X POST "https://graph.facebook.com/v2.7/me/subscribed_apps?access_token=PAGE_APP_TOKEN" | |
curl -X POST -H "Content-Type: application/json" -d '{ | |
"setting_type":"greeting", | |
"greeting":{ | |
"text":"greeting message" | |
} | |
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_APP_TOKEN" |
#RxJS 5 Operators By Example
UPDATE: I have moved the contents of this gist plus more to https://github.com/btroncone/learn-rxjs and http://www.learnrxjs.io. For expanded examples, explanations, and resources, please check out this new location!
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
/* | |
SEO Service for Updating Title, Meta Tags, Etc. | |
*/ | |
import { Injectable } from '@angular/core'; | |
import { Title } from '@angular/platform-browser'; | |
import { getDOM } from '@angular/platform-browser/src/dom/dom_adapter'; | |
@Injectable() |
# guide https://www.nginx.com/blog/nginx-caching-guide/ | |
# document for variable http://nginx.org/en/docs/http/ngx_http_core_module.html#Variables | |
server { | |
... | |
location / { | |
# point is cookie name shouldn't contain - (hyphen), it cause wrong hash key. | |
# example $cookie_gist_var | |
proxy_cache_key $proxy_host$request_uri$cookie_{cookieNameShouldNotContainHyphen}; | |
... | |
} |
Map<String, String> transaction = new HitBuilders.TransactionBuilder() | |
.setTransactionId(ads.getItemId()) | |
.setAffiliation(memberModel.getmember_id()) | |
.setRevenue(Double.parseDouble(ads.getPrice())) | |
.setTax(0) | |
.setShipping(0) | |
.setCurrencyCode("") | |
.build(); | |
Map<String, String> item = new HitBuilders.ItemBuilder() |
private static OkHttpClient getUnsafeOkHttpClient() { | |
try { | |
// Create a trust manager that does not validate certificate chains | |
final TrustManager[] trustAllCerts = new TrustManager[] { | |
new X509TrustManager() { | |
@Override | |
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { | |
} | |
@Override |