Skip to content

Instantly share code, notes, and snippets.

# Implements a logistic regression with mini-batch gradient descent using tensorflow
# testing with the sklearn moons dataset
import tensorflow as tf
import numpy as np
from datetime import datetime
from sklearn.datasets import make_moons
def get_tb_dir(prefix=None) -> str:
" deoplete.vim contains vim settings relevant to the deoplete autocompletion
" plugin
" for more details about my neovim setup see:
" http://afnan.io/2018-04-12/my-neovim-development-setup/
" deoplete options
let g:deoplete#enable_at_startup = 1
let g:deoplete#enable_smart_case = 1
" disable autocomplete by default
@afnanenayet
afnanenayet / keybase.md
Created June 30, 2018 15:30
Proof of identity for Keybase

Keybase proof

I hereby claim:

  • I am afnanenayet on github.
  • I am afnanenayet (https://keybase.io/afnanenayet) on keybase.
  • I have a public key ASAQkK2dLCXxSZGcZgjBXohhb3D5-MaFg2O2vF77TQKzNwo

To claim this, I am signing this object:

@afnanenayet
afnanenayet / cluster_wrapper_script.sh
Created April 9, 2019 02:53
Generate a render with PBRT on the Dartmouth Anthill cluster
#!/bin/bash
# The name of the job, can be anything, simply used when displaying the list of running jobs
#$ -N pbrt-killeroos-render
# Combining output/error messages into one file
#$ -j y
# Set memory request:
#$ -l vf=1G
# Set walltime request:
#$ -l h_rt=02:59:59
# set num threads
@afnanenayet
afnanenayet / blockapi.py
Last active February 14, 2022 04:27
Add FIPS data to a CSV
"""A script to augment a CSV with FIPS data.
"""
import requests
import requests_futures
import pandas as pd
from typing import cast, Dict, Any
import pdb
import numpy as np
from loguru import logger