Skip to content

Instantly share code, notes, and snippets.

View Kali187's full-sized avatar
🏠
Working from home

Janusz 'Kali' Kaliszczak Kali187

🏠
Working from home
  • London, United Kingdom
View GitHub Profile
@mistercoffee66
mistercoffee66 / jquery-dosomething-ES6.js
Last active November 6, 2019 16:03
ES6 module importing jQuery plugin
//jquery-dosomething-ES6.js
//after modification
//assumes jQuery is avail as global or via NPM etc
import jQuery from 'jquery'
export default function() {
+function($) {
var $this = $(this);
var newText = $this.data('text');
@monkeymonk
monkeymonk / jquery.scrollToTop.js
Created April 8, 2016 08:26
ES6 jQuery plugin definition
import $ from 'jquery';
import plugin from './plugin';
class ScrollToTop {
constructor(element, options) {
const $element = $(element);
$(window).scroll(function () {
if ($(this).scrollTop() > options.offset) {
$element.fadeIn();
@mizanRahman
mizanRahman / Gruntfile.js
Created April 29, 2014 21:57
grunt file for static site generator with assemble + scss
/*
* Generated on 2014-02-21
* generator-assemble v0.4.9
* https://github.com/assemble/generator-assemble
*
* Copyright (c) 2014 Hariadi Hinta
* Licensed under the MIT license.
*/
'use strict';