Instead of the verbose setOnClickListener
:
RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));
Observable
.just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
name: Security audit | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
paths: | |
- '**/Cargo.toml' | |
- '**/Cargo.lock' | |
jobs: | |
security_audit: |
//FROM https://www.coderdump.net/2018/04/automatic-refresh-api-token-with-retrofit-and-okhttp-authenticator.html | |
public class ApiClient { | |
private static Retrofit retrofitRefresh = null; | |
private static Retrofit retrofit = null; | |
public static Retrofit getAdapterRefresh() { | |
if (retrofitRefresh==null) { | |
final OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); | |
httpClient.addInterceptor(new Interceptor() { | |
@Override |
import android.support.design.widget.TabLayout | |
//Listener for TabLayout.AddOnTabSelectedListener | |
fun TabLayout.onTabSelectedListener(function: __TabLayout_onTabSelectedListener.() -> Unit) { | |
val listener = __TabLayout_onTabSelectedListener() | |
listener.function() | |
addOnTabSelectedListener(listener) | |
} | |
class __TabLayout_onTabSelectedListener : TabLayout.OnTabSelectedListener{ |
var winston = require('winston') | |
// set default log level. | |
var logLevel = 'info' | |
// Set up logger | |
var customColors = { | |
trace: 'white', | |
debug: 'green', | |
info: 'blue', |
var winston = require('winston') | |
// set default log level. | |
var logLevel = 'info' | |
// Set up logger | |
var customColors = { | |
trace: 'white', | |
debug: 'green', | |
info: 'blue', |
This is a quick tutorial explaining how to get a static website hosted on Heroku.
Why do this?
Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.
This is a quick tutorial explaining how to get a static website hosted on Heroku.
Why do this?
Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.
// NOTE DONT put in an editor folder | |
using UnityEngine; | |
public class MinMaxAttribute : PropertyAttribute | |
{ | |
public float MinLimit = 0; | |
public float MaxLimit = 1; | |
public MinMaxAttribute(int min, int max) |