Skip to content

Instantly share code, notes, and snippets.

View alissonmarcs's full-sized avatar

Alisson alissonmarcs

  • São Bernardo do Campo, São Paulo, Brasil
  • 18:27 (UTC -03:00)
  • LinkedIn in/alissonmarcs
View GitHub Profile
@tsprates
tsprates / binary-tree.c
Last active September 2, 2024 10:19
A Binary Tree implementation in C
// Binary Tree
// Author: Thiago Prates <tsprates@hotmail.com>
#include <stdio.h>
#include <stdlib.h>
typedef struct _node {
int data;
struct _node* left;
struct _node* right;
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active September 20, 2024 12:45
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots
@JankDev
JankDev / Object.cpp
Created March 23, 2019 22:46
Polymorphism C++
#include <string>
#include <cstring>
#include <typeinfo>
#include <iostream>
#include <list>
#include <vector>
using namespace std;
class Object{
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active September 21, 2024 10:48 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@palopezv
palopezv / dwm_config_pulseaudio.h
Last active September 12, 2024 09:21 — forked from neuro-sys/dwmconfig.h
dwm volume control with hardware multimedia keys (pipewire, pulseaudio, amixer and light as an extra)
/**
* dwmconfig.h
* Hardware multimedia keys
*/
/* Somewhere at the beginning of config.h include: */
/*
You obviously need the X11 development packages installed, X11proto in particular, but
here is the location of the keysyms header upstream copy if you can't bother
using the contents of your own hard drive. ;-P
@eatonphil
eatonphil / functions.c
Last active September 12, 2024 21:39
Introduction to "Fun" C (using GCC)
/**
* This are a collection of examples for C 201.
* These combine concepts you may or may not be
* familiar with and are especially useful for
* students new to C. There is a lot of really
* cool stuff you can do in C without any cool
* languages.
*
* This is file in particular is an introduction
* to fun function usage in C.
@harish-r
harish-r / Binary Search Tree.c
Last active September 2, 2024 10:21
Binary Search Tree Implementation in C
/* Binary Search Tree Implementation in C */
/* Harish R */
#include<stdio.h>
#include<stdlib.h>
struct TreeNode
{
int data;
struct TreeNode* left;