Skip to content

Instantly share code, notes, and snippets.

View anant347's full-sized avatar

Anant Chandra anant347

View GitHub Profile
@anant347
anant347 / dashToPanelProfile
Created March 22, 2021 06:03
Customisation options for ubuntu using the Dash To Panel extension
[/]
focus-highlight-color='#eeeeee'
hotkeys-overlay-combo='TEMPORARILY'
group-apps-label-font-weight='lighter'
trans-panel-opacity=1.0
trans-use-custom-gradient=true
group-apps-label-max-width=130
dot-color-unfocused-1='#5294e2'
dot-color-unfocused-2='#5294e2'
dot-color-unfocused-3='#5294e2'
@anant347
anant347 / init.vim
Last active September 17, 2022 17:51
Configuration file for nvim
syntax on
set tabstop=4 softtabstop=4
set mouse=a
set nu
set noerrorbells
set noswapfile
let mapleader= " "
nnoremap <leader>so :source %<CR>
imap jj <ESC>
@anant347
anant347 / MakingRefWork_Mendeley_Latex.py
Last active March 22, 2021 06:18
Mendeley and Latex (making the file look better and replacing 'url' and 'urldate' with 'howpublished' and 'note')
#Making latex and mendeley work together
with open('references.txt','r') as file: #EDIT FILENAME IF NEEDED. PUT IN SAME FOLDER
D=file.readlines()
change_url=False
for i in range(len(D)):
a=D[i]
if a[0:5]=='@misc':
change_url=True
@anant347
anant347 / primeart.py
Last active December 24, 2018 13:21
Prime Numbers art
#Prime Art
import time
start = time. time()
import math as m
import matplotlib.pyplot as plt
import numpy as np
file="primes1.txt" #downloaded from "https://primes.utm.edu/lists/small/millions/" (removed first and last line)
with open(file,'r') as file:
d=file.readlines()
p=[]