Skip to content

Instantly share code, notes, and snippets.

@Leolik
Leolik / App.js
Created June 17, 2020 17:41 — forked from XiongJingzhi/App.js
nprogress with react-router in create-react-app
import React from 'react'
import { BrowserRouter as Router, Switch } from 'react-router-dom'
import routes from './routes'
import FancyRoute from './components/tools/FancyRoute'
const App = props =>
<Router>
<Switch>
{routes.map((route, i) =>
<FancyRoute key={i} {...route} />
@Leolik
Leolik / App.js
Created June 17, 2020 15:19 — forked from shelldandy/App.js
nprogress with react-router in create-react-app
import React from 'react'
import { BrowserRouter as Router, Switch } from 'react-router-dom'
import routes from './routes'
import FancyRoute from './components/tools/FancyRoute'
const App = props =>
<Router>
<Switch>
{routes.map((route, i) =>
<FancyRoute key={i} {...route} />
@Leolik
Leolik / dabblet.css
Created February 4, 2015 23:44 — forked from anonymous/dabblet.css
Attempt for Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
0% {
stroke: #00aeef
}
37.5% {
stroke: #ed1c24;
@Leolik
Leolik / dabblet.css
Created February 4, 2015 23:43 — forked from anonymous/dabblet.css
Attempt for Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: -264;
}
}
@Leolik
Leolik / 0_reuse_code.js
Created January 16, 2014 10:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Leolik
Leolik / dabblet.css
Last active December 16, 2015 21:40
Circular Tooltip (SO)
/**
* Circular Tooltip (SO)
* http://stackoverflow.com/q/13132864/1397351
*/
* { margin: 0; padding: 0; }
body {
overflow: hidden;
background: url(http://theearlcarlson.com/experiments/amTooltip/img/bg.jpg);
}
/* generic styles for button & circular menu */
@Leolik
Leolik / dabblet.css
Created January 22, 2013 20:51 — forked from pepelsbey/dabblet.css
Untitled
div {
display:inline-block;
margin-top:-390px;
position:relative;
top: 390px;
width:800px;
height:800px;
background:#CCC;
transform-origin:0 0;
transform:scale(0.5);
@Leolik
Leolik / dabblet.css
Created January 21, 2013 21:40 — forked from h4/dabblet.css
Untitled
body {
background: pink
}
.popup {
position: relative;
width: 200px;
height: 150px;
padding: 10px;
background: #fff;