This file contains hidden or 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
license: mit |
This file contains hidden or 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
license: mit |
This file contains hidden or 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
https://osvaldas.info/examples/detecting-css-animation-transition-end-with-javascript/oncssanimationend.js |
This file contains hidden or 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
var isUCBrowser = navigator.userAgent.indexOf('UCBrowser') > 0; | |
var isIE_Browser = isIE_Browser_fn(); | |
var isWindowsPhone = isWindowsPhone_fn(); | |
if_SwiperSupported(); | |
function isIE_Browser_fn() { | |
var ua = window.navigator.userAgent; | |
var IEcheck_Index = ua.indexOf("MSIE"); | |
if (IEcheck_Index > 0) { | |
console.log('running IE browser < 11'); |
This file contains hidden or 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(){for(var a,b=function(){},c=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeline","timelineEnd","timeStamp","trace","warn"],d=c.length,e=window.console=window.console||{};d--;)a=c[d],e[a]||(e[a]=b)}(); |
This file contains hidden or 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
/* thanks https://davidwalsh.name/javascript-debounce-function */ | |
// Returns a function, that, as long as it continues to be invoked, will not | |
// be triggered. The function will be called after it stops being called for | |
// N milliseconds. If `immediate` is passed, trigger the function on the | |
// leading edge, instead of the trailing. | |
function debounce(func, wait, immediate) { | |
var timeout; | |
return function() { | |
var context = this, args = arguments; |
This file contains hidden or 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
// +++++ BrowserDetection +++++ // | |
//UC Browser | |
var isUCBrowserX99 = navigator.userAgent.indexOf('UCBrowser') > 0; | |
var userAgentX99 = navigator.userAgent; | |
//Internet Explorer & Windows Phone | |
var isIE_mobileBrowser = navigator.userAgent.indexOf('Windows Phone 8.1') > 0; | |
var isIE_Browser = isIE_Browser_fn(); | |
function isIE_Browser_fn() { | |
var sAgent = window.navigator.userAgent; |
This file contains hidden or 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
Install from https://www.mongodb.com/download-center#community | |
Follow Instructions @https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/ | |
///* * * FOR USE WITH Node.js * * */// | |
refer https://github.com/mongodb/node-mongodb-native | |
/* | |
Set up the MongoDB environment: | |
MongoDB requires a data directory to store all data. | |
MongoDB’s default data directory path is \data\db. |
This file contains hidden or 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
//Filter Array and make Unique | |
var arr = [1,2,3,4,1]; | |
function unique (arr){ | |
return arr.filter(function(item, index, arr){ | |
return arr.indexOf(item) === index; | |
//get index of first occuring item | |
//return if index of this item = index of first occuring instance of this item | |
}) | |
} |
This file contains hidden or 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
atom-alignment | |
atom-html-preview | |
atom-jade | |
atom-jsx-transform | |
change-case |
NewerOlder