Skip to content

Instantly share code, notes, and snippets.

.ReactTable {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
border: 1px solid rgba(0, 0, 0, 0.1);
@fgilio
fgilio / axios-catch-error.js
Last active April 11, 2024 19:02
Catch request errors with Axios
/*
* Handling Errors using async/await
* Has to be used inside an async function
*/
try {
const response = await axios.get('https://your.site/api/v1/bla/ble/bli');
// Success 🎉
console.log(response);
} catch (error) {
// Error 😨
@jzaccone
jzaccone / cleanWskEnv.sh
Created February 16, 2017 13:36
Clean up your OpenWhisk environment including packages, triggers, actions and rules
#!/bin/bash
# This script deletes all wsk actions, packages, triggers and rules
# May need to run it twice to delete everything
IFS='
'
context="packages"
for line in `wsk list | awk '{ print $1 }' | tail -n +2`; do