Skip to content

Instantly share code, notes, and snippets.

View applecool's full-sized avatar
📸

Sri Harsha applecool

📸
  • Esri
  • Los Angeles, California
View GitHub Profile
let fs = require("fs");
fs.readFile("preload-dist.r", function (err, data) {
if (err) throw err;
console.log(data);
console.log(data.length);
});
@applecool
applecool / index.html
Last active November 8, 2017 19:24
Drag Zoom
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.axis path, .axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
path.line {
fill: none;
setEvents(var event,x,y)
{
de[0].triggerEventHandler(event,{pageX:x,pageY:y});
}
EventEmit(var event,x,y,expectx,expecty)
{
setEvents(event,x,y);
expect(expectx,expecty);
<div class="container">
<form>
<input type="text" placeholder="Enter Text">
<div class="hint">
<i class="hint-icon">i</i>
<p class="hint-description">Awesome hint</p>
</div>
</form>
</div>
@applecool
applecool / states_hash.json
Created July 9, 2015 13:17
Indian States and Union Territories in JSON format
{
"AP": "Andhra Pradesh",
"AR": "Arunachal Pradesh",
"AS": "Assam",
"BR": "Bihar",
"CT": "Chhattisgarh",
"GA": "Goa",
"GJ": "Gujarat",
"HR": "Haryana",
"HP": "Himachal Pradesh",
@applecool
applecool / CSS Accordion Bootstrap Form.markdown
Last active August 29, 2015 14:24
CSS Accordion Bootstrap Form