Skip to content

Instantly share code, notes, and snippets.

View abdullahnettoor's full-sized avatar
💭
🚶 Wandering Gopher

Abdullah Nettoor abdullahnettoor

💭
🚶 Wandering Gopher
View GitHub Profile
@abdullahnettoor
abdullahnettoor / main.go
Last active February 27, 2025 19:33
SVG to PNG Converter in Go
// This Go utility function, svgToPng, converts an SVG file into a PNG image with a
// specified width and height. It leverages the oksvg and rasterx libraries to parse
// and render the SVG before encoding it as a PNG.
// The script ensures proper file handling and error management, making it a reusable
// and efficient solution for SVG-to-PNG conversion.
// The main function provides an example usage, converting pb_mono.svg into out.png at 512x512 resolution.
package main
import (
@abdullahnettoor
abdullahnettoor / textfield.dart
Created April 11, 2022 07:03
Set cursor position at the end of the value in flutter in TextField
controller.text = someString;
controller.selection = TextSelection.fromPosition(TextPosition(offset: controller.text.length));
@abdullahnettoor
abdullahnettoor / flutter-custom-fontweight.txt
Created March 14, 2022 18:05
Flutter Custom Font Weight Defaults
w100 Thin, the least thick
w200 Extra-light
w300 Light
w400 Normal / regular / plain
w500 Medium
w600 Semi-bold
w700 Bold
w800 Extra-bold
w900 Black, the most thick
@abdullahnettoor
abdullahnettoor / flutter-ci.yml
Created March 11, 2022 14:42
Flutter - Build APK through GitHub Actions
name: Flutter CI
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- master