Skip to content

Instantly share code, notes, and snippets.

Avatar

Pedro Pimenta pedrogpimenta

View GitHub Profile
@pedrogpimenta
pedrogpimenta / grid.sass
Created Mar 3, 2017
Simple SASS grid/columns using mixins
View grid.sass
=row()
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
.#{$item}
position: absolute
top: 0
left: 0
@pedrogpimenta
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
pedrogpimenta / gist:31b06f4d0aa592393fd5
Created May 21, 2014
activate AirDrop through Ethernet
View gist:31b06f4d0aa592393fd5
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
@pedrogpimenta
pedrogpimenta / livereload
Created Apr 13, 2014
Livereload JS manual include
View livereload
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
@pedrogpimenta
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,
"folder_exclude_patterns":
[
".sass-cache",
"node_modules"
You can’t perform that action at this time.