- Tools
- Xcode
- sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
- sudo xcodebuild -runFirstLaunch
- sudo gem install cocoapods
- might need this too:
- sudo gem install activesupport -v 6.1.7.6
- Xcode
- Android Studio
This file contains 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 3.22) | |
project(jsontest) | |
find_package(PkgConfig REQUIRED) | |
set(CMAKE_CXX_STANDARD 17) | |
# brew install jsoncpp | |
# jsoncpp library was installed via homebrew, so point to its directories | |
link_directories("/opt/homebrew/lib") |
This file contains 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
#include <iostream> | |
using namespace std; | |
int main() { | |
int array[] = {1, 2, 3, 4, 5}; | |
long sum = 0; | |
for (const int x: array) { | |
sum += x; | |
} |
This file contains 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:18.10 | |
RUN apt-get -qq update | |
RUN apt-get -qq upgrade | |
WORKDIR /usr/src | |
RUN apt-get -qq install libboost-all-dev cmake build-essential libtcmalloc-minimal4 libssl-dev openssl git && \ | |
ln -s /usr/lib/libtcmalloc_minimal.so.4 /usr/lib/libtcmalloc_minimal.so && \ | |
git clone https://github.com/nlohmann/json.git && \ | |
git clone https://github.com/nlohmann/fifo_map.git && \ | |
git clone https://github.com/0xdead4ead/beast_http_server.git && \ |
This file contains 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
db.unicorns.insert({ | |
name: 'Horny', | |
dob: new Date(1992, 2, 13, 7, 47), | |
loves: ['carrot', 'papaya'], | |
weight: 600, | |
gender: 'm', | |
vampires: 63 | |
}); | |
db.unicorns.insert({ | |
name: 'Aurora', |
This file contains 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
case SUBMIT_CHANGED_OPTIONS: { | |
const newOptionsList = state.standardOptionsList.map((option) => { | |
const pay = action.payload.find(a => a.optionId === option.optionId); | |
if (pay) { | |
option.isSelected = pay.isSelected; // eslint-disable-line | |
} | |
return option; | |
}); | |
return { | |
...state, |
This file contains 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
case SUBMIT_CHANGED_OPTIONS: { | |
const standardOptions = state.standardOptionsList; | |
const newOptionsList = standardOptions.map((option) => { | |
const newOption = {}; | |
newOption.optionId = option.optionId; | |
newOption.displayName = option.displayName; | |
newOption.categoryName = option.categoryName; | |
newOption.isSelected = option.isSelected; | |
const payload = action.payload; |
This file contains 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
yarn remove babel-preset-react-native | |
yarn add [email protected] | |
npm link #(babel-preset-react-native -- sometimes you may need to included the package) | |
rm -rf node_modules (PC delete node_modules directory) | |
npm install | |
react-native run-android |
This file contains 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
<div> | |
<h2>Total Results: {{total | number }}</h2> | |
<div class="button-row"> | |
<button md-raised-button (click)="previousPage()" [disabled]="!previousUrl">Previous</button> | |
<button md-raised-button (click)="nextPage()" [disabled]="!nextUrl">Next</button> | |
</div> | |
<md-list> | |
<md-list-item *ngFor="let item of items"> | |
<img md-list-avatar md-line src="{{item.owner.avatar_url}}"/> | |
<h2 md-line> {{item.full_name}}</h2> |
This file contains 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 {Component, OnInit} from '@angular/core'; | |
import {GitHubService} from '../git-hub.service'; | |
@Component({ | |
selector: 'app-results-list', | |
templateUrl: './results-list.component.html', | |
styleUrls: ['./results-list.component.css'] | |
}) | |
export class ResultsListComponent implements OnInit { |
NewerOlder