Skip to content

Instantly share code, notes, and snippets.

View rehanvipin's full-sized avatar

Rehan V rehanvipin

View GitHub Profile
@vchirikov
vchirikov / settings.json
Created June 7, 2020 14:26
Windows Terminal config
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"alwaysShowTabs": true,
"confirmCloseAllTabs": true,
"showTabsInTitlebar": true,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols": 170,
"initialRows": 60,
@Samyak2
Samyak2 / tests.py
Last active December 9, 2021 07:56
Random test case generator and tester for intal in C
# this is a testing file for intal (integer of arbitrary length) in C, to be used with the python file
# Steps to use
# 1. Compile with the main file (which is here - https://gist.github.com/Samyak2/d0c2552b11581f59091f9f377bbc65f0)
# 1.1 Make sure the executable is named `intal` (using `-o intal` during compiling)
# 2. Make sure python version is >=3.6 and scipy is installed
# 3. Run this script
# excuse the bad code, it was only intended to work
# Here is another version to test the time complexity - https://gist.github.com/Samyak2/a2975ec738e76dd7ead1147db3c0ef93
# Author: Samyak S Sarnayak
import sys
@metonymic-smokey
metonymic-smokey / DockerArticle.md
Last active April 9, 2021 16:51
Delving into Docker - Article for the PESOS Blog

Introduction

What is Docker?

Docker is a set of tools that allow us to easily run containers and containerised apps. Why use Docker and these so called "containers"?

Well, containers are extremely useful as they are very lightweight and have minimal overheads. We can package an app along with just its dependencies and can isolate this into a container. These containers can then be run on absolutely any platform with a Docker engine. It has other benefits too like minimal storage requirements, resource isolation, security, namespacing (isolating resources per process or a group of processes), availability and elasticity in the cloud, and much more!

/*!
* jQuery JavaScript Library v2.1.1pre
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
@rxaviers
rxaviers / gist:7360908
Last active July 23, 2025 02:46
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@Xion
Xion / balls.kv
Created October 21, 2012 21:29
Bouncing balls experiment in Kivy
#:kivy 1.4.1
<Ball>:
size: 25, 25
canvas:
Color:
rgb: 1, 0, 1
Ellipse:
pos: self.pos
size: self.size
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@glennblock
glennblock / fork forced sync
Created March 4, 2012 19:27
Force your forked repo to be the same as upstream.
git fetch upstream
git reset --hard upstream/master