Skip to content

Instantly share code, notes, and snippets.

Working from home

frank harerimana frankhn

Working from home
Block or report user

Report or block frankhn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
frankhn / nodejs-express-cookies-example.js
Created Dec 16, 2019 — forked from gdm85/nodejs-express-cookies-example.js
How to create session cookies with Node.js + Express
View nodejs-express-cookies-example.js
var express = require('express'),
app = express(),
https = require('https'),
fs = require('fs'),
keys = require( "keygrip" )(['secret1', 'secret2']),
cookies = require( "cookies" );
// This line is from the Node.js HTTPS documentation
var options = {
key: fs.readFileSync('private_key_cert.pem'),
View nodeJS image upload
const http = require('http');
const express = require('express')
const path = require('path')
const fs = require('fs')
const bodyParser = require('body-parser')
const Busboy = require('busboy')
let app = express();
frankhn / index.html
Created Aug 9, 2019
Vue.js: Animated Dropdown Menu
View index.html
<div id="app">
<header class="header">
<nav class="header__nav">
<ul class="header__navbar">
<li class="header__item">
<a href="#" class="header__link">
<transition name="slide-fade">
<button class="header--btn" v-if="show" key="on" @click="show = false">
<svg viewBox="0 0 24 24" class="header--icon">
View Test driven development.js
import chai from ('chai').should;
import server from '../../app';
import chaiHttp from 'chai-http';
describe('it should be able to apdate the article', () => {
it('should return the 201 status for success update', (done) => {
const article = {
View flatten an array of arbitrarily nested arrays of integers into a flat array of integers
package intercom;
import java.util.ArrayList;
public class FlattenArrays {
// Main method with test case
public static void main(String[] args)
You can’t perform that action at this time.