Skip to content

Instantly share code, notes, and snippets.

@bbongagus
bbongagus / snippet.md
Created April 4, 2017 20:48 — forked from harthur/snippet.md
console.log() key binding for Sublime Text

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file:

[
    { "keys": ["super+shift+l"],
      "command": "insert_snippet",
      "args": {
        "contents": "console.log(${1:}$SELECTION);${0}"
      }
 }
@bbongagus
bbongagus / snippet.md
Created April 4, 2017 20:48 — forked from harthur/snippet.md
console.log() key binding for Sublime Text

Go to Sublime Text 2 > Preferences > Key Bindings - User and add this JSON to the file:

[
    { "keys": ["super+shift+l"],
      "command": "insert_snippet",
      "args": {
        "contents": "console.log(${1:}$SELECTION);${0}"
      }
 }
@bbongagus
bbongagus / app.sass
Created November 28, 2016 17:05
scrollbar custom
\::-webkit-scrollbar
width: 3px
height: 3px
\::-webkit-scrollbar-button
background-color: #666
\::-webkit-scrollbar-track
background-color: #999
@bbongagus
bbongagus / app.sass
Created November 28, 2016 01:46
sass - classes with delimiter
%xs-grid-styles
width: 100% !important
display: block
position: relative
%xs-margin-left-zero
margin-left: 0
@for $i from 1 through 12
.row > .col-#{$i}
@extend %xs-grid-styles
.row > .offset-#{$i}
@bbongagus
bbongagus / app.js
Created November 28, 2016 01:45
change css styles
var tabHeight = $(".nav .main-menu__elem").outerHeight();
$(".vertical .nav__slider-line").css({height: tabHeight + "px", width: "4px !important"});
@bbongagus
bbongagus / app.js
Created November 28, 2016 01:44
hide element, when click out of range
function closeOnClickOver(modalid, parentid){
$(parentid).on('click', function(e){
if (e.target == $(modalid).prop("parentNode")){
$(parentid).addClass("g-visuallyhidden");
setTimeout(function(){
$(parentid).addClass("g-hidden");
}, 200);
}
});