Skip to content

Instantly share code, notes, and snippets.

View gaalha's full-sized avatar
:octocat:
Valiending

Gaala gaalha

:octocat:
Valiending
View GitHub Profile
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active March 10, 2025 11:48
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@DakotaLMartinez
DakotaLMartinez / instructions.md
Last active February 28, 2025 19:27
Adding an SSH key to GitHub (Mac OS X or Linux)
@codinginflow
codinginflow / MainActivity.kt
Created April 8, 2021 15:54
Circular Determinate ProgressBar with Background and Text Tutorial
package com.codinginflow.circulardeterminateprogressbar
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
private var progr = 0
override fun onCreate(savedInstanceState: Bundle?) {
@RobinBoers
RobinBoers / elementary OS config.md
Last active January 30, 2025 17:28
My way of configuring and customizing Elementary OS (linux)

Elementary OS config

This is a simple guide for myself about how to replicate my current eOS setup if I ever need to. These are my themes, customazations and tweaks to the OS, categorized and clearly written down for future me if he ever needs it.

Install software

Install updates

Always update when installing an new OS.

@miguelgrinberg
miguelgrinberg / .vimrc
Last active January 30, 2025 22:30
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'
@mkiisoft
mkiisoft / Fancy Button - Flutter
Created June 22, 2019 03:44
Fancy Button made for Flutter Games and Apps
import 'package:flutter/material.dart';
class FancyButton extends StatefulWidget {
const FancyButton({
Key key,
@required this.child,
@required this.size,
@required this.color,
this.duration = const Duration(milliseconds: 160),
this.onPressed,
@vbe0201
vbe0201 / music_bot_example.py
Last active March 7, 2025 10:49
A simple music bot written using discord.py rewrite and youtube_dl.
# -*- coding: utf-8 -*-
"""
Copyright (c) 2019 Valentin B.
A simple music bot written in discord.py using youtube-dl.
Though it's a simple example, music bots are complex and require much time and knowledge until they work perfectly.
Use this as an example or a base for your own bot and extend it as you want. If there are any bugs, please let me know.
@simme
simme / UITabBarController+ToggleTabBar.swift
Created January 25, 2018 15:36
Extension on UITabBarController for hiding/showing the tab bar.
extension UITabBarController {
/**
Show or hide the tab bar.
- Parameter hidden: `true` if the bar should be hidden.
- Parameter animated: `true` if the action should be animated.
- Parameter transitionCoordinator: An optional `UIViewControllerTransitionCoordinator` to perform the animation
along side with. For example during a push on a `UINavigationController`.
*/
@ibraheem4
ibraheem4 / postgres-brew.md
Last active February 11, 2025 10:40 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@JohnSundell
JohnSundell / CrossPlatformImages.swift
Last active January 5, 2025 10:16
An easy way to make code that uses UIImage cross-platform between iOS/tvOS & macOS
// Either put this in a separate file that you only include in your macOS target
// or wrap the code in #if os(macOS) / #endif
import Cocoa
// Step 1: Typealias UIImage to NSImage
typealias UIImage = NSImage
// Step 2: You might want to add these APIs that UIImage has but NSImage doesn't.
extension NSImage {