Skip to content

Instantly share code, notes, and snippets.

View njohnson7's full-sized avatar
🐈‍⬛

Nick Johnson njohnson7

🐈‍⬛
View GitHub Profile
@njohnson7
njohnson7 / class_records_summary.js
Last active August 13, 2017 09:21
Class Records Summary
const EXAM_WEIGHT = 0.65;
const EXERCISE_WEIGHT = 0.35;
const generateClassRecordSummary = students => {
let studentGrades = generateStudentGrades(students);
let examSummaries = generateExamSummaries(students);
return { studentGrades: studentGrades, exams: examSummaries };
};
@njohnson7
njohnson7 / snippet_of_vkbeautify.2.0.js
Created May 18, 2017 18:19
How to change indentation of Postman HTML Pretty view to 2 spaces instead of 4
function vkbeautify(){ // line 83 of vkbeautify.2.0.js
// change the string below to 2 spaces instead of 4:
this.step = ' '; // 4 spaces
this.shift = createShiftArr(this.step);
};
@njohnson7
njohnson7 / snippet_of_requester.js
Last active October 4, 2019 14:56
How to use a custom syntax highlighting theme in Postman by modifying the requester.js file
/***/ function(module, exports) { // line 105955 in 'requester.js'
"use strict";
ace.define("ace/theme/monokai", ["require", "exports", "module", "ace/lib/dom"], function (acequire, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-monokai";
// this is the string you want to change (line 105963 in 'requester.js'):
exports.cssText = ".ace-monokai .ace_gutter {\