Skip to content

Instantly share code, notes, and snippets.

@bicherele
bicherele / jekyll-localized-date
Created August 4, 2016 07:01 — forked from patrickwelker/jekyll-localized-date
Localized date via replace in Jekyll (Example: German)
<time datetime="{{ post.date | %Y-%m-%d %H:%M+01:00 }}">
{{ post.date | date: "%d. %B %Y" | replace:"January","Januar" | replace:"Februar","February" | replace:"March","März" | replace:"May","Mai" | replace:"June","Juni" | replace:"July","Juli" | replace:"December","Dezember" }}
</time>
@bicherele
bicherele / cheatsheet-markdown.md
Created March 1, 2016 10:07 — forked from james2doyle/cheatsheet-markdown.md
a markdown cheatsheet showing all the elements and syntax. Stolen from the Mou.app for OSX http://mouapp.com/

Mou

Mou icon

Overview

Mou, the missing Markdown editor for web developers.

Syntax

var gulp = require('gulp');
var zip = require('gulp-zip');
var rename = require("gulp-rename");
var shell = require('gulp-shell')
gulp.task('nodewk', function() {
gulp.src('app/**')
.pipe(zip('app.zip'))
.pipe(rename("app.wk"))
/* Inside grunt.js file (don't forget to add "growl" as a project dependency) */
grunt.utils.hooker.hook(grunt.fail, "warn", function(opt) {
require('growl')(opt.name, {
title: opt.message,
image: 'Console'
});
});
// Sample grunt-jekyll grunt.js file
// https://github.com/dannygarcia/grunt-jekyll
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jekyll: {
# Example of .jrubyrc
# Set compilation mode. JIT = at runtime; FORCE = before execution. (JIT, FORCE, OFF, OFFIR)
# compile.mode = FORCE
# Dump to console all bytecode generated at runtime.
# compile.dump = true
# Enable verbose JIT logging (reports failed compilation)
# jit.logging.verbose = true
@bicherele
bicherele / default.rb
Created November 26, 2012 16:06 — forked from wilmoore/default.rb
DIY Private Cloud w/ VirtualBox and Chef
# Cookbook Name:: mongodb
# Recipe:: default
case node['platform']
when "ubuntu"
execute "apt-get update" do
action :nothing
end
execute "add gpg key" do
@bicherele
bicherele / backbone.twitter.js
Created November 14, 2012 16:49 — forked from tracend/backbone.api.twitter.js
Backbone.js helper for Twitter requests
if(typeof APP == "undefined"){
var APP = {
Models: {},
Collections: {},
Views: {}
};
}
APP.Models.Twitter = {};
APP.Models.Twitter.Tweet = Backbone.Model.extend({
@bicherele
bicherele / dabblet.css
Created October 25, 2012 08:11
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@bicherele
bicherele / _colors.scss
Created August 30, 2012 11:58 — forked from zmaril/_colors.scss
Easy customization of octopress blogs
// If you need a handy color picker try http://hslpicker.com
// Or look at octopress/sass/base/solarized.scss for inspiration. The colors in there are excellent.
// The following are ordered in terms of vague importance.
//Pick your favorite color. If you picked a thoughtful blue, try again.
$main-color: #6c71c4;
//This controls the background.
$page-bg: lighten($main-color,20);