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
@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 {
/local.properties
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
) {
@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'];
@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)
@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
@RustemAqtau
RustemAqtau / UIView+Extension.swift
Last active June 26, 2024 10:23
UIView Extension for configure constraints anchors programmatically
import UIKit
extension UIView {
func anchor(top: NSLayoutYAxisAnchor? = nil,
left: NSLayoutXAxisAnchor? = nil,
bottom: NSLayoutYAxisAnchor? = nil,
right: NSLayoutXAxisAnchor? = nil,
paddingTop: CGFloat = 0,
paddingLeft: CGFloat = 0,
paddingBottom: CGFloat = 0,
@ubogdan
ubogdan / ida_plugins.md
Created August 11, 2019 09:03
A list of IDA Plugins

A list of IDA Plugins

I'll be organizing the plugins over time. Please submit PRs if you have any other outstanding plugins. I would like to tag each plugin with its corresponding IDA version, but it will take me a long time to test. If you can help there, please do.

If a plugin is only a source repo with no description or documentation, I am not adding it.

TODO

  • Add more plugins
  • Categorize plugins
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class RocketStages {
static final int N = 11000;
static final double G = 9.8;
static double A[] = new double[N + 100];
https://maps.googleapis.com/maps/api/js?key=AIzaSyAOVYRIgupAurZup5y1PRh8Ismb1A3lLao&libraries=places&callback=initMap