Skip to content

Instantly share code, notes, and snippets.

View nubilfi's full-sized avatar

Muh Ibnu Habil Hanafi nubilfi

View GitHub Profile
@nubilfi
nubilfi / img_url_to_ascii.rs
Created December 3, 2023 08:50
Rust Image URL to ASCII
use image::{io::Reader as ImageReader, GenericImageView};
use reqwest::blocking::get;
use std::io::{Cursor, Write};
fn main() {
// Fetch the image from the URL
let url = "https://media-4.api-sports.io/football/teams/529.png";
let response = get(url).expect("Failed to fetch the image");
let bytes = response.bytes().expect("Failed to read response bytes");
# postgre-env.list
POSTGRES_USER=postgres
POSTGRES_PASSWORD=your_pg_password
# pgadmin-env.list
[email protected]
PGADMIN_DEFAULT_PASSWORD=your_pgadmin_password
# docker-compose.yml
version: '3.7'
@nubilfi
nubilfi / README-Template.md
Created November 29, 2017 11:37 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@nubilfi
nubilfi / node-folder-structure-options.md
Created May 26, 2017 00:23 — forked from lancejpollard/node-folder-structure-options.md
What is your folder-structure preference for a large-scale Node.js project?

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin
@nubilfi
nubilfi / A.markdown
Created November 26, 2016 02:52 — forked from umpirsky/A.markdown
Sublime Text Monokai Sidebar Theme.