- Install
dnscrypt-proxyusing Homebrew:
brew install dnscrypt-proxy- Configure DNSCrypt:
nano /opt/homebrew/etc/dnscrypt-proxy.tomldnscrypt-proxy using Homebrew:brew install dnscrypt-proxynano /opt/homebrew/etc/dnscrypt-proxy.toml| package com.openland.react.anim.hack | |
| import android.util.Log | |
| import android.view.View | |
| import android.view.ViewPropertyAnimator | |
| import java.lang.reflect.Constructor | |
| import java.lang.reflect.Field | |
| object MakeAnimationsFast { |
The libdispatch is one of the most misused API due to the way it was presented to us when it was introduced and for many years after that, and due to the confusing documentation and API. This page is a compilation of important things to know if you're going to use this library. Many references are available at the end of this document pointing to comments from Apple's very own libdispatch maintainer (Pierre Habouzit).
My take-aways are:
You should create very few, long-lived, well-defined queues. These queues should be seen as execution contexts in your program (gui, background work, ...) that benefit from executing in parallel. An important thing to note is that if these queues are all active at once, you will get as many threads running. In most apps, you probably do not need to create more than 3 or 4 queues.
Go serial first, and as you find performance bottle necks, measure why, and if concurrency helps, apply with care, always validating under system pressure. Reuse
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
Author: Chris Lattner
| (ns utils.styler | |
| " | |
| A macro namespace that generates classes on the fly for usage in cljs. | |
| # Motivation | |
| https://ryantsao.com/blog/virtual-css-with-styletron | |
| # Synopsis: | |
| In your cljs files you can use inline styles: |
| let rows = {} | |
| export default function(props = [], state = []) { | |
| return function(target) { | |
| const proto = Object.create(target.prototype) | |
| proto.shouldComponentUpdate = function(newProps, newState) { | |
| let id = (this._update_id = this._update_id || Math.random()) |
| (function() { | |
| // Do not use this library. This is just a fun example to prove a | |
| // point. | |
| var Bloop = window.Bloop = {}; | |
| var mountId = 0; | |
| function newMountId() { | |
| return mountId++; | |
| } |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.cards.notification"> | |
| <uses-sdk | |
| android:minSdkVersion="17" | |
| android:targetSdkVersion="17" /> | |
| <application | |
| android:allowBackup="true" |