Skip to content

Instantly share code, notes, and snippets.

@sumgup
sumgup / index.html
Created June 3, 2020 04:46
Share Buttons Demo
<!-- Feel free to copy and paste the markup below -->
<h2>Icon Only</h2>
<!-- Icon-only Branded Twitter button -->
<a class="share-btn share-btn-branded share-btn-twitter"
href="https://twitter.com/share?url=http%3A%2F%2Fcodepen.io%2Fsunnysingh%2Fpen%2FOPxbgq&text=Share Buttons Demo&via=sunnyismoi"
title="Share on Twitter">
<span class="share-btn-icon"></span>
<span class="share-btn-text-sr">Twitter</span>
@sumgup
sumgup / config.js
Created May 21, 2019 14:16
StoryBook configuration for Styled Components - GlobalStyles and ThemeProvider
import { configure } from '@storybook/react';
import { themes } from '@storybook/theming';
import React from 'react';
import { addParameters } from '@storybook/react';
import { addDecorator } from '@storybook/react';
import GlobalStyle from '../src/globalstyle';
import { ThemeProvider } from 'styled-components';
import Theme from '../src/theme';
addDecorator((story) => (
public static DateTime AddBusinessDays(DateTime current, int days, bool adjustCurrentDateForWeekend = true)
{
if(adjustCurrentDateForWeekend)
current = AdjustCurrentDateForWeekend(current, days);
var sign = Math.Sign(days);
var unsignedDays = Math.Abs(days);
for (var i = 0; i < unsignedDays; i++)
{
do