Skip to content

Instantly share code, notes, and snippets.

import numpy as np
def fizzbuzz(number):
if number % 15 == 0:
return np.array(["fizzbuzz"], dtype="object")
elif number % 5 == 0:
return np.array(["buzz"], dtype="object")
elif number % 3 == 0:
return np.array(["fizz"], dtype="object")
else:
@rouseguy
rouseguy / zshrc
Created August 9, 2017 18:56
zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/bsubrama/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@rouseguy
rouseguy / vimrc
Created August 9, 2017 18:53
vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
syntax enable
set background=light
let g:solarized_contrast="high"
colorscheme solarized
set guifont=Hack:h20
set showmatch
@rouseguy
rouseguy / config.toml
Created July 16, 2017 08:23
sample hugo blog config.toml
baseurl = "the github.io link"
title = "title of the blog"
theme = "hugo-theme-nix"
languageCode = "en-us"
#disqusShortname = "your_disqus_shortname"
[menu]
[[menu.header]]
name = "blog"
weight = 0
@rouseguy
rouseguy / seq2seq_keras.py
Created July 19, 2016 09:17
Sequence to Sequence - Keras
%%time
# -*- coding: utf-8 -*-
'''An implementation of sequence to sequence learning for performing addition
Input: "535+61"
Output: "596"
Padding is handled by using a repeated sentinel character (space)
Input may optionally be inverted, shown to increase performance in many tasks in:
"Learning to Execute"
http://arxiv.org/abs/1410.4615