Skip to content

Instantly share code, notes, and snippets.

View nqmgaming's full-sized avatar
:fishsticks:
Focusing

Nguyễn Quang Minh (NQM) nqmgaming

:fishsticks:
Focusing
View GitHub Profile
@stevdza-san
stevdza-san / Converters.kt
Last active March 31, 2024 10:09
@TypeConverter
class Converters {
@TypeConverter
fun fromBitmap(bitmap: Bitmap): ByteArray {
val outputStream = ByteArrayOutputStream()
bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream)
return outputStream.toByteArray()
}
@TypeConverter
@Justryuz
Justryuz / gist:0c42b0db0da87318a13c894079fd4437
Last active July 26, 2024 01:53
## Unlimited User License Sublime Text Windows Build 4107
## Unlimited User License Sublime Text Alpha 4107 Windows
Download & Install Sublime Text 4 Alpha 4107
Visit https://hexed.it/
Open file select sublime_text.exe
Go to Address: 80 38 00 and Change to FE 00 90
Export File and save it to location you want
Backup sublime_text.exe file (just rename)
Copy sublime_text.exe modified to directory Sublime Text 4 (i.e C:\Program Files\Sublime Text)
@gleba
gleba / jetton.js
Last active January 27, 2025 01:19
TON Jetton example
const TonWeb = require("tonweb");
const utils = require("tonweb/src/utils");
const NftUtils = require("tonweb/src/contract/token/nft/NftUtils");
const Cell = TonWeb.boc.Cell;
const { JettonMinter, JettonWallet } = TonWeb.token.jetton;
const jettonContentUri = 'https://files.raevskyschool.ru/coin.json';
async function doit() {
const tonweb = new TonWeb(new TonWeb.HttpProvider('https://testnet.toncenter.com/api/v2/jsonRPC', { apiKey: "get here: https://t.me/tontestnetapibot" }));
const WalletClass = tonweb.wallet.all['v3R2'];
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, false)
super.onCreate(savedInstanceState)
setContent {
ColorPickerTheme {
Surface(
modifier = Modifier.fillMaxSize(),
color = MaterialTheme.colorScheme.background
) {
/local.properties
@jtvargas
jtvargas / MatrixEffect.swift
Created September 9, 2024 01:24
Stress Fiddle App in SwiftUI
//
// MatrixEffect.swift
//
// Created by J.T on 9/8/24.
//
import SwiftUI
import Combine
class MatrixEffectModel: ObservableObject {