Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀

David dcow

🦀
View GitHub Profile
@dcow
dcow / keybase.md
Created Oct 3, 2017
Keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am dcow on github.
  • I am dcow (https://keybase.io/dcow) on keybase.
  • I have a public key ASAnKGCPssH60ii0G9d7R5MbpaNrVv2_8kNEAA-G65i94Ao

To claim this, I am signing this object:

View toggle-wifi.log
May 14 16:15:02 dcows-MacBook-Pro kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
May 14 16:15:02 dcows-MacBook-Pro kernel[0]: en0::IO80211Interface::postMessage bssid changed
May 14 16:15:02 dcows-MacBook-Pro kernel[0]: en0: 802.11d country code set to 'X0'.
May 14 16:15:02 dcows-MacBook-Pro kernel[0]: en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 144 149 153 157 161 165
May 14 16:15:02 dcows-MacBook-Pro symptomsd[240]: -[NetworkAnalyticsEngine _writeJournalRecord:fromCellFingerprint:key:atLOI:ofKind:lqm:isFaulty:] Hashing of the primary key failed. Dropping the journal record.
May 14 16:15:02 dcows-MacBook-Pro kernel[0]: IO80211AWDLPeerManager::setAwdlElectionMetric can't set election metric (60) ret=6
May 14 16:15:02 dcows-MacBook-Pro kernel[0]: AirPort: Link Down on awdl0. Reason 1 (Unspecified).
May 14 16:15:02 dcows-MacBook-Pro kernel[0]: IO80211AWDLPeerManager::setAwdlElectionMetric can't
View flow-migration.txt
Flow 0.12 -> 1.0 migration guide
StateParceler -> KeyParceler
Flow.Dispatcher -> Dispatcher
flowDelegate.onNewIntent(Intent) -> Flow.onNewIntent(Intent, Activity)
flowDelegate.onResume()[other lifecycle] -> InternalLifecycleIntegration/InternalContextWrapper
Path -> "key" ... (not full story, keys are trivial now)
Flow.Traversal -> Traversal
Flow.TraversalCallback -> TraversalCallback
MortarScoper via FlowServicves
@dcow
dcow / desktop.png
Last active Dec 18, 2016
kill llvmpipe & workaround integer dpi scale
@dcow
dcow / embedded-android.md
Last active Dec 3, 2016
Android Dev Con 2016
View embedded-android.md
View thanksgiving.md

Thanksgiving

  • maple rosemary sweet potatoes - 30 min
  • mashed potatoes - 60 min
  • roast carrots - 45 min
  • green bean caserole - 60 min
    • onion rings
    • blanched green beans
    • mushrooms
  • mac and cheese - 30 min
@dcow
dcow / info
Last active Aug 29, 2015
Builds of urbit at different levels of parallelism
View info
for n in [1,2,4,8]
make -jn >jno 2>jne
@dcow
dcow / robolectric-is-fun.md
Last active Aug 29, 2015
Notes forking Robolectric and the associated Gradle plugin for Android projects
View robolectric-is-fun.md

Robolectric is Fun™

Steps for building robolectric and the gradle plugin locally

Robolectric

Setup

Robolectric is a pure maven build. You'll need maven.

@dcow
dcow / OverloadedConstructor.java
Created Mar 12, 2014
Overload constructor example, Java.
View OverloadedConstructor.java
public class OverloadedConstructor {
String value;
public OverloadedConstructor(int value) {
this.value = Integer.toString(value);
}
public OverloadedConstructor(String value) {
this.value = value;
View PieProgressDrawable.java
package com.example.android.view;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.util.DisplayMetrics;