Skip to content

Instantly share code, notes, and snippets.

View husek's full-sized avatar
⌨️
coding

Gabriel Husek husek

⌨️
coding
View GitHub Profile
### Keybase proof
I hereby claim:
* I am husek on github.
* I am husek (https://keybase.io/husek) on keybase.
* I have a public key ASAupwbfy1_imMgxUmAW4_1YSvl-6K7mNNze0LFb3Dxgsgo
To claim this, I am signing this object:
@husek
husek / searchState.js
Created November 21, 2017 00:27
API answer converted to file
module.exports = [{
"name": "place",
"label": "place",
"options": [{
"name": "boston",
"resource_number": "01:13:45620:275:1309460",
"level": "place",
"reference_name": "georgia",
"reference_level": "state",
"tags": [],
@husek
husek / Example.js
Created November 21, 2017 00:26
react-select-plus keys not working example
import React from 'react';
import createClass from 'create-react-class';
import Select from 'react-select-plus';
import SearchState from '../data/searchState';
var ExampleDemo = createClass({
displayName: 'ExampleDemo',
getInitialState() {
return {
@husek
husek / raven.js
Created January 10, 2017 16:19
Raven JS (Sentry JS Client) Redux Middleware example
import is from 'is-type-of';
import { isDOMAvailable } from 'utils';
if (typeof Raven !== 'undefined') {
const ravenConfig = {
// config from https://docs.getsentry.com/hosted/clients/javascript/tips/
ignoreErrors: [
// Random plugins/extensions
'top.GLOBALS',
// See: http://blog.errorception.com/2012/03/tale-of-unfindable-js-error. html
@husek
husek / UploadButton.js
Created September 5, 2016 15:33
Material UI Upload Button
import React, { PropTypes, Component } from 'react';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
export default class UploadButton extends Component {
static propTypes = {
button: PropTypes.oneOf(['flat', 'raised']).isRequired,
raised: PropTypes.bool,
label: PropTypes.string.isRequired,
disabled: PropTypes.bool,