Skip to content

Instantly share code, notes, and snippets.

View ulises-jeremias's full-sized avatar
:octocat:

Ulises Jeremias ulises-jeremias

:octocat:
View GitHub Profile
@ulises-jeremias
ulises-jeremias / ResponsivePie.jsx
Last active June 22, 2020 03:19
Responsive Pie implementation using semantic ui react and recharts
import React from 'react'
import PropTypes from 'prop-types'
import {
Responsive,
} from 'semantic-ui-react'
import {
PieChart,
Pie,
ResponsiveContainer,
Sector,
@ulises-jeremias
ulises-jeremias / ReactToPrint.jsx
Last active June 22, 2020 03:10
React to Print
import React, { Component } from 'react'
import { findDOMNode } from 'react-dom'
import PropTypes from 'prop-types'
class ReactToPrint extends Component {
constructor(props) {
super(props)
const { content, on } = this.props
@ulises-jeremias
ulises-jeremias / hot-reload.js
Last active June 4, 2018 23:31
Web Extension Hot Reloader
const filesInDirectory = dir => new Promise(resolve =>
dir.createReader().readEntries(entries =>
Promise.all(entries.filter(e => e.name[0] !== '.').map(e =>
e.isDirectory ?
filesInDirectory(e) :
new Promise(resolve => e.file(resolve))
))
.then(files => [].concat(...files))
.then(resolve)
)
@ulises-jeremias
ulises-jeremias / license-badges.md
Created February 24, 2017 14:36 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail ([email protected])