Skip to content

Instantly share code, notes, and snippets.

View wikimatze's full-sized avatar
💭
Writing

Matthias Günther wikimatze

💭
Writing
View GitHub Profile
require 'minitest'
require "minitest/autorun"
require "minitest/focus"
require 'rake'
require 'mocha/mini_test'
require 'minitest/pride'
module Padrino
module Generators
# Wrap the sequel rake task
require 'minitest'
require "minitest/autorun"
require "minitest/focus"
require 'rake'
require 'mocha/mini_test'
class Test
def up
version = ENV["MIGRATION_VERSION"]
puts "=> Creating database '#{database}'"
if config[:adapter] == 'sqlite3'
::Sequel.sqlite(database)
else
require 'padrino-gen/padrino-tasks/sql-helpers'
Padrino::Generators::SqlHelpers.create_db(config[:adapter], user, password, host, database, charset, collation)
end
puts "<= sq:create executed"
fu! InsertNewlines()
normal! Go
normal! Go
endf
no <silent> <F3> $:call InsertNewlines() <CR>
require 'minitest'
require "minitest/autorun"
require "minitest/focus"
require 'rake'
require 'sequel'
require 'mocha/mini_test'
require 'padrino-core'
require 'pry'
require 'rspec'
require 'rake'
require 'sequel'
namespace :sql do
task :migrate do
Sequel::extension :migration
Sequel::Migrator.run Sequel::Model.db, 'db/migrate', :target => 0
Sequel::Migrator.run Sequel::Model.db, 'db/migrate'
end

Sweetie is a plugin for to get statistics for jekyll and middleman projects. The statistics includes the unique number of all links, images, pages, and the last build time of the given project. You can specify the location the generated files (normally _site for jekyll and build for middleman apps) and of the config file where the changes will be written.

It can also grab the last changes of your bitbucket repositories. You can then use the information on various places in your project

# About your project
Your project name: padrino
Your project blurb:
Links to places we can find out more about your project:
- http://padrinorb.com/
- https://github.com/padrino
# About you and your staff
Your nick: wikimatze
@wikimatze
wikimatze / why_padrino.md
Last active March 27, 2017 16:02
Why Padrino

Before you dig into a new framework you ask yourself: "Why should I invest time in learning a new framework?". I will not answer this with "it depends" (of course it depends on your situation) but rather provide you with all the information so that you can decide.

First let's have a brief look at Rack, Sinatra, Padrino, Rails.

What is Rack?