Skip to content

Instantly share code, notes, and snippets.

View aniketp's full-sized avatar
🤠

Aniket Pandey aniketp

🤠
View GitHub Profile
@shivansh
shivansh / clang-format
Created May 29, 2018 23:30
clang-format based on FreeBSD's style(9)
BasedOnStyle: LLVM
IndentWidth: 8
UseTab: Always
BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 0
AlignTrailingComments: true
SpacesBeforeTrailingComments: 2
@asitava1998
asitava1998 / GSoCFinalReport.md
Last active November 8, 2018 19:25
GSoc-2017 Final Report and Code

GSoC 2017 Report, Asitava Sarkar - FOSSASIA

I worked on Pocket Science Lab Project of FOSSASIA in Google Summer of Code 2017. My work consisted of creating an Android app for communication with the PSLab device and making some improvements in the PSLab Desktop App. The app has the functionalities of an oscilloscope; controls for voltage source, current source, waveform generator etc.; logic analyzer; sensor data visualisation and logging and a large collection of saved experiments. PSLab is capable of performing a wide variety of experiments ranging from trivial high school experiments to complicated engineering ones.

GSoC - Link of my abstract of proposal

Github Links: PSLab Android

@parthsharma1996
parthsharma1996 / Get-Started.md
Last active March 21, 2017 13:40
How to get started with Reinforcement Learning
@nepsilon
nepsilon / git-change-commit-messages.md
Last active September 7, 2024 11:11
How to change your commit messages in Git? — First published in fullweb.io issue #55

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

@sdorra
sdorra / keys.go
Created April 17, 2016 19:31
Golang RSA Key Generation
/*
* Genarate rsa keys.
*/
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@SumiTomohiko
SumiTomohiko / fd_passing.c
Created September 24, 2015 06:10
File descriptor passing with sendmsg(2) and recvmsg(2) over Unix domain socket
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/wait.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@bdrewery
bdrewery / mfc.sh
Last active June 25, 2018 12:57
FreeBSD MFC script
#! /bin/sh
#
# Copyright (c) 2014 Bryan Drewery <[email protected]>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@mgechev
mgechev / binary-search-tree-cpp.cpp
Last active October 3, 2022 03:54
Simple implementation of binary search tree in C++.
#include <iostream>
#include <math.h>
using namespace std;
template <class T>
struct Node {
T value;
Node *left;
Node *right;