Skip to content

Instantly share code, notes, and snippets.

View chrisstpierre's full-sized avatar
💭
👨‍💻 🍚 👨‍💻 🍔 👨‍💻 🎉 🛌 👨‍💻

Christian St Pierre chrisstpierre

💭
👨‍💻 🍚 👨‍💻 🍔 👨‍💻 🎉 🛌 👨‍💻
View GitHub Profile
@chrisstpierre
chrisstpierre / infix_expression_evaluation.py
Created October 8, 2020 02:50
Infix Expression Evaluation
def evaluate(e):
expr = list(e)
stack = []
num=""
while len(expr) > 0:
c = expr.pop(0)
if c in "0123456789." or (c is "-" and (len(stack) == 0 or str(stack[-1]) in "+-*/")):
num += c
else:
import React from 'react';
import { Tab, Tabs, DataTable, Text, Anchor } from "grommet";
import { Grommet } from "grommet";
import { hp } from 'grommet-theme-hp';
var validUrl = require('url-validation');
const cleanupText = (text) => {
let wordsArray = text.toLowerCase().split('-').join(' ').split('_').join(' ').split(' ')
let formattedWord = wordsArray.map((word, i) => {

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: