Skip to content

Instantly share code, notes, and snippets.

View dogoyaro's full-sized avatar

Yamen dogoyaro

View GitHub Profile
@arthuroe
arthuroe / setup.sh
Created March 7, 2018 14:26
script to automatically setup project..(Under refinement)
#!/bin/bash
link='Your project url here'
if [ "$link" ];then
cd ~/
[ -d test_proj ] || mkdir test_proj
cd ~/test_proj
directory=${link##*/}
if [ -d "$directory" ]; then
@pherris
pherris / superagent.js
Last active January 19, 2021 15:10
Jest superagent mock
'use strict';
//mock for superagent - __mocks__/superagent.js
var mockDelay;
var mockError;
var mockResponse = {
status() {
return 200;
},