I am a software engineer who works on protocol-level development in the cryptocurrency field. In my free time, I also contribute to many other non-cryptocurrency-related open source projects.
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
| public class ExponentialWeightedMovingAverage | |
| { | |
| private bool isInitialized; | |
| // Smoothing/damping coefficient | |
| private double alpha; | |
| public double Average { get; private set; } | |
| public ExponentialWeightedMovingAverage(int samplesPerWindow) |
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
| static async Task<(IReadOnlyCollection<int>, TimeSpan)> RunComputationsAsync(int maxDegreeOfParallelism, int messageCount) | |
| { | |
| SemaphoreSlim semaphore = new SemaphoreSlim(maxDegreeOfParallelism); | |
| List<Task<int>> tasks = new List<Task<int>>(); | |
| Stopwatch stopwatch = new Stopwatch(); | |
| stopwatch.Start(); | |
| for (int i = 0; i < messageCount; i++) | |
| { |
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
| #!/bin/bash | |
| # Only tested on Ubuntu 17.10 x64 (This is because CMAKE Package 3.6 is required for Build OpenALPR Android Script) | |
| ######################################################################################################## | |
| # Script pieced together and tested by Kevin J. Petersen (Github: https://github.com/kevinjpetersen) ### | |
| ######################################################################################################## | |
| ## Scripts used ## | |
| # ubuntu-cli-install-android-sdk.sh by zhy0 (Github: https://github.com/zhy0) |
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
| #!/bin/bash | |
| # You should tweak this section to adapt the paths to your need | |
| export ANDROID_HOME=/home/jeremy/Android/Sdk | |
| export NDK_ROOT=/home/jeremy/Android/Sdk/ndk-bundle | |
| ANDROID_PLATFORM="android-21" | |
| # In my case, FindJNI.cmake does not find java, so i had to manually specify these | |
| # You could try without it and remove the cmake variable specification at the bottom of this file |
Starting with 1.12 in July 2016, Docker Swarm Mode is a built-in solution with built-in key/value store. Easier to get started, and fewer ports to configure.
- TCP port 2377 for cluster management & raft sync communications
- TCP and UDP port 7946 for "control plane" gossip discovery communication between all nodes
- UDP port 4789 for "data plane" VXLAN overlay network traffic
- IP Protocol 50 (ESP) if you plan on using overlay network with the encryption option
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
| Quick tip for handling CSRF Token Expiration - common issue is when you use csrf protection is that if | |
| a form sits there for a while (like a login form, but any the same) the csrf token in the form will | |
| expire & throw a strange error. | |
| Handling it is simple, and is a good lesson for dealing with other types of errors in a custom manner. | |
| In Middleware you will see a file VerifyCsrfToken.php and be tempted to handle things there. DON'T! | |
| Instead, look at your app/Exceptions/Handler.php, at the render($request, Exception $e) function. | |
| All of your exceptions go through here, unless you have excluded them in the $dontReport array at the |
Thanks to @seejee for making this for me!!!
The goal of this is to have an easily-scannable reference for the most common syntax idioms in C# and Rust so that programmers most comfortable with C# can quickly get through the syntax differences and feel like they could read and write basic Rust programs.
What do you think? Does this meet its goal? If not, why not?
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
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
| Step 1. Preparation | |
| -------------------- | |
| First take care of the dependencies for Android Application Development. | |
| Dependencies are - | |
| 1. Java | |
| 2. ant | |
| 3. Eclipse and Android Development tools (IDE) | |
| 4. Android SDK and NDK | |
| 5. adb |
NewerOlder