Skip to content

Instantly share code, notes, and snippets.

View ithustle's full-sized avatar

Célio Garcia ithustle

View GitHub Profile
@ithustle
ithustle / Colors.kt
Created January 3, 2024 15:31
ToDo - Live 1
class Colors {
companion object {
val arrayColors = listOf(
Color(0xFF910101),
Color(0xFF0D0191),
Color(0xFF5D8238),
Color(0xFF000000),
Color(0xFFB47D3C),
Color(0xFF6D0D75),
Color(0xFF9C9C9C)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ithustle
ithustle / store.ts
Created February 8, 2023 10:30
Zustand with typescript
interface iAppState {
refreshPlaylist: number;
refreshHome: number;
userLogged: AccountUserType | undefined | null;
refreshApp: number;
context: ObjectType | null;
suggestedTracks: AlbumType[];
setRefreshApp: () => void;
setContext: (context: ObjectType) => void;
setRefreshPlaylist: () => void;
@ithustle
ithustle / MainActivity.kt
Last active October 24, 2022 16:59
Play with ExoPlayer / Caching / HLS
package com.toquemedialabs.crossaudio
import android.annotation.SuppressLint
import android.net.Uri
import android.os.Bundle
import android.widget.Button
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.android.exoplayer2.ExoPlayer
import com.google.android.exoplayer2.MediaItem
@ithustle
ithustle / README.md
Created June 5, 2021 21:01 — forked from mbleigh/README.md
Firebase Hosting Fetch All Files

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>