npm list -g --depth=0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adds the vendor prefixes for calc. | |
// | |
// Usage: | |
// width: calc('30% - 10px'); | |
// If variables are needed they need to be specified this way. | |
// width: calc('40% \- %s' % (10px)); | |
calc() { | |
// vendors to be used by this function | |
calc-vendors = webkit moz; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
var touch = {}, touchTimeout; | |
function parentIfText(node){ | |
return 'tagName' in node ? node : node.parentNode; | |
} | |
function swipeDirection(x1, x2, y1, y2){ | |
var xDelta = Math.abs(x1 - x2), yDelta = Math.abs(y1 - y2); | |
if (xDelta >= yDelta) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p – balanced for paragraphs or body copy | |
t – balanced for headlines or titles | |
Arial, “Helvetica Neue”, Helvetica, sans-serif - p, t | |
Baskerville, “Times New Roman”, Times, serif - p Baskerville, Times, “Times New Roman”, serif - t | |
Cambria, Georgia, Times, “Times New Roman”, serif - p, t | |
“Century Gothic”, “Apple Gothic”, sans-serif - p, t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Font Staks | |
*http://sixrevisions.com/css/css-typography-01/ | |
* | |
* Wide sans serif: Verdana, Geneva | |
Narrow sans serif: Tahoma, Arial, Helvetica | |
Wide serif: Georgia, Utopia | |
Narrow serif: Times, Times New Roman | |
Monospace: Courier, Courier New, Lucida Console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lib : http://www.idangero.us/sliders/swiper/ | |
ver:2.4.3 | |
<script> | |
// swiper Slider - Thumb Carousel - author: kien.hnaptech@gmail.com ========================================================== | |
$(document).ready(function(){ | |
if($(".swiper-slider-wrapper").length > 0){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jQuery import | |
global.jQuery = require('jquery'); | |
var $ = global.jQuery; | |
window.$ = $; | |
// Bootstrap 4 depends on Popper.js | |
// Popper.js import | |
//import Popper from 'popper.js'; | |
//window.Popper = Popper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// | |
// Copyright (C) 2008-2016 Quantron Systems LLC. | |
// All Rights Reserved. | |
// | |
// This file is part of the Pakmil project. | |
// For conditions of distribution and use, | |
// please contact sales@quantron-systems.com | |
// | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://martinwolf.org/2013/01/29/pure-css-multiline-text-with-ellipsis/ */ | |
$font-size: 26px; | |
$line-height: 1.4; | |
$lines-to-show: 3; | |
h2 { | |
display: block; /* Fallback for non-webkit */ | |
display: -webkit-box; | |
max-width: 400px; |
OlderNewer