Skip to content

Instantly share code, notes, and snippets.

@ressu
ressu / designer.html
Last active August 29, 2015 14:17
designer
<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;
@ressu
ressu / designer.html
Created August 12, 2014 17:51
designer
<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>
@ressu
ressu / designer.html
Created July 30, 2014 21:36
designer
<link rel="import" href="../paper-toast/paper-toast.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@ressu
ressu / designer.html
Created July 30, 2014 12:05
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<polymer-element name="vetrospace-relax">
<template>
@ressu
ressu / .vimrc
Last active August 29, 2015 13:58
My vim configuration
" Modeline and Notes {
" vim: set 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 <sami@badwolf.fi>
" }
=== Start output for job raspberrypi-kernel-3.2-r2 (0m28.6s) ===
raspberrypi-kernel-3.2-r2: >>> Emerging (1 of 1) sys-kernel/raspberrypi-kernel-3.2-r2 from raspberrypi for /build/raspberrypi/
raspberrypi-kernel-3.2-r2: * Running stacked hooks for pre_pkg_setup
raspberrypi-kernel-3.2-r2: * sysroot_build_bin_dir ...
raspberrypi-kernel-3.2-r2: [ ok ]
raspberrypi-kernel-3.2-r2: /home/ressu/trunk/src/third_party/chromiumos-overlay/eclass/cros-kernel2.eclass: line 276: cros-workon_pkg_setup: command not found
raspberrypi-kernel-3.2-r2: * Running stacked hooks for pre_src_unpack
raspberrypi-kernel-3.2-r2: * python_multilib_setup ...
raspberrypi-kernel-3.2-r2: [ ok ]
raspberrypi-kernel-3.2-r2: >>> Unpacking source...
@ressu
ressu / 01-outside-tmux-crete-rvmrc.txt
Created November 28, 2012 15:28
Quick demo case on tmux + rvm problems. In Look of proper solutions
[ressu@regret:/tmp]
% mkdir demo
[ressu@regret:/tmp]
% cd demo
[ressu@regret:/tmp/demo]
% ls
[ressu@regret:/tmp/demo]
% rvm --create --rvmrc use 1.9.3@demo
Using /home/ressu/.rvm/gems/ruby-1.9.3-p327 with gemset demo
[ressu@regret:/tmp/demo]
@ressu
ressu / gist:2854927
Created June 1, 2012 20:24
Bug example for money-rails
f
{master¹//codetree} $ rails c
/home/ressu/.rvm/gems/ruby-1.9.2-p180/gems/mustang-0.2.2/lib/mustang/v8.so: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
[1] 16936 abort rails c
rails c 1,82s user 0,54s system 97% cpu 2,419 total
class Deliveries < ActiveRecord::Base
alias :delivery_contact_orig, :delivery_contact
def delivery_contact
if self.delivery_contact_orig.nil?
self.owner_contact
else
self.delivery_contact_orig
end
end
end