Skip to content

Instantly share code, notes, and snippets.

View hXtreme's full-sized avatar
:octocat:
Improving your experience. Please wait...

Harsh Parekh hXtreme

:octocat:
Improving your experience. Please wait...
View GitHub Profile
@hXtreme
hXtreme / vid-tweet.sh
Created July 20, 2019 17:32
ffmpeg-twitter
ffmpeg -i $input -vcodec libx264 -pix_fmt yuv420p -strict -2 -acodec aac ${input%.*}.mp4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hXtreme
hXtreme / MangaInfoControler.kt
Created July 10, 2019 19:22
The changes I made when trying to provide Migration from within Manga Info page.
import eu.kanade.tachiyomi.ui.migration.MigrationController
import eu.kanade.tachiyomi.ui.migration.SearchController
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.action_open_in_browser -> openInBrowser()
R.id.action_open_in_web_view -> openInWebView()
R.id.action_share -> shareManga()
R.id.action_add_to_home_screen -> addToHomeScreen()
R.id.action_migrate -> migrate()
@hXtreme
hXtreme / LibraryNavigationView.kt
Last active July 10, 2019 10:12
Template for when I try to implement filters for categories in Tachiyomi.
inner class CategoryGroup : Group {
private val categories = List<Category>(0)
override val items = categories.map { category -> Item.TriStateGroup( category.id, this) }
override val header = Item.Header(R.string.categories)
override val footer = Item.Separator()