Skip to content

Instantly share code, notes, and snippets.

@james2doyle
james2doyle / cheatsheet-markdown.md
Last active May 22, 2024 11:09
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

@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({
@tracend
tracend / backbone.api.twitter.js
Created October 17, 2012 09:39 — forked from ryndel/backbone.twitter.js
[DEPRECATED] Backbone.js helper for Twitter requests Project moved: http://github.com/backbone-api/twitter
if(typeof APP == "undefined"){
var APP = {
Models: {},
Collections: {},
Views: {}
};
}
APP.Models.Twitter = {};
APP.Models.Twitter.Tweet = Backbone.Model.extend({
@dannygarcia
dannygarcia / grunt.js
Created September 20, 2012 02:39
Sample grunt-jekyll grunt.js
// Sample grunt-jekyll grunt.js file
// https://github.com/dannygarcia/grunt-jekyll
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jekyll: {
@patrickwelker
patrickwelker / jekyll-localized-date
Created September 18, 2012 13:09
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 / _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);
@smileyj68
smileyj68 / f3-case-flite-retina.scss
Created June 25, 2012 19:07
Foundation 3 Case Study: Flite Retina
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
#topnav {
#logo {
a {
background-image: url(/img/flitelogo@2x.png);
background-size: 156px 22px;
}
}
}
var util = require('util'),
exec = require('child_process').exec,
rest = require('restler');
var alertMe = function(){
exec('say -v Cellos Bobby, come get your nodejitsu beta');
};
var checkSite = function(){
util.puts('checking if I can get you into the beta yet.');
@FGRibreau
FGRibreau / grunt_growl.js
Created June 6, 2012 09:10
How to get Growl notifications from Grunt.js
/* 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'
});
});