Skip to content

Instantly share code, notes, and snippets.

View vedranjaic's full-sized avatar

Vedran Jaic vedranjaic

  • NEOS
  • Zagreb, Croatia
View GitHub Profile
@vedranjaic
vedranjaic / sftp-config.json
Last active August 29, 2015 14:12
SFTP config file
{
// XYZ FTP
"type": "ftp",
// Settings
"connect_timeout": 5,
"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": false,
"sync_skip_deletes": false,
@vedranjaic
vedranjaic / bootstrap-nav-hover.js
Created December 30, 2014 22:32
Bootstrap nav dropdown on hover
$(document).ready(function(){
$(".dropdown").hover(
function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop( true, true ).slideDown("fast");
$(this).toggleClass('open');
},
function() {
$('.dropdown-menu', this).not('.in .dropdown-menu').stop( true, true ).slideUp("fast");
$(this).toggleClass('open');
}
@vedranjaic
vedranjaic / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@vedranjaic
vedranjaic / css-multiline-ellipsis.scss
Created March 1, 2015 05:49
CSS multiline ellipsis
$font-size: 16px;
$line-height: 1.4;
$lines-to-show: 3;
h2 {
display: block; /* Fallback for non-webkit */
display: -webkit-box;
max-width: 400px;
height: $font-size*$line-height*$lines-to-show; /* Fallback for non-webkit */
margin: 0 auto;
@vedranjaic
vedranjaic / input_fields.txt
Created August 12, 2015 10:02
A checklist for designing mobile input fields
Should it be there at all
1. Is this field absolutely necessary?
Description
2. Is the label above it? (Not inside, not below)
3. Is the field marked as required (*) or optional?
4. Have you removed any placeholder from inside the field?
Visibility
5. Is the field big enough so that most possible field values are visible?