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.
*/
/*
* More permanent storage solution
*
*/
#include <iostream>
#include <fstream>
#include <list>
#include <string>
@berodam
berodam / ScrollKeyboardControll
Created February 8, 2013 09:21
Use Space, Page Down or Down arrow to scroll to next div Use Page Up or Up arrow to scroll to a prev div
/*
*
* Page Up and Down handlers
* Depends on jQuery and jQuery.ScrollTop
*
*/
function preventDefault (event) {
event = event || window.event;
if (event.preventDefault) {
event.preventDefault;