Skip to content

Instantly share code, notes, and snippets.

View hmans's full-sized avatar
🚀
Let's go!

Hendrik Mans hmans

🚀
Let's go!
View GitHub Profile
@mixin when-sized-medium { @include when-narrower-than(1000px) { @content }}
@mixin when-sized-small { @include when-narrower-than(700px) { @content }}
.container {
width: 1000px;
margin: 0 auto;
padding-bottom: 40px;
@include when-sized-medium { width: 700px; }
@include when-sized-small {
@hmans
hmans / gist:2044729
Created March 15, 2012 15:13
Am I the only one using this pattern?
*:first-child { margin-top: 0 !important }
*:last-child { margin-bottom: 0 !important }
@hmans
hmans / blog.scss
Created February 25, 2012 20:52
Customizing your SchnitzelPress blog
@import url(http://fonts.googleapis.com/css?family=Inder|PT+Serif:400,700,400italic,700italic);
// Use custom fonts, yeah
$font-default: 16px "PT Serif";
$font-header: 15px "Inder";
// How about a different color scheme?
$color-background: #333;
$color-text: #ccc;
$color-extra: #f93;
@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],
canvas = null
context = null
x = 0
y = 250
r = 0.0
img = new Image()
img.src = '/images/serve-logo.png'
$ ->
@hmans
hmans / gist:1605208
Created January 13, 2012 09:05
"New matches for your profiles and projects on projektwerk IT"
Profile "Ruby on Rails seit 2005"
New matches: 6
- "#13003 Solution Designer (m/w)", Dortmund, Deutschland
Matching skills: php, html, sql, css
- "PHP Fehlerbehebung! function.session-start"
Matching skills: php, html
- "#13058 Portal Administrator (m/w) Java/Linux/MySQL"
$listenerOptions = new Zend\Module\Listener\ListenerOptions($appConfig['module_listener_options']);
$defaultListeners = new Zend\Module\Listener\DefaultListenerAggregate($listenerOptions);
$defaultListeners->getConfigListener()->addConfigGlobPath('config/autoload/*.config.php');
@hmans
hmans / gist:1497767
Created December 19, 2011 15:58
New rbfu invocation style
# So here's the new rbfu invocation style I'm tinkering with.
# If you want to play around with it, you can get it from the
# 'rbfu-exec' branch in rbfu:
#
# https://github.com/hmans/rbfu/tree/rbfu-exec
#
# The overall syntax is:
#
# rbfu [@<version>] <command>
#
@hmans
hmans / gist:1378862
Created November 19, 2011 14:05
FlexImage Polaroid extension
class Fleximage::Operator::Polaroid < Fleximage::Operator::Base
def operate(angle_range = 10, border_width = 10)
@image.border!(border_width, border_width, "#f0f0ff")
# Bend the image
@image.background_color = "none"
amplitude = @image.columns * 0.01 # vary according to taste
wavelength = @image.rows * 2
@hmans
hmans / .gitconfig
Created October 10, 2011 09:31
My .gitconfig
# User information. Replace with your own data, obviously.
#
[user]
name = Hendrik Mans
email = [email protected]
# Automatically track branches with the same name
#
[branch]
autosetupmerge = true