Skip to content

Instantly share code, notes, and snippets.

Avatar

Abhishek Parmar abhishek-parmar1

View GitHub Profile
@abhishek-parmar1
abhishek-parmar1 / raven-config.html
Created Apr 14, 2018 — forked from impressiver/raven-config.html
Raven.js configuration for logging JavaScript exceptions to Sentry (https://getsentry.com/). Without the added ignore options, you'll quickly find yourself swamped with unactionable exceptions due to shoddy browser plugins and 3rd party script errors.
View raven-config.html
<!-- Raven.js Config -->
<script src="{{ JS_PATH }}/lib/raven.js" type="text/javascript"></script>
<script type="text/javascript">
// Ignore list based off: https://gist.github.com/1878283
var ravenOptions = {
// Will cause a deprecation warning, but the demise of `ignoreErrors` is still under discussion.
// See: https://github.com/getsentry/raven-js/issues/73
ignoreErrors: [
// Random plugins/extensions
'top.GLOBALS',
@abhishek-parmar1
abhishek-parmar1 / README-Template.md
Created Mar 4, 2018 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@abhishek-parmar1
abhishek-parmar1 / walksync.js
Created Jan 28, 2018 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
View walksync.js
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
filelist = walkSync(dir + file + '/', filelist);
}
else {
@abhishek-parmar1
abhishek-parmar1 / getEndpointsObject.js
Last active Jan 18, 2018
Endpoints Collection (projects, objectives, enrollment)
View getEndpointsObject.js
{
'/py/api/student/projects' : 'projectsList',
'/py/api/student/projects/objectives' : 'objectivesList',
'/py/api/student/catalogues' : 'programs',
'/py/api/students/catalogue/batches' : 'batches',
'/api/university/list' : 'universities'
}
@abhishek-parmar1
abhishek-parmar1 / dabblet.css
Created Jan 2, 2018 — forked from bhargav2785/dabblet.css
Right angle triangles
View dabblet.css
/*
Right angle triangles
*/
.right-angle-top-left{
position: relative;
margin: 30px;
width: 0;
border-right: 100px solid transparent;
border-top: 100px solid red;
}
You can’t perform that action at this time.