Skip to content

Instantly share code, notes, and snippets.

View flobraeuer's full-sized avatar
🚀
Turning ideas into solutions. https://florianbraeuer.me

Florian Bräuer flobraeuer

🚀
Turning ideas into solutions. https://florianbraeuer.me
  • Gavel, Firebird Ventures, Waytation
  • Berlin
  • 23:59 (UTC +02:00)
View GitHub Profile
@nachiket-p
nachiket-p / meteor_servercall.html
Created June 21, 2012 07:41
Meteor: Calling server method from client
<head>
<title>meteor_servercall</title>
</head>
<body>
{{> simple}}
{{> passData}}
</body>
<template name="simple">
@fgo
fgo / Deb says hi
Created February 24, 2012 05:13
Debian Server Setup (Rails 3.2.x, Ruby 1.9.3-p0, Apache-Passenger)
OS: Debian 6.0
Software Versions: Git 1.7.9.1, Ruby 1.9.3-p125, Rails 3.2.1, RubyGems 1.8.17, Git Apache2,
Debian updates
-
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
sudo apt-get install python-software-properties
sudo apt-get install libssl-dev libreadline-dev
@hmans
hmans / Preferences.sublime-settings
Created February 22, 2012 17:20
My Preferences.sublime-settings
{
// visuals
"theme": "Soda Light.sublime-theme",
"color_scheme": "Packages/User/Espresso Soda.tmTheme",
"font_face": "Menlo",
"font_size": 13,
"line_padding_bottom": 1,
"line_padding_top": 1,
"highlight_line": true,
"rulers": [80],
@mattbrictson
mattbrictson / Gemfile
Created January 26, 2012 23:02
Install Compass in Rails 3.1/3.2
group :assets do
gem 'compass-rails','~> 1.0.0.rc.2'
gem 'compass-colors'
gem 'sassy-buttons'
gem 'sass-rails', '~> 3.2.3'
# non-compass gems omitted for brevity
end
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@bloom
bloom / macjournal_import.rb
Created May 18, 2011 00:27
Import to Day One Journal app from MacJournal Export
require "open3"
def readfile(file)
f = File.open(file)
lines = f.readlines("\n\n\n\n")
lines.each do |line|
fields = line.scan(/\s+Date:\s([^\n]+)$\s+Topic:\s([^\n]+)\n(.*)/m)
date = fields[0][0].strip
@desandro
desandro / jquery.imagesloaded.js
Created January 26, 2011 18:01 — forked from paulirish/README.md
$.fn.imagesLoaded jQuery plugin
// $('img.photo',this).imagesLoaded(myFunction)
// execute a callback when all images have loaded.
// needed because .load() doesn't work on cached images
// Modified with a two-pass approach to changing image
// src. First, the proxy imagedata is set, which leads
// to the first callback being triggered, which resets
// imagedata to the original src, which fires the final,
// user defined callback.
@quandyfactory
quandyfactory / Googlebeatbox.py
Created November 30, 2010 12:30
Google Beatbox UI.
#!/usr/bin/env python
__title__ = 'Google Beatbox GUI'
__version__ = 0.1
"""
This program provides a simple GUI interface to create Google Beatbox beats.
Original idea here: http://news.ycombinator.com/item?id=1952356
Drum Sounds defined: http://news.ycombinator.com/item?id=1952531
"""
var express = require('express'),
request = require('request'),
BufferList = require('bufferlist').BufferList,
sys = require('sys');
var app = express.createServer(
express.logger(),
express.bodyDecoder()
);
@mxcl
mxcl / install_homebrew.markdown
Created March 6, 2010 15:14
Installs Homebrew to /usr/local so you don't need sudo to `brew install`