Skip to content

Instantly share code, notes, and snippets.

@berodam
berodam / Navbar.js
Last active July 6, 2023 06:36
Styled Component based Responsive NavBar
import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
/*
* This is a ready to use component, just import it and plop it into your project as:
* <Navbar/>
* You might want to move all the style components into separate files for readability
* if you plan to do more with it.
*/
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@davemo
davemo / api.proxy.server.js
Created November 6, 2012 21:56
A simple express.js server with a proxy that intercepts all requests with /api/ and proxies them to localhost:3000
var express = require('express'),
httpProxy = require('http-proxy'),
app = express();
var proxy = new httpProxy.RoutingProxy();
function apiProxy(host, port) {
return function(req, res, next) {
if(req.url.match(new RegExp('^\/api\/'))) {
proxy.proxyRequest(req, res, {host: host, port: port});