Skip to content

Instantly share code, notes, and snippets.

View nikhilatjumpcut's full-sized avatar
👻
straight to the ramp

Nikhil Arora nikhilatjumpcut

👻
straight to the ramp
View GitHub Profile
@ctrlplusb
ctrlplusb / superagent-mock-example.js
Last active July 1, 2020 07:38
Stripped down and basic example of testing superagent based code using superagent-mock and mocha.
import { expect } from 'chai';
import superagent from 'superagent';
import mockSuperagent from 'superagent-mock';
import * as Errors from '../../../common/utils/errors';
// Under test.
import login from './login';
describe(`login api`), () => {
const serverEndPoint = `http://foobar.com/login`;
@MarkyMarkMcDonald
MarkyMarkMcDonald / create_migration.sh
Last active August 24, 2020 22:21
Create Flyway migration versioned by timestamp: ./bin/create_migration.sh "Add_Unique_Constraint_To_User_Email"
#!/bin/bash
echo "-- New Migration" > "`dirname $0`/../src/main/resources/db/migrations/V`date +%s`__$1.sql"
@DavidWells
DavidWells / reset.css
Last active April 11, 2024 19:03 — forked from karbassi/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,