Skip to content

Instantly share code, notes, and snippets.

View Chronum94's full-sized avatar

Anubhab Haldar Chronum94

View GitHub Profile
@Chronum94
Chronum94 / GPAW_install_helper.txt
Last active July 18, 2020 11:43
Hopefully helps people install their personal GPAW whenever and wherever they desire. Currently does not include Elpa help.
# openmpi/3.1.4, GCC 8.3.0
# I strongly recommend Openmpi 4/GCC 9+, especially GCC 9 has some arcane optimizations it does.
GPAW_INSTALL_ROOT=
OPENBLAS_INSTALL_DIR=
LIBXC_INSTALL_DIR=
FFTW_INSTALL_DIR=
SCALAPACK_INSTALL_DIR=
ELPA_INSTALL_DIR=
LIBVDWXC_INSTALL_DIR=

Download libxc:

Either from the website

http://www.tddft.org/programs/libxc/download/

or from the Gitlab:

https://gitlab.com/libxc/libxc

gauss_elim.h
Has: int gaussianElimination(Real** A, Real* b, int dim);
Uses: numeric_types.hpp
gauss_elim.c
getZeros.hpp
Has: int getLegendreZero(Real* zero, Real* coeffs, int n);
int getLegendreCoeff(Real* a, int n);
Uses: numeric_types.hpp
getZeros.cpp
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 24 14:17:58 2017
@author: Chronum
"""
import numpy as np
import matplotlib.pyplot as plt
@Chronum94
Chronum94 / pls.txt
Created August 13, 2017 11:02
Discord.py installation memes
PS C:\Users\Chronum\Desktop\discord.py-async> python .\setup.py install
running install
running bdist_egg
running egg_info
writing discord.py.egg-info\PKG-INFO
writing dependency_links to discord.py.egg-info\dependency_links.txt
writing requirements to discord.py.egg-info\requires.txt
writing top-level names to discord.py.egg-info\top_level.txt
reading manifest file 'discord.py.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
@Chronum94
Chronum94 / Rect2D.py
Last active August 4, 2017 06:40
ShapeTest
class Rect2D():
"""TODO"""
def __init__(self, center, size):
self.xcen, self.ycen = center
self.xspan, self.yspan = size
self. verts = [(self.xcen - self.xspan/2, self.ycen - self.yspan/2),
(self.xcen + self.xspan/2, self.ycen - self.yspan/2),
(self.xcen + self.xspan/2, self.ycen + self.yspan/2),
(self.xcen - self.xspan/2, self.ycen + self.yspan/2)]
@Chronum94
Chronum94 / PoliticsCalibration.txt
Last active January 19, 2018 06:34
A bunch of sites to take political leaning tests
http://politicalcompass.org/
https://8values.github.io/
http://spekr.org/
http://politiscales.la-commune.net/
# -*- coding: utf-8 -*-
"""
Created on Mon May 29 02:45:53 2017
@author: Chronum
"""
import numpy as np
import matplotlib.pyplot as plt
from numba import jit
@Chronum94
Chronum94 / blazegen.cpp
Last active May 25, 2017 09:01
Array Stuff
//
// Created by chronum on 5/23/17.
//
#ifndef BLAZE_IDE_TEST_BLAZEGEN_HPP
#define BLAZE_IDE_TEST_BLAZEGEN_HPP
#include <blaze/Blaze.h>
#include <iomanip>
#include <random>