Skip to content

Instantly share code, notes, and snippets.

Avatar
✍️
Writing

Matthias Günther wikimatze

✍️
Writing
View GitHub Profile
@wikimatze
wikimatze / show.haml
Last active Oct 14, 2018
padrino blog tutorial show.haml
View show.haml
%section.articles
.column.is-8.is-offset-2
.card.article
.card-content
.media
.media-content.has-text-centered
%h3.title.article-title= @post.title
.tags.has-addons.level-item
%span.tag.is-rounded= time_ago_in_words(@post.created_at || Time.now) + ' ago'
.content.article-body
View my_template.rb
project :test => :rspec, :orm => :activerecord
generate 'model', 'account username:string password:string'
generate 'model', 'post title:string body:text'
generate 'controller', 'posts get:index get:new post:new'
generate 'controller', 'users get:index'
generate 'migration', 'AddEmailToAccount email:string'
require_dependencies 'nokogiri'
git :init
git :add, "."
@wikimatze
wikimatze / blog_tutorial_admin_creation.sh
Last active May 10, 2018
Example output for the blog-tutorial of Padrino for admin creation (http://padrinorb.com/guides/getting-started/blog-tutorial/)
View blog_tutorial_admin_creation.sh
$ padrino g admin
force .components
create admin
exist admin
create admin/controllers/base.rb
create admin/controllers/sessions.rb
create public/admin
create public/admin/images/favicon.ico
create public/admin/images/font/FontAwesome.otf
create public/admin/images/font/fontawesome-webfont.eot
View blog-tutorial.sh
$ padrino g project blog-update -t rspec -e haml -c scss -s jquery -d sequel -b
create
create .gitignore
create config.ru
create config/apps.rb
create config/boot.rb
create public/favicon.ico
create public/images
create public/javascripts
create public/stylesheets
@wikimatze
wikimatze / ctags.md
Last active Dec 9, 2017
Browsing Padrino's Code Base With Ctags in Vim
View ctags.md

Working effectively with ctags has always been a topic I missed for a long time because I was too lazy to invest time to learn about the it.

I was working on on my application and was constantly consulting Padrino's API doc in the browser. It would have been more effective if I can do the searching directly the Padrino's code on GitHub. Benefit I don't have to leave the terminal and can focus on my task.

What is ctags

ctags is a tool which make it easy for you to shift through in no time.

@wikimatze
wikimatze / vimb_error.txt
Created Nov 11, 2017
Error when starting vimb 2.12
View vimb_error.txt
Here is the stacktrace:
```
NOT SANDBOXED
[fresh] [error] tables_open_display, glXQueryVersion returned False
[fresh] [error] tables_open_display, glXQueryVersion returned False
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
View recap vimfest.md
@wikimatze
wikimatze / vimfest2017.txt
Created Sep 21, 2017
The agenda for Vimfest 2017
View vimfest2017.txt
= 2017-09-22 Fri =
(Getting to know each other)
17-20h Hacking
20-23h Dinner + Drinks
= 2017-09-23 Sat =
10:00-10:10 Boarding
10:20-10:50 Daniel Siepmann: Writing NeoVim Plugins using Python Plugin