Skip to content

Instantly share code, notes, and snippets.

Avatar

Connor Bode connorbode

  • Montreal, Canada
View GitHub Profile
View .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'https://github.com/fatih/vim-go'
Plugin 'https://github.com/scrooloose/nerdtree'
Plugin 'flazz/vim-colorschemes'
@connorbode
connorbode / dabblet.css
Created Apr 1, 2014
The first commented line is your dabblet’s title
View dabblet.css
/**
* The first commented line is your dabblet’s title
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
@connorbode
connorbode / vamp_numberz.py
Last active Dec 27, 2015
SCS Interview Challenges : VAMPIRE NUMBERS o_O
View vamp_numberz.py
'''
Problem:
A vampire number is a number v = x * y s.t. x and y are not both
divisible by 10 and the digits of v consit of the digits of x and
the digits of y. The number of digits n in the vampire number
must be even, and the number of digits in each of the two fangs
x and y must be half the number of digits in v. For instance,
1260 = 21 x 60 and 1395 = 15 x 93 are both vampire numbers.
You can’t perform that action at this time.