Skip to content

Instantly share code, notes, and snippets.

Avatar
✍️
Writing

Matthias Günther wikimatze

✍️
Writing
View GitHub Profile
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
View sequel_wrapper.rb
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
View rescue.rb
require 'minitest'
require "minitest/autorun"
require "minitest/focus"
require 'rake'
require 'mocha/mini_test'
class Test
def up
version = ENV["MIGRATION_VERSION"]
View puts.rb
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"
View newlines.vim
fu! InsertNewlines()
normal! Go
normal! Go
endf
no <silent> <F3> $:call InsertNewlines() <CR>
View first_rake_test.rb
require 'minitest'
require "minitest/autorun"
require "minitest/focus"
require 'rake'
require 'sequel'
require 'mocha/mini_test'
require 'padrino-core'
require 'pry'
View rake_sequel.rb
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
View test.md

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