Skip to content

Instantly share code, notes, and snippets.

View wikimatze's full-sized avatar
💭
Writing

Matthias Günther wikimatze

💭
Writing
View GitHub Profile
@wikimatze
wikimatze / Guardfile
Created May 9, 2013 04:55
Guardfile for Padrino
guard :rspec do
# Padrino example
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^app/controllers/(.+)\.rb$}) { |m| "spec/app/controllers/#{m[1]}_controller_spec.rb" }
watch(%r{^models/(.+)\.rb$}) { |m| "spec/models/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
@wikimatze
wikimatze / gist:5570013
Created May 13, 2013 17:39
Trying to run the test of Padrino-Core
helex@mg: ~/Dropbox/git-repositories/padrino-framework (master ✔) bundle
Resolving dependencies...
Using rake (10.0.4)
Using i18n (0.6.4)
Using multi_json (1.7.3)
Using activesupport (3.2.12)
Using addressable (2.2.8)
Using bcrypt-ruby (3.0.1)
Using bson (1.8.5)
Using bson_ext (1.8.5)
@wikimatze
wikimatze / gist:5648302
Last active December 17, 2015 17:49
Converting text

I want to transform the following text

...
Start with generating a new project with the canonical `padrino` command. In contrast to our "Hello World!" application
(app) before, we are using new options:


{: lang="bash" }
 $ mkdir ~/padrino-projects
@wikimatze
wikimatze / gist:5693804
Created June 2, 2013 15:14
Example of an interactivr shell script
#!/bin/bash
checkParam() {
for PARAM in $*; do
test "${PARAM}" == "-i" && INTERACTIVE=true
test "${PARAM}" == "--interactive" && INTERACTIVE=true
done
}
@wikimatze
wikimatze / gist:6332795
Last active December 21, 2015 16:19
Bring padrino to the next level

I recently had the pleasure to meet Darío at eurucamp 2013 in wonderful Berlin to discuss issues with the further development of Padrino. Here are the following points we need to think over.

Handling Mailing List

As recently posted on our mailing list with the sql problem, we have problems with some posted activities which are not shown up on the page. Apparently, we I can't find the post anymore which mentioned this issue.

Questions needs to be answered:

  • Who is responsible to admin the presence (checking options, help new members with registration)
  • Should all main contributors have access to the settings?
@wikimatze
wikimatze / gist:7976591
Last active December 31, 2015 10:59
Book review about the book "The Dream Nightmare" by Portia Tung

I won this book in lucky dip at Agile Tour London 2013 from Portia and it was the right book in the right situation. Remember a very desperate team, who was not performing as a team and who was doing wrong estimations, and had a late schedule.

Portias book explained the nightmare, the team went through in a very entertaining and playfull way. In the book, as an Agile Coach, it is up to you which decision you make to rescue a situation which I was facing at. Depending on which actions you take, the consequences will vary and you have to justify on the right decision.

Even if you are doing SCRUM for a couple of years, you will learn something new in the book or detect a common situation you had and see which different options you have and you may use them to act next time in a different way. It is definitely a book you can read perfectly on your way to work. And it will definitely make you smile because you will encounter similar situations at work, but now, you can react in a more appropriate way.

date author email categories tags title
2016-01-13
Matthias Guenther
matthias@wikimatze.de
ruby update
padrino sinatra ruby website
History of Padrinos website redesign

History of Padrinos website redesign

@wikimatze
wikimatze / recap.md
Last active February 21, 2016 16:51
Recap of vimberlin meetup February 2016 (http://vimberlin.de/february-2016-meetup)
  • wikimatze has adapted "mucks" in his fork and make it possible to run several tmux session at ones without using the sockets option
  • lervag/vimtex: A vim plugin that provides support for writing LaTeX. Nice toggling, nice support for various PDF viewer and continous building
  • clever-f.vim: Extended f, F, t, and T mappings - results will be highlighted and press the buttons again to repeat the search clever-f plugin neoyank
  • Shougo/neoyank.vim: add documentation for the action-append option
  • teamviewer.com/: is great when Mac machines forget their MiniDisplay-Port so that they can display their screen on the machine, which is connected to the beamer
hello_world_get:
request:
path: /hello/world
methods: ['GET']
headers:
Content-Type: text/html
Cookie: userId: 4080837
response:
content: |
Hello4080837 {{ request.query.get('name') }}!
hello_world_get:
request:
path: /hello/world
methods: ['GET']
headers:
Content-Type: text/html
Cookie: @string@.isEmpty()
response:
content: |
Hello4080837 {{ request.query.get('name') }}!