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
#ifndef HELLOWORLDRULEOFFIVE_H | |
#define HELLOWORLDRULEOFFIVE_H | |
class SYMBOL_EXPORT HelloWorldRuleOfFive | |
{ | |
public: | |
HelloWorldRuleOfFive() = default; | |
~HelloWorldRuleOfFive() = default; | |
HelloWorldRuleOfFive( const HelloWorldRuleOfFive & other ) = default; | |
HelloWorldRuleOfFive( HelloWorldRuleOfFive && other ) = default; |
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
# retrieve profiles from dedicated repo | |
git clone [email protected]:<some_repo>/conan-config.git | |
cd conan-config/ | |
# install profiles on ~/.conan/profiles/ | |
conan config install . | |
# add repo credentials | |
conan user -p <password> -r <repo_name> <username> | |
conan install libusb/1.00.0@<repo_name>/stable -b outdated |
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
#!/bin/sh | |
wget https://cmake.org/files/v3.20/cmake-3.20.4.tar.gz | |
tar zxvf cmake-3.* | |
cd cmake-3.* | |
./bootstrap --prefix=/usr/local -- -DCMAKE_USE_OPENSSL=OFF | |
make -j $( ([[ $OSTYPE == 'darwin'* ]] && sysctl -n hw.ncpu ) || ( cat /proc/cpuinfo |grep processor | wc -l ) ) | |
make install |
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
// MARK: Reading Values | |
private var receiveDetectionEventsTimer: Timer? = nil | |
func receiveDetectionEvents() { | |
let charUuid = wifiUuid | |
print("STEP 1: READING CHARACTERISTIC \(charUuid)...") | |
if manager == nil { | |
manager = CentralManager(options: [CBCentralManagerOptionRestoreIdentifierKey : "CentralMangerKey" as NSString]) | |
} | |
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 <string_view> | |
template <typename T> | |
constexpr auto type_name() noexcept { | |
std::string_view name = "Error: unsupported compiler", prefix, suffix; | |
#ifdef __clang__ | |
name = __PRETTY_FUNCTION__; | |
prefix = "auto type_name() [T = "; | |
suffix = "]"; | |
#elif defined(__GNUC__) |
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
#!/bin/bash | |
echo 'Please ensure that you enabled Developer Mode on Android device.' | |
read -p "Press any key to confirm..." | |
echo 'Please ensure that you enabled Usb Debugging on Android device.' | |
read -p "Press any key to confirm..." | |
echo 'Please ensure that your device is connected to computer through USB.' | |
read -p "Press any key to confirm..." | |
IP_ADDRESS=$1 |
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
#!/bin/sh | |
# To run : | |
# $ chmod +x xcode_podspec.sh | |
# $ /bin/sh xcode_podspec.sh /path/to/project/ | |
echo "========== Pod Spec Start ==========" | |
# define paths | |
projectPath="$1" | |
basename=$(basename $projectPath) |
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
2018-02-17 21:54:45.363 xcodebuild[9540:25758] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: | |
/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/com.apple.dt.XCTest/IDETestRunSession-923158DE-39B9-4541-A4B9-96011B65D93B/ApplicationNameTests-A5A0B3DC-9966-4B98-81B0-F2CB230F2ECA/Session-ApplicationNameTests-2018-02-17_215445-vBeZBF.log | |
2018-02-17 21:54:45.435 xcodebuild[9540:25751] [MT] IDETestOperationsObserverDebug: (A30841CE-7786-4605-AEF3-33E6B81DE16E) Beginning test session ApplicationNameTests-A30841CE-7786-4605-AEF3-33E6B81DE16E at 2018-02-17 21:54:45.434 with Xcode 9B55 on target <DVTiPhoneSimulator: 0x7f9f68192000> { | |
SimDevice: iPad Air (FFDCEC43-BE2D-46EA-98AA-5643F6882D39, iOS 10.0, Booted) | |
} (10.0 (14A345)) | |
2018-02-17 21:54:45.456 xcodebuild[9540:26807] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: | |
/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/com.apple.dt.XCTest/IDETestRunSession-923158DE-39B9-4541-A4B9-96011B65D93B/ApplicationNameUITe |
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
To pull before push without merging: | |
git reset --soft HEAD~ && git stash && git pull && git stash pop | |
Troubleshoot pbxproj file (Optional): | |
sed -i '' '/<<<<</d' *.xcodeproj/project.pbxproj | |
sed -i '' '/=====/d' *.xcodeproj/project.pbxproj | |
sed -i '' '/>>>>>/d' *.xcodeproj/project.pbxproj | |
To pick granular setup commits: | |
git cherry-pick <hash> |
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
// | |
// AccountKitBaseViewController.swift | |
// | |
// Created by Michael Martinez on 29/12/2017. | |
// Copyright © 2017 Michael Martinez. All rights reserved. | |
// | |
import Foundation | |
import AccountKit |
NewerOlder