View FragmentTemplate.kt
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 | |
View gist:b3d271750e839baa2ba29d67417da3d0
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 "id@apple.com" -p "appspecifpassword" | |
xcrun altool --list-providers -u "id@apple.com" -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 |
View gist:0373645973c100aba3955b046fa09cad
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 |
View drm_info.txt
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 |
View ofAppEGLWindow.cpp
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> |
View ofApp.cpp
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
/* | |
ADDED | |
PLATFORM_DEFINES += GLFW_EXPOSE_NATIVE_EGL | |
PLATFORM_DEFINES += GLFW_EXPOSE_NATIVE_X11 | |
TO | |
openFrameworks/libs/openFrameworksCompiled/project/linuxarmv6l/config.linuxarmv6l.default.mk | |
Adapted from https://wiki.maemo.org/SimpleGL_example | |
*/ |
View gist:da69dc29c276a01151d9f85126e0c49a
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
string filePath = “data.csv”; | |
ofFile file(filePath); | |
if(!file.exists()){ | |
ofLogError(“The file ” + filePath + ” is missing”); | |
} | |
ofBuffer buffer(file); | |
vector<string> lines; | |
View fuckme.playground
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 UIKit | |
class Content | |
{ | |
var name:String = "DEFAULT" | |
func setup(_ name:String) | |
{ | |
self.name = name |
View openframeworks jetson nano.txt
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 |
NewerOlder