Skip to content

Instantly share code, notes, and snippets.

Breno Calazans klzns

Block or report user

Report or block klzns

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
klzns / ReactSVGWebpackExample.jsx
Last active Aug 29, 2015 — forked from MoOx/svgicon.css
Adding SVG icons with React + webpack
View ReactSVGWebpackExample.jsx
import React from 'react';
import SVGIcon from 'components/utils/SVGIcon';
import myIcon from 'assets/icons/myicon.svg';
class MyComponent extends React.Component {
render() {
return (
<SVGIcon svg={myIcon} width={18} height={18} fill="#444"/>
klzns / gist:5066139
Last active Dec 14, 2015 — forked from tzi/index.html
Detect Internet Explorer version in Coffeescript. Returns IE version number if true, otherwise returns false.
View gist:5066139
window.dammitIE = do ->
is_internet_explorer = ->
window.navigator.appName is "Microsoft Internet Explorer"
get_internet_explorer_version = ->
matches = new RegExp(" MSIE ([0-9].[0-9]);").exec(window.navigator.userAgent)
return parseInt(matches[1].replace(".0", "")) if matches? and matches.length > 1
You can’t perform that action at this time.