Skip to content

Instantly share code, notes, and snippets.

View shapan1's full-sized avatar
🏠
I may be slow to respond.

shapan dashore shapan1

🏠
I may be slow to respond.
  • San Diego, CA
View GitHub Profile
@shapan1
shapan1 / server.js
Last active February 5, 2017 18:16
Error after deployment on heroku: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch.
var express = require('express'),
stylus = require('stylus'),
logger = require('morgan'),
bodyParser = require('body-parser'),
mongoose = require('mongoose');
var env = process.env.NODE_ENV = process.env.NODE_ENV || 'development';
var app = express();
@shapan1
shapan1 / index.html
Created January 31, 2017 19:06
Jquery errors
<!DOCTYPE html><html><head><link href="/favicon.ico" rel="shortcut icon" type="image/x-icon"><link rel="stylesheet" href="/css/bootstrap.css"><link rel="stylesheet" href="/css/site.css"><link rel="stylesheet" href="/css/mystyles.css"><base href="/"></head><body ng-app="app"><section class="content"></section><div ng-view></div><script type="text/javascript" src="/node_modules/jquery/src/jquery.js"><script type="text/javascript" src="/node_modules/angular/angular.js"><script type="text/javascript" src="/node_modules/angular-resource/angular-resource.js"><script type="text/javascript" src="/node_modules/angular-route/angular-route.js"><script type="text/javascript" src="/app/app.js"></script></script></script></script></script></body></html>
@shapan1
shapan1 / Mean APP index.html gist
Created January 30, 2017 16:00
Error: The stylesheet http://localhost:3030/vendor/toastr/toastr.css was not loaded because its MIME type, “text/html”, is not “text/css”. It says the site.css style sheet could not be loaded
#index.html
<!DOCTYPE html><html><head><base href="/"><link href="/favicon.ico" rel="shortcut icon" type="image/x-icon"><link rel="stylesheet" href="/css/bootstrap.css"><link rel="stylesheet" href="/vendor/toastr/toastr.css"><link rel="stylesheet" href="/css/site.css"><link rel="stylesheet" href="/css/mystyles.css"></head><body class="bgimage"><section class="content"></section><h1>Hello, World</h1><script>type="text/javascript", src="/node_modules/jquery/src/jquery.js"<script>type="text/javascript", src="/node_modules/angular/angular.js"<script>type="text/javascript", src="/node_modules/angular-resource/angular-resource.js"<script>type="text/javascript", src="/node_modules/angular-route/angular-route.js"<script>type="text/javascript", src="/app/app.js"</script></script></script></script></script></body></html>
#index.jade
extends ../includes/layout.jade
block main-content
section.content
h1 Hello, World