(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
cmake_minimum_required(VERSION 3.3) | |
project(CvMat) | |
find_package(Protobuf 3.2 REQUIRED) | |
if ( NOT (PROTOBUF_FOUND)) | |
message(FATAL_ERROR "Please Compile and Install ProtoBuffer -version 3 using GRPC C++: CMake will Exit") | |
endif() | |
set(CMAKE_BUILD_TYPE Debug) |
F=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks | |
for d in $(ls -d $F/*.framework); | |
do | |
sudo ln -s $d /Library/Frameworks/; | |
done | |
for d in $(ls -d $F/ApplicationServices.framework/Versions/A/Frameworks/*.framework); | |
do | |
sudo ln -s $d /Library/Frameworks/; |
#!/usr/bin/env bash | |
# script that fixes weird macOS 10.14 SDK issues | |
# SO: https://stackoverflow.com/questions/51314888/ld-warning-text-based-stub-file-are-out-of-sync-falling-back-to-library-file#comment93288538_53111739 | |
# script source: https://gist.github.com/wawiesel/eba461de5f5e38f7f0ac93ae3676b484 | |
# slightly modified to include PrivateFrameworks too | |
F=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks | |
G=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks |
import java.util.ArrayList; | |
public class Board { | |
private int[][] board; | |
private final int n; | |
private int hammingDist; | |
private int manhattanDist; | |
private int blankX, blankY; | |
// create a board from an n-by-n array of tiles, | |
// where tiles[row][col] = tile at (row, col) |