Skip to content

Instantly share code, notes, and snippets.

View electricg's full-sized avatar

Giulia Alfonsi electricg

View GitHub Profile
@electricg
electricg / dynamic-banner.html
Created August 13, 2012 12:49
Move the banner in the middle of a grid after a specified row
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Dynamic Banner</title>
<style>
/* for presentation only */
body {
font-family: Arial;
}
@electricg
electricg / git.md
Created August 15, 2012 11:01
Notes on Git

Installing Git

git config --global core.autocrlf false http://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf "If core.autocrlf is set to false, no line-ending conversion is ever performed, so text files are checked in as-is. This usually works ok, as long as all your developers are either on Linux or all on Windows."

Run GitForce.exe from msysgit console

@electricg
electricg / readme.md
Created August 15, 2012 18:57
Install SASS and Compass on Mac OSX

gem install sass

If you installed as your "normal" user account (didn't sudo), you most likely missed the warning message like this one:

WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /Users/jclark/.gem/ruby/1.8/bin in your PATH, gem executables will not run. Try this:

@electricg
electricg / Compass.sublime-build
Last active October 10, 2015 19:48
SublimeText2 - my User settings
{
"cmd": ["cd '$project_path'; compass watch"],
"working_dir": "$packages/Compass",
"selector": "source.sass",
"shell": "true",
"windows":
{
"cmd": ["compasswatch.bat", "$project_path"]
},
"osx":
@electricg
electricg / readme.md
Created September 19, 2012 21:18
Sublime Text 2
@electricg
electricg / mq.css
Created October 4, 2012 09:24 — forked from chriscoyier/mq.css
Media Queries for high resolution displays
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
@electricg
electricg / _mixin.scss
Created October 4, 2012 14:08
My SCSS mixin
@mixin box-sizing ($box) {
-webkit-box-sizing: $box;
-moz-box-sizing: $box;
box-sizing: $box;
}
@mixin border-radius ($val) {
-webkit-border-radius: $val;
-moz-border-radius: $val;
border-radius: $val;
@electricg
electricg / install-node.sh
Last active October 12, 2015 09:57
Installations
#clone for the first time
git clone git://github.com/joyent/node.git
cd node
#update
cd node
git remote update
#switch to the branch with the most stable version - check on the website
#use 'git tag' to see the available versions
@electricg
electricg / readme.md
Created November 12, 2012 11:12
A good use-case of %extend
@electricg
electricg / blog.md
Created November 18, 2012 09:43
Why I prefer rem over em and inline-block over float