Skip to content

Instantly share code, notes, and snippets.

View jacobgoh101's full-sized avatar

Jacob Goh Chuan Ching jacobgoh101

View GitHub Profile
@jacobgoh101
jacobgoh101 / presign-client.js
Created December 7, 2020 09:59 — forked from adamnator92/presign-client.js
AWS S3 presign
import axios from "axios";
export const getUploadSignedURL = (params) => {
return new Promise((resolve, reject) => {
axios
.get("http://localhost:3000/attachments/upload", {
params,
})
.then((response) => {
resolve(response.data);
@jacobgoh101
jacobgoh101 / gulpfile.js
Created April 24, 2018 07:43 — forked from wederer/gulpfile.js
Basic Gulpfile for using Sass with postcss
/* This config file takes an scss file, compiles it to css and
* then uses postcss to minify ("cssnano") the file while also autoprefixing
* ("autoprefixer") and provides additional features like scaling fonts via
* "rucksack".
*
* Usage:
* 1) npm install //installs all packages needed
* 2) gulp watch:scss //watches for changes in any scss file in scssPath
*
*
@jacobgoh101
jacobgoh101 / index.js
Created May 23, 2017 06:59 — forked from JonathanMH/index.js
JSON Web Token Tutorial: Express
// file: index.js
var _ = require("lodash");
var express = require("express");
var bodyParser = require("body-parser");
var jwt = require('jsonwebtoken');
var passport = require("passport");
var passportJWT = require("passport-jwt");