I hereby claim:
- I am aamirafridi on github.
- I am aamirafridi (https://keybase.io/aamirafridi) on keybase.
- I have a public key ASAMHXiQ1TSOoAZSIT6nQbQWjXoXg9f_jUnbDYlShcradgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function reverse(head) { | |
let nextNode = null; | |
let prevNode = null; | |
let currentNode = head; | |
while(currentNode) { | |
nextNode = currentNode.next; | |
currentNode.prev = nextNode; | |
currentNode.next = prevNode; | |
prevNode = currentNode; | |
currentNode = nextNode; |
function rotLeft(a, d) { | |
if (a.length === d) return a; | |
// arrays are Non-Primitive data type so create a shallow copy | |
var copy = [...a]; | |
while(d) { | |
copy.push(copy.shift()); | |
d--; | |
} |
import "./index.css"; | |
import React, { Component } from "react"; | |
class Accordion extends Component { | |
static defaultProps = { | |
onChange: () => {}, | |
statusIconsComponents: { | |
opened: "▲", | |
closed: "▼" | |
}, |
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
%message { | |
border: 1px solid #ccc; | |
padding: 5px; | |
display: block; | |
} |
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
%message { | |
border: 1px solid #ccc; | |
padding: 5px; | |
display: block; | |
} |
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
%message { | |
border: 1px solid #ccc; | |
padding: 5px; | |
display: block; | |
} | |
.error { |
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
%message { | |
border: 1px solid #ccc; | |
padding: 5px; | |
display: block; | |
} | |
.error { |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
//Working demo can be found on http://codepen.io/aamirafridi/pen/GcmHt | |
//HTML: <div>click me to animate</div> | |
function supportTransitions() { | |
var b = document.body || document.documentElement, | |
s = b.style, | |
p = 'transition', | |
e = { | |
'Webkit' : 'webkitTransitionEnd', |