Skip to content

Instantly share code, notes, and snippets.

View rishabh-battulwar's full-sized avatar

Rishabh Battulwar rishabh-battulwar

  • Loom AI
  • San Francisco
View GitHub Profile
@hoishing
hoishing / HowTo.md
Last active March 4, 2025 11:14
VSCode keybindings for Xcode

VSCode keybindings for Xcode

  • copy VSCode.idekeybindings to ~/Library/Developer/Xcode/UserData/KeyBindings
  • in Xcode preferences -> key bindings, select VSCode
@jrade
jrade / FastExp.h
Last active March 5, 2025 17:14
Fast approximate exponential function
// Copyright 2021 Johan Rade ([email protected])
// Distributed under the MIT license (https://opensource.org/licenses/MIT)
#ifndef FAST_EXP_H
#define FAST_EXP_H
#include <cstdint>
#include <cstring>
@kevinkreiser
kevinkreiser / logging.hpp
Last active February 22, 2025 05:52
Thread-safe logging singleton c++11
#ifndef __LOGGING_HPP__
#define __LOGGING_HPP__
/*
Test this with something like:
g++ -std=c++11 -x c++ -pthread -DLOGGING_LEVEL_ALL -DTEST_LOGGING logging.hpp -o logging_test
./logging_test
*/
#include <string>