Content :
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 mount /dev/sdXXX /mnt | |
| sudo mount /dev/sdXX /mnt/boot/efi | |
| for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | |
| sudo chroot /mnt | |
| grub-install /dev/sdX | |
| update-grub | |
| # Note : sdX = disk | sdXX = efi partition | sdXXX = system partition | |
| # 'Fixed' by replacing /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi with /boot/efi/EFI/arch/grubx64.efi |
It is a simple MD to force LLMs to help you build your own prompts following Anthropic'sinternal prompt engineering template Inspired by https://www.reddit.com/r/PromptEngineering/comments/1n08dpp/anthropic_just_revealed_their_internal_prompt/
- Add this file to your proyect
- Invoke this MD in the LLM context
- Ask to model: "help me write a prompt following this process" + draft of your prompt
Then the model is goign to ask you the template questions to help you build the final prompt based on the template.
This file contains hidden or 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
| # FLASK Webapp for Image Segmentation Model | |
| import os, sys, io | |
| sys.path.append(".") | |
| import webapp | |
| from flask import Flask | |
| import flask | |
| import numpy as np | |
| import pandas as pd |
The tutorial Use OpenCL in Android camera preview based CV application show us how we can use the Transparent API to dramatically increase the performance of some expensive operations.
The first step in order to be able to execute the tutorial example is to re-compile opencv with the correct flags:
# Export your NDK, it will be looked for OpenCV to compile your project. In my case
export ANDROID_NDK=~/graffter/libs/android-ndk-r10d/
# Download the necessary code
This file contains hidden or 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 dataclasses import dataclass, fields as datafields | |
| from ujson import dumps, loads | |
| # Note: ujson seamlessly serializes dataclasses, unlike stdlib's json | |
| @dataclass | |
| class Point: | |
| x: float | |
| y: float | |
| # Shallow dataclass can be rebuilt from dict/json: |
This file contains hidden or 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
| $ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
This file contains hidden or 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
| //eos3 | |
| flatpak remote-add --user eos-apps --no-gpg-verify https://ostree.endlessm.com/ostree/eos-apps | |
| flatpak install --user eos-apps com.google.Chrome | |
| git clone [email protected]:endlessm/eos-google-chrome-app.git | |
| cd eos-google-chrome-app | |
| chmod +x eos-google-chrome-app | |
| ./eos-google-chrome-app | |
| //master | |
| flatpak remote-add --user --no-gpg-verify chrome http://blog.kukuh.syafaat.id/google-chrome-flatpak-repo-testing/repo |
This file contains hidden or 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 <stdio.h> | |
| #include <string.h> | |
| #define MAX_DATA_LEN 1024 | |
| static unsigned char hex_string[MAX_DATA_LEN]; | |
| static inline char convert_to_printable(char c) | |
| { | |
| return c < 32 || c > 126 ? '.' : c; |
NewerOlder