Skip to content

Instantly share code, notes, and snippets.

View adamblvck's full-sized avatar
💭
Studying Physics, Hussling SpellBook

ADAM BLVCK adamblvck

💭
Studying Physics, Hussling SpellBook
View GitHub Profile
@adamblvck
adamblvck / gundb_expo_fix.sh
Created July 22, 2022 18:00
Bash script, allowing one to quickly fix key import lines, allowing Expo-based developers to make WebView Crypto work in their projects
# Put this file in root of your expo project. Don't forget to execute `chmod +x ./gundb_expo_fix.sh`
# Run the file after every `npm install` or `expo install` as those commands revert changes done by this script
##### Fix first file
# replace first line of code with working import
sed '1 c\
import serializeError from "serialize-error";' node_modules/webview-crypto/src/MainWorker.ts > tmp_file.ts
# overwrite file to fix, and remove tmp-file
@adamblvck
adamblvck / withAndroidMainActivityAttributes.js
Created March 2, 2023 11:23
Expo Plugin for enabling `android:largeHeap` flag in AndroidManifest, allowing one to process more data in memory (useful when reading large JSON files).
const { withAndroidManifest } = require("@expo/config-plugins");
module.exports = function androiManifestPlugin(config) {
return withAndroidManifest(config, async (config) => {
let androidManifest = config.modResults.manifest;
androidManifest.application[0].$["android:largeHeap"] = "true";
return config;
});
@adamblvck
adamblvck / gist:add1fc756a537b706e896624706aafda
Created September 12, 2023 22:04
Better Prompts for MidJourney with ChatGPT Given Any Concept or Notion.
Act like a midjourney graphic-design artist, generating prompts to generate AI-assisted graphics from an initial description, context, or scenario. Be very specific in your description, and concise. Use creative and symbolic words to describe the scenery, objects, and subjects of the to-be-drawn image. Use at least 300 words per prompt. If a concept or description of the image is distinct from the previously written subjects, then separate the description or concept by a ":: ".
Generate me five unique and detailed prompts, for each provided topic that follows. Finish each prompt with " --ar 9:16". Use unique, symbolic, and very poetic language. Make use of important artist names if it would better describe a concept or circumstance. Be very creative in word choice.
Here's the first concept to comprehend and understand, and turn into beautiful AI art:
--> yout poem, description, idea, or anything <---