Skip to content

Instantly share code, notes, and snippets.

View VedantParanjape's full-sized avatar
🎯
Focusing

Vedant Paranjape VedantParanjape

🎯
Focusing
View GitHub Profile
@ericardomuten
ericardomuten / gsoc-badge.md
Last active April 18, 2022 15:08
Google Summer of Code GitHub & GitLab Badge

Google Summer of Code Badge

Star Badge License: CC0 1.0

If you are a Google Summer of Code (GSoC) student, feel free to attach this badge on your GSoC project repo!

This badge has been tested for Markdown on GitHub, GitLab, and Google Colab. Please let me know if you try the badge on other platforms and whether it works or not, I will add that info here so people will know whether it will works for them or not. Thanks!

@marty1885
marty1885 / root-realtime-plot.cpp
Last active October 1, 2021 15:52
Spectrum and waveform display using ROOT
// Using SFML as out audio loader and player
#include <SFML/Audio.hpp>
// The standard headers we need
#include <iostream>
#include <thread>
#include <chrono>
#include <stdexcept>
#include <memory>
#include <cassert>
@sboeuf
sboeuf / virt_notes.md
Last active April 25, 2023 18:53
Raw notes about virtualization, firecracker and crosvm

Global concepts

Addressable space

Depends on the processor capabilities, which can be around 36~40 bits for recent Intel processors. If taking 39 bits as an example, this means the total addressable space will be 1 TiB of available addresses. The guest RAM is part of this addressable space, same as devices, PCI holes, ...

BAR (Base Address Register)

A base address register is part of the PCI configuration space of each PCI device, and it declares an extra memory region related to the device that can be found at this specific base address.

@francesco-romano
francesco-romano / README.md
Created April 21, 2017 09:42
How to automatically generate doxygen documentation using Travis

Introduction

A clean and handy way to deal with your documentation is to exploit the GitHub Pages, which represents a nice tool to publish software documentation online.

Everything is basically done through the special branch called gh-pages. The branch must contain at the root level the index.html file pointing to the static documentation (generally generated via doxygen) stored somewhere within the branch itself. Further, the static documentation might be composed of many products (sometimes images), thus it would be worth saving space on the repository by not retaining any history for those files.

First off, we explain how to create the infrastructure for the documentation using git and keep it up-to-date throughout the changes the code undergoes. Then, we will dig into how we can use doxygen to generate the documentation.

Let's start ✨

anonymous
anonymous / grid.edn
Created March 14, 2017 13:44
shoelace grid
[[[[:xs nil 12]]] [[[:xs nil 1]] [[:xs nil 1] [:lg nil 8]]]]
anonymous
anonymous / config.json
Created March 14, 2017 13:43
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
anonymous
anonymous / config.json
Created March 14, 2017 13:42
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@danniranderis
danniranderis / macros.py
Last active May 26, 2018 13:02 — forked from skyl/kwacros.py
Django Template macros with args and kwargs forked for keeping the snippet updated
#
# templatetags/macros.py - Support for macros in Django templates
#
# Based on snippet by
# Author: Michal Ludvig <michal@logix.cz>
# http://www.logix.cz/michal
#
# modified for args and kwargs by Skylar Saveland http://skyl.org
#
# forked gist from Skylar Saveland to refactor to original django-snippet
@isopropylcyanide
isopropylcyanide / littlechecker.py
Last active January 7, 2024 16:50 — forked from rajarsheem/littlechecker.py
A little code checker tool in python for Java,C,Cpp. Handles compile error, runtime error, accepted, wrong, TLE.
import os
import filecmp
import re
codes = {200: 'success', 404: 'file_name not found',
400: 'error', 408: 'timeout'}
class program:
"""Class that handles all nitty gritties of a user program"""
@wenchy
wenchy / Makefile
Last active January 16, 2024 15:36
Compile all .cpp files into one target under the current directory.
CC := g++
CFLAGS := -Wall -g
TARGET := test
# $(wildcard *.cpp /xxx/xxx/*.cpp): get all .cpp files from the current directory and dir "/xxx/xxx/"
SRCS := $(wildcard *.cpp)
# $(patsubst %.cpp,%.o,$(SRCS)): substitute all ".cpp" file name strings to ".o" file name strings
OBJS := $(patsubst %.cpp,%.o,$(SRCS))
all: $(TARGET)