Skip to content

Instantly share code, notes, and snippets.

@hashg
hashg / index.html
Last active August 29, 2015 14:02
D3 Linear calendar
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
@hashg
hashg / gist:c9a5fcc9a85795b969c6
Last active August 29, 2015 14:06 — forked from marbemac/gist:06c5040e4d71694f07b3
Ember Data serializer example
// API return format is as so:
// {
// data: [
// {
// name: 'foo'
// },
// {
// name: 'bar'
// }
// ]
{
"C6F99": {
"downlinkData": "1"
},
"C6F19": {
"downlinkData": "0"
}
}
@hashg
hashg / 0.Jivamrutham.md
Last active January 16, 2019 11:51
ZBNF

Jiwamrita

Yield: 1 Acre | Time: 72hrs | Expires: 7days

Ingredients

  • 200 Ltrs water drum or cement tank.
  • 200 Ltrs of water
  • 10 Kg of indigenous desi Cow Dung
  • 5 to 10 Ltrs of indigenous desi cow urine
  • 1 Kg of black jaggery(smashed)
@hashg
hashg / components.chat-box.js
Created January 26, 2017 08:14 — forked from samselikoff/components.chat-box.js
Sticky Chatbox - Ember In Viewport
import Ember from 'ember';
export default Ember.Component.extend({
classNames: 'chat-box',
didRender() {
if (this.get('isScrolledToBottom')) {
this.$('ul')[0].scrollTop = this.$('ul')[0].scrollHeight;
}
@hashg
hashg / index.html
Created February 9, 2017 06:07 — forked from nolanlawson/index.html
pouchdb-load example
<html>
<body>
<pre id="display"></pre>
<script src="pouchdb.js"></script>
<script src="pouchdb.load.js"></script>
<script>
var db = new PouchDB('turtles');
db.get('_local/preloaded').catch(function (err) {
if (err.status !== 404) {
throw err;
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
firstName: 'Alex',
lastName: 'Matchneer',
fullName: auto(get =>
@hashg
hashg / readme.md
Last active September 6, 2019 08:23

Header 1

Header 2

header 3

  1. One
  2. Two
  3. Three
  • One
  • Two
@hashg
hashg / Readme.md
Last active November 20, 2019 22:38 — forked from shiningnicholson95/SetupGuide.md
Smarthub setup

Initial Setup Guides

SmartHub

Installing Node.js

  1. Node.js is essential for the project. Download it here: https://nodejs.org/en/. Download the LTS version.
  2. Install n. It maintains the version of node.js from time to time.
  3. In your terminal install nodemon. Nodemon is an npm package.
  4. Run the command: npm install nodemon –g

Above command installs the nodemon globally.