Skip to content

Instantly share code, notes, and snippets.

View matsilva's full-sized avatar

Mat Silva matsilva

View GitHub Profile

Keybase proof

I hereby claim:

  • I am matsilva on github.
  • I am matsilva (https://keybase.io/matsilva) on keybase.
  • I have a public key ASDAJSj6sBOAhsAarw0gqKIaoJMy4tCwvYRziY_FaA0ISQo

To claim this, I am signing this object:

@matsilva
matsilva / CheckBox.js
Last active September 10, 2015 16:44
Checkbox in React
var React = require('react');
var PropTypes = React.PropTypes;
var CheckBox = React.createClass({
propTypes: {
addClass: PropTypes.string,
text: PropTypes.string,
onCheck: PropTypes.func.isRequired,
},
getInitialState: function() {
@matsilva
matsilva / decode-hash.js
Last active August 29, 2015 14:27
Trello decode hash solution
function hash (s){
var h = 7
var letters = 'acdegilmnoprstuw'
for(var i = 0; i < s.length; i++){
console.log(h + ' ' + s[i] + ' ' + letters.indexOf(s[i]))