Skip to content

Instantly share code, notes, and snippets.

@Ynng
Ynng / custom.css
Last active April 19, 2024 20:26
vscode vtuber logo
.editor-group-watermark > .letterpress{
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode.png") !important;
opacity: .75;
}
@rdenadai
rdenadai / python_expert_path.md
Last active April 19, 2024 20:20
My take into build a basic structure to dictate how to become a Python Expert ... from basic to specialist ?

Python Expert Path

Beginner

  • Basic syntax
    • Variables types:
      • bool, int, float, str, byte, complex, None
    • Conditionals:
      • if, else, elif, for, while, match
  • Functions: simple use, and known what first class citizen is (concept)
@rubyandcoffee
rubyandcoffee / Bootstrap - Rails 7
Last active April 19, 2024 20:20
Bootstrap with Rails 7
Adding Bootstrap to Rails 7
Reference: https://www.linkedin.com/pulse/rails-7-bootstrap-52-importmap-md-habibur-rahman-habib/
INSTRUCTIONS
1. Add the following to Gemfile:
gem "bootstrap"
gem "sassc-rails"
@SevlaMare
SevlaMare / 1prompt.py
Last active April 19, 2024 20:22
AI ollama
# ollama pull gemma:2b
from langchain_community.llms import Ollama
llm = Ollama(model="gemma:2b")
res = llm.invoke("Tell me a joke")
print(res)
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php

Bash tips: Colors and formatting (ANSI/VT100 Control sequences)

The ANSI/VT100 terminals and terminal emulators are not just able to display black and white text ; they can display colors and formatted texts thanks to escape sequences. Those sequences are composed of the Escape character (often represented by “^[” or “<Esc>”) followed by some other characters: “<Esc>[FormatCodem”.

In Bash, the <Esc> character can be obtained with the following syntaxes:

  • `\e`
@Aero-Blue
Aero-Blue / telegram-bot.py
Created March 24, 2020 23:51
Telegram bot made with Telethon that sends a message to all members of a specified group
from telethon.sync import TelegramClient
import asyncio
from os import path
# Logging configuration
def login(phone, api_id, api_hash):
global client
client = TelegramClient(phone, int(api_id), api_hash)
@bmaupin
bmaupin / free-database-hosting.md
Last active April 19, 2024 20:08
Free database hosting