Skip to content

Instantly share code, notes, and snippets.

Sami Haahtinen ressu

View GitHub Profile
View genesis_public_key
043c758ff4d4d076a414e77cfc06913e0dfa41954ad82f0f115cc6711cb15821c5db232a484cade0cd60ecf8d8e19ccd4ea742a355b11b80508328f11662bf3698
View keybase.md

Keybase proof

I hereby claim:

  • I am ressu on github.
  • I am ressu (https://keybase.io/ressu) on keybase.
  • I have a public key ASDLbfvzLjkmMkpWAB9VV7V8Uiq1FeGqArkVLEg4Q1rx4wo

To claim this, I am signing this object:

View init.vim
set nocompatible
set runtimepath+=~/.vim/bundle/neobundle.vim/
call neobundle#begin(expand('~/.vim/bundle'))
" Uncomment these lines to make the check work
" if has('python')
" endif
NeoBundle 'jaxbot/github-issues.vim', {'disabled': !has('python')}
call neobundle#end()
filetype plugin indent on
View vimrc-debug.vim
if has('vim_starting')
set nocompatible
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
if has("eval")
call neobundle#begin(expand('~/.vim/bundle'))
NeoBundle 'Shougo/neobundle-vim-recipes', {'force': 1}
NeoBundleRecipe 'neobundle'
endif
View why.py
class Class1:
def __init__(self, arg1, arg2):
print "Would do stuff with %s and %s" % (arg1, arg2)
class Class2(Class1):
def do_something(self):
print "I would do something else"
class Class3(Class1):
def __init__(self, arg1, arg2):
View gist:c748ad4e4e3be1c42d83

Installing python through pyenv

Pyenv is a tool to install and manage side by side python installations. It's generally used for development, but can be used for production environments as well.

Installing pyenv is simple, we can use the installer. The installer installs pyenv to ~/.pyenv along with tools to build various python versions.

curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash

Follow the instructions given by the installer on how to enable the pyenv command.

View base_vimrc.vim
" Modeline and Notes {
" vim:foldmarker={,} foldlevel=0 foldmethod=marker spell ft=vim
"
" This configuration file contains pretty much everything needed to make Vim
" play nice (or at least like I want it to)
"
" Influenced by: https://github.com/spf13/spf13-vim/blob/master/.vimrc
"
" - Sami Haahtinen <ressu@ressukka.net>
" }
View designer.html
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
#core_drawer_panel {
position: absolute;
top: 0px;
View designer.html
<link rel="import" href="../paper-dialog/paper-dialog.html">
<polymer-element name="my-element">
<template>
<paper-dialog heading="heading" backdrop layered opened="true"></paper-dialog>
</template>
<script>
You can’t perform that action at this time.