Skip to content

Instantly share code, notes, and snippets.

/**
* SmoothScroll
* This helper script created by DWUser.com. Copyright 2013 DWUser.com.
* Dual-licensed under the GPL and MIT licenses.
* All individual scripts remain property of their copyrighters.
* Date: 10-Sep-2013
* Version: 1.0.1
*/
if (!window['jQuery']) alert('The jQuery library must be included before the smoothscroll.js file. The plugin will not work propery.');
@karmendra
karmendra / toggleswitch.js
Last active March 10, 2020 18:28
Bootstrap-switch plugin for X-editable
/**
ToggleSwitch editable input.
@class toggleswitch
@extends abstractinput
@final
@example
<a href="#" id="toggleswitch" data-type="toggleswitch" data-pk="1"></a>
<script>
$(function(){
@karmendra
karmendra / cardscan4linux.py
Last active April 4, 2024 12:28
This python3 script is to search for valid Visa Master or Amex card numbers in Linux file system, it is taken from https://github.com/ins1gn1a/CardScan4Linux but improved to automatically exclude binary files and verify card numbers using luhn algorithm, now --extention is optional, by default it includes all files
#!/usr/bin/env python3
# Version: 1.1.0
# Author: Adam Govier (ins1gn1a) - September 2015
# Email: me@ins1gn1a.com
#
# Disclaimer:
# I am not responsible for any problems or issues that are potentially caused
# by running this tool. There should not be any problems as this script uses
# in-built functionality and was created with performance and availability