Skip to content

Instantly share code, notes, and snippets.

@kespeart
kespeart / Rinkeby testnet ethers
Created July 22, 2017 16:06
Ethereum public key
0x96829bf32E8f2269e2FbEb0FC55C3CC2a219061e
0x96829bf32E8f2269e2FbEb0FC55C3CC2a219061e

AngularJS Custom Filter.

Throughout the development process we often encounter situations where it is required to recreate a dynamic select element. One such example of this would be to provide a list of years to the user where the current year is always the first in the drop down.

In all honesty this is not a difficult task and can be done by creating a years object on the angular controller .. example

HTML Drag and Drop.

I was recently ask this question

Given an HTML unordered list of elements <ul><li>element 1</li></ul> in a web page, using only native JavaScript and the jQuery library (jQueryUI and any other libraries are not allowed), write a script that will allow a user to use drag and drop operations within the browser to reorder the list. Please provide a single file to be loaded and tested using the Chrome browser. This file should include the JavaScript Script, any CSS rules, and the HTML code necessary. Please use the Google web resource for the most recent version of jQuery.

<!-- 
  @Author : Kes Peart
@kespeart
kespeart / activeTabDir.md
Last active August 29, 2015 14:15
Angular Tab Management directive

AngularJS Tab highlight directive

This directive takes the IDs for a set of tabs and add the 'active' class to the tab that should be highlighted. The user can provide their own css styles for the 'active' class or if twitter bootstrap exist on the page then the defualt boorstrap styles will be applied.

USAGE: