Skip to content

Instantly share code, notes, and snippets.

View 0xDBFB7's full-sized avatar

Daniel Correia 0xDBFB7

View GitHub Profile
@nowl
nowl / perlin.c
Created February 15, 2011 19:04
Perlin Noise in C
#include <stdio.h>
static int SEED = 0;
static int hash[] = {208,34,231,213,32,248,233,56,161,78,24,140,71,48,140,254,245,255,247,247,40,
185,248,251,245,28,124,204,204,76,36,1,107,28,234,163,202,224,245,128,167,204,
9,92,217,54,239,174,173,102,193,189,190,121,100,108,167,44,43,77,180,204,8,81,
70,223,11,38,24,254,210,210,177,32,81,195,243,125,8,169,112,32,97,53,195,13,
203,9,47,104,125,117,114,124,165,203,181,235,193,206,70,180,174,0,167,181,41,
164,30,116,127,198,245,146,87,224,149,206,57,4,192,210,65,210,129,240,178,105,
@ax3l
ax3l / CUDA_Compilers.md
Last active November 4, 2024 08:04
CUDA Compilers
@quark-zju
quark-zju / gdb-trace.py
Last active October 20, 2024 16:34
Trace all function calls using gdb
#!/usr/bin/env python
try:
import gdb
inside_gdb = True
except ImportError:
inside_gdb = False
if inside_gdb:
@sfujiwara
sfujiwara / cg.py
Created December 31, 2015 19:47
conjugate gradient method implemented with python
# -*- coding: utf-8 -*-
import numpy as np
from scipy.sparse.linalg import cg
import tensorflow as tf
import time
def conjugate_grad(A, b, x=None):
"""
@rlskoeser
rlskoeser / zotero-rdf-tags.py
Created November 3, 2016 16:28
Python script to generate CSV summary data from a Zotero RDF library export
#! /usr/bin/env python
# simple script to pull data from a Zotero library RDF export
# and generate a CSV file with identifier, type of item, title,
# date, and the number of tags
#
# Only supports book and bookSection item types, all other items are ignored
#
# The CSV file will be generated with the same base name as the
# RDF input file.
@pwuertz
pwuertz / kicad_picknplace_assistant.py
Last active November 27, 2023 07:04
KiCad PCB pick and place assistant
Moved to:
https://github.com/pwuertz/kicad_picknplace_assistant
@trikitrok
trikitrok / embedded_c_testing_tdd_resources.md
Created December 20, 2016 08:37
Resources for embedded C testing and TDD
Maintained version lives at https://github.com/retorquere/zotero-file-hierarchy
@ScottHelme
ScottHelme / ballot.md
Last active September 9, 2019 17:45
Ballot SC22: Reduce Certificate Lifetimes

Ballot SC22: Reduce Certificate Lifetimes

Ballot SC22 is valid, quorum has been met, 40 votes cast out of 60 total votes.


Final Status: Ballot Fails

Voting Closed: 18:00 UTC 9th Sep 2019.