Skip to content

Instantly share code, notes, and snippets.

View srajagop's full-sized avatar
🎯
Focusing

Santhana Sethubalan srajagop

🎯
Focusing
View GitHub Profile
@srajagop
srajagop / crypto-pbkdf2-example.js
Created May 15, 2018 18:57 — forked from skeggse/crypto-pbkdf2-example.js
Example of using crypto.pbkdf2 to hash and verify passwords asynchronously, while storing the hash and salt in a single combined buffer along with the original hash settings
var crypto = require('crypto');
// larger numbers mean better security, less
var config = {
// size of the generated hash
hashBytes: 32,
// larger salt means hashed passwords are more resistant to rainbow table, but
// you get diminishing returns pretty fast
saltBytes: 16,
// more iterations means an attacker has to take longer to brute force an
@srajagop
srajagop / Prism music visualizer.markdown
Created August 6, 2015 20:17
Prism music visualizer
@srajagop
srajagop / CSS paper boat sailing in the rain.markdown
Created June 29, 2015 23:34
CSS paper boat sailing in the rain

CSS paper boat sailing in the rain

Raining on the lake... full css paper boat, ripples, splashes, and drops. JS is only used to duplicate the ripples, remove them after a while and to handle the mouse down event. I'm new in css, any optimization is welcome.

A Pen by Karim Maaloul on CodePen.

License.

@srajagop
srajagop / Two-Way Data Binding jQuery and Object.observe.markdown
Created June 26, 2015 18:26
Two-Way Data Binding jQuery and Object.observe

Two-Way Data Binding jQuery and Object.observe

Two-Way Data Binding using jQuery 2 and Object.observe.

An experiment to show off the power of the new Object.observe ES6 spec that just came out in Chrome Canary.

A Pen by Garrett- on CodePen.

License.

@srajagop
srajagop / Example for Throttle and Debounce.markdown
Created June 22, 2015 16:45
Example for Throttle and Debounce

Example for Throttle and Debounce

An example that contains sliders that show the difference between the throttle and debounce method of underscore

A Pen by Niklas on CodePen.

License.