Skip to content

Instantly share code, notes, and snippets.

View nandavelugoti's full-sized avatar

Nanda Velugoti nandavelugoti

View GitHub Profile

RacerX 10/26/2016

Thomas Stoeckert 11/30/2016

Thomas Stoeckert 1/26/2018

Nanda Velugoti

// Nth fibonacci number
#define N 10
#include <stdio.h>
long fib(int n) {
long prevFib = 0;
long fib = 1;
int i;
for(i=2; i<=n; i++) {
@nandavelugoti
nandavelugoti / .tmux.conf
Last active February 22, 2020 22:42
My Tmux Configuration
# Config taken from https://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
@nandavelugoti
nandavelugoti / visualize.py
Created April 17, 2020 20:09
Visualize activation filters
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 15 17:20:25 2020
@author: Nanda Velugoti
"""
import numpy as np
import matplotlib.pyplot as plt
from keras.preprocessing import image
@nandavelugoti
nandavelugoti / setTimeout-vs-setInterval.md
Last active March 27, 2024 01:54
JavaScript - Difference between periodic setTimeout() and setInterval() functions

Difference between periodic setTimeout() and setInterval() functions

Overview

image Source

How does periodic setTimeout work?

Code