This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| import FreeCAD, FreeCADGui, Part | |
| # R(x) = sqrt(R0^2 + 2*R0*tan(F)*x + (tan(A)*x)^2) | |
| # | |
| # x .. distance from the throat along the WG axis | |
| # R(x) .. radius of the WG at x | |
| # R0 .. radius of the WG at the throat | |
| # A .. coverage angle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.database.ContentObserver | |
| import android.net.Uri | |
| import android.os.Handler | |
| import io.reactivex.ObservableEmitter | |
| import io.reactivex.ObservableOnSubscribe | |
| class ContentProviderUpdates(handler: Handler) : ObservableOnSubscribe<Uri>, ContentObserver(handler) { | |
| private var emitter: ObservableEmitter<Uri>? = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private typealias Update<T> = T.() -> Unit | |
| class DataUpdatesStaging<T> { | |
| private val updateBuffer: MutableList<Update<T>> = ArrayList() | |
| private val updateStream: BehaviorSubject<List<Update<T>>> = BehaviorSubject.create(updateBuffer) | |
| fun stageUpdate(update: Update<T>) { | |
| synchronized(updateBuffer) { | |
| updateBuffer.add(update) | |
| updateStream.onNext(updateBuffer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm wernight/cpuminer-multi:alpine cpuminer -a yescrypt -o stratum+tcp://yescrypt.us.hashrefinery.com:6233 -u 1MQpRBPmBW5fDW3sxpagmSYE9RWFxWLTDo -p BTC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required(VERSION 2.8) | |
| include(ExternalProject) | |
| ExternalProject_Add(sqlite-sources | |
| URL http://www.sqlite.org/2017/sqlite-src-3200100.zip | |
| PREFIX ${CMAKE_CURRENT_BINARY_DIR}/sqlite-sources | |
| CONFIGURE_COMMAND cd ../sqlite-sources && ./configure | |
| BUILD_COMMAND "" | |
| INSTALL_COMMAND "") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://www.sqlite.org/download.html | |
| SQLITE_VERSION ?= 3200100 | |
| SQLITE_YEAR ?= 2017 | |
| SQLITE_BASENAME := sqlite-src-$(SQLITE_VERSION) | |
| # Complete URL sample: https://sqlite.org/2017/sqlite-3200100.zip | |
| SQLITE_URL := http://www.sqlite.org/$(SQLITE_YEAR)/$(SQLITE_BASENAME).zip | |
| CC = gcc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.ContentResolver; | |
| import android.database.ContentObserver; | |
| import android.net.Uri; | |
| import android.os.Handler; | |
| import android.os.HandlerThread; | |
| import android.util.Pair; | |
| import java.util.UUID; | |
| import rx.Observable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:xenial | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| unzip \ | |
| sudo \ | |
| python \ | |
| python-setuptools \ | |
| python-dev \ | |
| build-essential |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2017 PlanGrid, Inc. All rights reserved. | |
| */ | |
| package com.plangrid.android.dmodel.mapper; | |
| import android.database.Cursor; | |
| import rx.functions.Func1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2017 PlanGrid, Inc. All rights reserved. | |
| */ | |
| package com.plangrid.android.dmodel.annotation; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.RetentionPolicy; | |
| @Retention(RetentionPolicy.RUNTIME) |
NewerOlder