Skip to content

Instantly share code, notes, and snippets.

@TylerLH
TylerLH / divide.sh
Last active August 29, 2015 14:19
Divide 2 numbers
#!/bin/bash
if [ $# -ne 2 ]
then
echo "You must enter 2 arguments. You entered $#".
exit 2
fi
if [ $(echo $1 | grep "[0-9]") ]
then
import React from 'react'
import baseStyle from './baseStyle'
const styles = theme => ({
...baseStyle,
bar: {
width: theme.spacing.unit * 3
}
})
@TylerLH
TylerLH / app.js
Last active February 23, 2019 00:44
Multiple Async/Await in Express Route
const express = require('express');
const axios = require('axios');
const app = express();
async function getFoo() {
return Promise.resolve('foo'); // this could be anything that resolves
}
async function getBarData() {