Skip to content

Instantly share code, notes, and snippets.

View johannesnagl's full-sized avatar
👨‍👩‍👧
#proudDadOfAGirl

Johannes Nagl johannesnagl

👨‍👩‍👧
#proudDadOfAGirl
View GitHub Profile
@vitobotta
vitobotta / Importing posts from Wordpress into Jekyll.rb
Created March 26, 2011 22:50
The script I used to import posts from my Wordpress blog into a new Jekyll one.
%w(rubygems sequel fileutils yaml active_support/inflector).each{|g| require g}
require File.join(File.dirname(__FILE__), "downmark_it")
module WordPress
def self.import(database, user, password, table_prefix = "wp", host = 'localhost')
db = Sequel.mysql(database, :user => user, :password => password, :host => host, :encoding => 'utf8')
%w(_posts _drafts images/posts/featured).each{|folder| FileUtils.mkdir_p folder}
anonymous
anonymous / php-vie.js
Created February 7, 2012 11:35
PHP Viennese
// if php were viennese
€wert_ned_fix_naum
<?php
suder 'Servas Wean!';
?>
schnua_ersetzn()
@jedschneider
jedschneider / gh-pages-tips.md
Created June 7, 2012 17:59
github pages tips for jekyll wiki

Working With Github Pages

The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.

Gitignore

Add _site to .gitignore. The generated site should not be uploaded to Github since its gets generated by github.

Working With Code Partials

@Suven
Suven / BootstrapFormHelper.php
Last active July 3, 2018 00:12
Bootstrap 3 FormHelper for CakePHP 2.x
<?php
App::uses('FormHelper', 'View/Helper');
/**
* BootstrapFormHelper.
*
* Applies styling-rules for Bootstrap 3
*
* To use it, just save this file in /app/View/Helper/BootstrapFormHelper.php
* and add the following code to your AppController:
@pa7
pa7 / gist:8821494
Created February 5, 2014 11:18
Kod.io Linz
(function(e){ return String.fromCharCode.apply(String, e.reverse()); })([9829, 32, 9829, 32, 9829, 32, 111, 115, 108, 97, 32, 33, 98, 101, 119, 32, 110, 114, 101, 100, 111, 109, 32, 101, 104, 116, 32, 116, 117, 111, 98, 97, 32, 115, 107, 108, 97, 116, 32, 101, 109, 111, 115, 101, 119, 97, 32, 101, 104, 116, 32, 108, 108, 97, 32, 102, 111, 32, 101, 115, 117, 97, 99, 101, 98, 32, 111, 105, 46, 100, 111, 107, 32, 111, 116, 32, 111, 103, 32, 111, 116, 32, 101, 118, 111, 108, 32, 100, 39, 73]);
@okonet
okonet / lightning_talk_proposal.md
Last active April 10, 2018 10:09
Make linting great again! -- ReactiveConf 2017 ⚡️talk proposal

Please 🌟 this gist to vote for this proposal!

Make linting great again!

tabs vs spaces

No other topic in software development probably has so much controversy as linting.

With a wrong workflow linting can be really a pain and will slow you and your team down. With a proper setup, though, it can save you hours of manual work reformatting the code and reducing the code-review overhead.