Skip to content

Instantly share code, notes, and snippets.

View abhishek-parmar1's full-sized avatar

Abhishek Parmar abhishek-parmar1

View GitHub Profile
@abhishek-parmar1
abhishek-parmar1 / dabblet.css
Created January 2, 2018 10:13 — forked from bhargav2785/dabblet.css
Right angle triangles
/*
Right angle triangles
*/
.right-angle-top-left{
position: relative;
margin: 30px;
width: 0;
border-right: 100px solid transparent;
border-top: 100px solid red;
}
@abhishek-parmar1
abhishek-parmar1 / getEndpointsObject.js
Last active January 18, 2018 17:32
Endpoints Collection (projects, objectives, enrollment)
{
'/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 / walksync.js
Created January 28, 2018 20:26 — forked from kethinov/walksync.js
List all files in a directory in Node.js recursively in a synchronous fashion
// 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 / README-Template.md
Created March 4, 2018 15:42 — forked from PurpleBooth/README-Template.md
A template to make good README.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 / raven-config.html
Created April 14, 2018 13:07 — 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.
<!-- 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',