Skip to content

Instantly share code, notes, and snippets.

View hemanth's full-sized avatar
🐜
🧘‍♂️

Hemanth HM hemanth

🐜
🧘‍♂️
View GitHub Profile
@hemanth
hemanth / es6-dom-extend.js
Last active January 27, 2024 12:38
Extend DOM elements ES6
class SmartButton extends HTMLButtonElement {
constructor() {}
}
let sb = new SmartButton();
document.body.appendChild(sb);
/*
I get the below error:
TypeError: Failed to execute 'appendChild'
@hemanth
hemanth / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-ajax/core-ajax.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@hemanth
hemanth / designer.html
Last active August 29, 2015 14:05
designer
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
@hemanth
hemanth / designer.html
Last active August 29, 2015 14:05
designer
<link rel="import" href="../paper-calculator/paper-calculator.html">
<paper-calculator responsivewidth="2000px" id="paper_calculator"></paper-calculator>
@hemanth
hemanth / npm-debug.log
Created May 25, 2014 15:10
Error: ENOTEMPTY, rmdir
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/hemanth/.nvm/v0.10.28/lib/node_modules/yo/node_modules/insight/node_modules/request/node_modules/http-signature'
npm ERR! error rolling back yo@1.1.2 { [Error: ENOTEMPTY, rmdir '/Users/hemanth/.nvm/v0.10.28/lib/node_modules/yo/node_modules/insight/node_modules/request/node_modules/http-signature']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/Users/hemanth/.nvm/v0.10.28/lib/node_modules/yo/node_modules/insight/node_modules/request/node_modules/http-signature' }
npm ERR! Error: No name provided
npm ERR! at needName (/Users/hemanth/.nvm/v0.10.28/lib/node_modules/npm/lib/cache.js:1440:37)
npm ERR! at /Users/hemanth/.nvm/v0.10.28/lib/node_modules/npm/lib/cache.js:875:16
npm ERR! at /Users/hemanth/.nvm/v0.10.28/lib/node_modules/npm/node_modules/read-package-json/read-json.js:51:40
npm ERR! at final (/Users/hemanth/.nvm/v0.10.28/lib/node_modules/npm/node_modu
@hemanth
hemanth / keybase.md
Created March 25, 2014 16:28
keybase proof.

Keybase proof

I hereby claim:

  • I am hemanth on github.
  • I am hemanth (https://keybase.io/hemanth) on keybase.
  • I have a public key whose fingerprint is 5CB1 47E7 A2E9 E8E6 303C 2A1E D8E9 DE93 D483 051E

To claim this, I am signing this object:

@hemanth
hemanth / package.json
Created March 9, 2014 14:40
Globally installs all the offical yeoman generators.
{
"name": "yeoman-generators",
"version": "0.1.0",
"description": "Globally installs all the offical yeoman generators.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"preinstall": "npm i -g generator-gruntplugin generator-angular generator-gulp-webapp generator-jquery generator-webapp generator-bootstrap generator-generator generator-backbone generator-node generator-mobile generator-polymer generator-ember generator-karma generator-gruntfile generator-mocha generator-chromeapp generator-chrome-extension generator-jasmine generator-dummy generator-commonjs"
},
"repository": {
@hemanth
hemanth / ng-npm-debug.log
Created March 8, 2014 05:24
Offline version.
0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli '/Users/hemanth/.nvm/v0.10.22/bin/npm',
1 verbose cli 'install',
1 verbose cli 'grunt-karma',
1 verbose cli 'karma-ng-html2js-preprocessor',
1 verbose cli 'karma-ng-scenario',
1 verbose cli '--save-dev' ]
2 info using npm@1.4.4
3 info using node@v0.10.22
@hemanth
hemanth / cors.js
Created February 7, 2014 06:48
CORS with angularjs
var myApp = angular.module('myApp', []);
myApp.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common['X-Requested-With'];
}
]);