Skip to content

Instantly share code, notes, and snippets.

Eric Khoury eric-khoury

Block or report user

Report or block eric-khoury

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .eslintrc.json
{
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"env": {
"node": true,
"es6": true
},
"globals": {
@eric-khoury
eric-khoury / reactdragndrop.js
Last active May 8, 2018
React drag n drop example
View reactdragndrop.js
state = {
items: ['DRAG ME 1', 'DRAG ME 2', 'DRAG ME 3'],
draggingId: undefined,
droppedId: undefined
}
dragStart = (e) => {
let id = e.target.getAttribute("data-id")
this.setState({ draggingId: id })
}
@eric-khoury
eric-khoury / progressbar.html
Last active May 27, 2016
Simple html/jquery progressbar
View progressbar.html
<!DOCTYPE html>
<html>
<style>
body {
width: 80%;
margin: 0 auto;
text-align: center;
padding-top: 200px;
}
#progressWrapper {
You can’t perform that action at this time.