Skip to content

Instantly share code, notes, and snippets.

@rs0h
rs0h / GTK4-VSCode.md
Created December 9, 2022 01:13
GTK4 VSCode Includepath

GTK4 VSCode Includepath Guide

Hello, this is a short guide to getting rid of the squiggly red lines when you try and import the gtk lib globally. (ex: #include <gtk/gtk.h>)

Dependencies

Fedora34+ (and possibly other distros)

Tested on 8/21/2021 with Gnome 40 release

{
@rs0h
rs0h / .gitignore
Created May 3, 2016 01:01 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@rs0h
rs0h / pr.md
Created April 12, 2016 23:31 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@rs0h
rs0h / find_elem_circuits.m
Created April 12, 2016 11:49 — forked from cmaes/find_elem_circuits.m
Find all the elementary circuits of a directed graph
function [numcycles,cycles] = find_elem_circuits(A)
if ~issparse(A)
A = sparse(A);
end
n = size(A,1);
Blist = cell(n,1);