Skip to content

Instantly share code, notes, and snippets.

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

Hemanth HM hemanth

🐜
🧘‍♂️
View GitHub Profile
@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'];
}
]);
@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 / 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 / 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 / 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 / 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: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 / index.js
Created January 20, 2015 09:03
requirebin sketch
var center = require('center')
var el = document.createElement('img');
el.src=''
document.body.appendChild(center(el))
@hemanth
hemanth / audio-sprite.js
Last active August 29, 2015 14:15
Google IO audio sprint snippet.
function(t) {
t.exports = {
resources: ["https://events.google.com/io2015/experiment/cataudiosprite.mp3"],
spritemap: {
"arp_synth_A-sharp": {
start: 0,
end: 1.0971428571428572,
loop: !1
},
"arp_synth_A-sharp2": {