Skip to content

Instantly share code, notes, and snippets.


Pedro Pimenta pedrogpimenta

View GitHub Profile
pedrogpimenta / grid.sass
Created Mar 3, 2017
Simple SASS grid/columns using mixins
View grid.sass
font-size: 0
=col($col, $sum, $gap: 1em, $align: top, $first: false, $last: false)
width: percentage($col/$sum)
vertical-align: $align
font-size: $base-font-size
display: inline-block
@if $first == false
View mixins.sass
=u-proportional-container($proportion: 75%, $boolean: true, $item: item)
position: relative
padding-bottom: $proportion
height: 0
overflow: hidden
@if $boolean
position: absolute
top: 0
left: 0
pedrogpimenta / 0_reuse_code.js
Created Oct 7, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
pedrogpimenta / gist:31b06f4d0aa592393fd5
Created May 21, 2014
activate AirDrop through Ethernet
View gist:31b06f4d0aa592393fd5
defaults write BrowseAllInterfaces -bool true
pedrogpimenta / livereload
Created Apr 13, 2014
Livereload JS manual include
View livereload
<script>document.write('<script src="http://' + ( || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
pedrogpimenta / convert sass to scss
Created Apr 11, 2014
Convert SASS to SCSS and delete .sass files (applies to all files in current folder)
View convert sass to scss
sass-convert -R ./ -F sass -T scss && rm *.sass
View Preferences.sublime-settings
"always_show_minimap_viewport": true,
"caret_style": "phase",
"color_scheme": "Packages/User/base16-ocean.dark (SL).tmTheme",
"draw_minimap_border": true,
"fade_fold_buttons": false,
You can’t perform that action at this time.