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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>distccd-rpi</string> | |
<key>Program</key> | |
<string>/Users/YOUR_USER_NAME/Scripts/launchd-distccd.sh</string> | |
<key>RunAtLoad</key> | |
<true/> |
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
source | |
http://pastebin.com/raw.php?i=Vnje5sEe | |
gcc -o eglinfo eglinfo.c -lEGL -lGLESv2 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -L/opt/vc/lib | |
EGL | |
Vendor: Broadcom | |
Version: 1.4 | |
Client APIs: OpenGL_ES OpenVG |
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
# Builds a Libpng framework for the iPhone and the iPhone Simulator. | |
# Creates a set of universal libraries that can be used on an iPhone and in the | |
# iPhone simulator. Then creates a pseudo-framework to make using libpng in Xcode | |
# less painful. | |
# | |
# To configure the script, define: | |
# IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1) | |
# | |
# Then go get the source tar.bz of the libpng you want to build, shove it in the | |
# same directory as this script, and run "./libpng.sh". Grab a cuppa. And voila. |
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
Nightly required - get link from the bottom of this page (e.g. https://openframeworks.cc/ci_server/versions/nightly/of_v20190324_linuxarmv7l_nightly.tar.gz) | |
https://openframeworks.cc/download/ | |
Download OF and unpack: | |
wget https://openframeworks.cc/ci_server/versions/nightly/of_v20190324_linuxarmv7l_nightly.tar.gz | |
tar -zxvf of_v20190324_linuxarmv7l_nightly.tar.gz | |
mv of_v20190324_linuxarmv7l_nightly openFrameworks |
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
//git remove missing files | |
git rm $(git ls-files --deleted) | |
//replace master with goodbranch | |
git checkout goodbranch | |
git merge -s ours master | |
git checkout master | |
git merge goodbranch |
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 | |
NewerOlder