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
// g++ vector_vs_stack_array.cpp -O3 -o vector | |
#include <numeric> | |
#include <vector> | |
#include <chrono> | |
#include <iostream> | |
#include <cmath> | |
using namespace std::chrono; | |
double sumNewArray( int N ) { |
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> | |
#include <csignal> | |
#include <stdexcept> | |
// Global variable to track whether an exception was thrown | |
bool exceptionThrown = false; | |
// Signal handler function | |
void signalHandler(int signum) { |
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
BASIC | |
7E05 0301 06FF FF00 EF | |
7E05 0300 06FF FF00 EF | |
7E05 0301 06FF FF00 EF | |
7E05 0302 06FF FF00 EF | |
7E05 03D4 06FF FF00 EF | |
7E05 03C1 06FF FF00 EF | |
7E05 03C2 06FF FF00 EF | |
7E05 03C3 06FF FF00 EF | |
7E05 03C4 06FF FF00 EF |
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
$ sudo gatttool -I | |
[ ][LE]> connect BE:16:B2:00:04:6C | |
Attempting to connect to BE:16:B2:00:04:6C | |
Connection successful | |
[BE:16:B2:00:04:6C][LE]> characteristics | |
handle: 0x0002, char properties: 0x12, char value handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb | |
handle: 0x0005, char properties: 0x10, char value handle: 0x0006, uuid: 0000fff4-0000-1000-8000-00805f9b34fb | |
handle: 0x0008, char properties: 0x06, char value handle: 0x0009, uuid: 0000fff3-0000-1000-8000-00805f9b34fb |
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
package com.whatever | |
import android.os.Bundle | |
import androidx.fragment.app.Fragment | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import com.whatever.databinding.FragmentTemplateBinding | |
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
https://developer.apple.com/account/resources/certificates/list | |
https://support.apple.com/en-us/HT204397 | |
https://damian.fyi/2019/07/30/build-notarize-repeat/ | |
xcrun iTMSTransporter -m provider -u "[email protected]" -p "appspecifpassword" | |
xcrun altool --list-providers -u "[email protected]" -p "appspecifpassword" | |
security find-identity -v -p codesigning | |
macdeployqt Mac.app -sign-for-notarization="Developer ID Application: " | |
codesign -s "Developer ID Application: " --force --options=runtime --deep Mac.app |
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
cd / | |
sudo -i | |
mkdir /rootfs | |
mount --bind / /rootfs | |
sudo nano /etc/fstab | |
add: | |
/ /rootfs none bind |
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
pi@RPI4:~/TEMP/drm_info/build $ ./drm_info | |
drmModeGetResources: Invalid argument | |
Node: /dev/dri/card1 | |
├───Driver: vc4 (Broadcom VC4 graphics) version 0.0.0 (20140616) | |
│ ├───DRM_CLIENT_CAP_STEREO_3D supported | |
│ ├───DRM_CLIENT_CAP_UNIVERSAL_PLANES supported | |
│ ├───DRM_CLIENT_CAP_ATOMIC supported | |
│ ├───DRM_CLIENT_CAP_ASPECT_RATIO supported | |
│ ├───DRM_CLIENT_CAP_WRITEBACK_CONNECTORS supported | |
│ ├───DRM_CAP_DUMB_BUFFER = 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
#include "ofAppEGLWindow.h" | |
#include "ofGraphics.h" // used in runAppViaInfiniteLoop() | |
#include "ofAppRunner.h" | |
#include "ofUtils.h" | |
#include "ofFileUtils.h" | |
#include "ofGLProgrammableRenderer.h" | |
#include "ofGLRenderer.h" | |
#include "ofVectorMath.h" | |
#include <assert.h> |
NewerOlder