Skip to content

Instantly share code, notes, and snippets.

View flash76's full-sized avatar

flash76

View GitHub Profile
private static String[] months = {
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
@flash76
flash76 / one-liner-neofetch-custom-ascii.md
Created January 25, 2021 15:39
A one-liner command to show neofetch with a custom ASCII image in zsh

Requires

  • curl
  • jp2a
  • neofetch
  • zsh
neofetch --source =(jp2a <(curl $image))

You can do image= or just replace $image with the link to your jpg.

@flash76
flash76 / NativeModuleStuff.md
Last active March 15, 2021 22:53
React Native stuff I might need later

Creating one

npx @react-native-community/bob create name-of-module

Adding iOS CocoaPods dependencies

Go into the generated native module folder, edit the name-of-module.podspec file. Add s.dependency "PodDependencyHere" for each dependency right before the end

Modular headers (not sure if this is required): go to example/ios and edit Podfile, and do use_modular_headers! or :modular_headers => true for a dependency

Adding it to your main RN app

Go to Podfile in the main project, add pod 'name-of-module', :path =&gt; '/path/to/native/module/where/the/podspec/is'