Skip to content

Instantly share code, notes, and snippets.

Avatar

Damon Swayn Shruubi

View GitHub Profile
View ExampleWidget.jsx
//import the react library
import * as React from "react";
//ExampleWidget inherits functionality of React.Component
//we also need to export default to make this widget available
//to the rest of our app
export default class ExampleWidget extends React.Component {
//constructor is called when the widget is created
constructor(props) {
View twitterinterview.py
walls = [2,5,1,3,1,2,1,7,7,6]
lmax = 0
rmax = 0
total = 0
#find rmax
for i in range(0, len(walls)):
if walls[i] > walls[rmax]:
rmax = i
You can’t perform that action at this time.