Skip to content

Instantly share code, notes, and snippets.

🐧

Timothy Lombrana timothylombrana

🐧
  • Austin, Tx
Block or report user

Report or block timothylombrana

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
@timothylombrana
timothylombrana / dry.ts
Created Aug 9, 2018
DRY: don't repeat yourself
View dry.ts
createContact = item => {
let items = this.state.items;
let email = this.state.email;
const itemsIncludesEmail = items.some(o => o.email === mail);
const emailValid = EmailValidator.validate(email);
if (items.length < 10 && !itemsIncludesEmail && emailValid) {
this.setState(state => ({
button: true,
items: state.items.concat([item]),
@timothylombrana
timothylombrana / gist:3b4c3255a8b693c7e5814f28ab5dd7bf
Last active Oct 9, 2016
Error installing npm grunt-libsass
View gist:3b4c3255a8b693c7e5814f28ab5dd7bf
➜ git:(master) ✗ node -v
v5.2.0
➜ git:(master) ✗ npm -v
3.3.12
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
> node-sass@0.9.3 install /node_modules/node-sass
> node build.js
You can’t perform that action at this time.