This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package accumulate | |
import ( | |
"strings" | |
) | |
// Accumulate returns all caps string | |
func Accumulate(s []string) []string { | |
// var newSlice []string | |
for pos, word := range s { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
// Abbreviate should have a comment documenting it. | |
func Abbreviate(s string) string { | |
var acronym string | |
// fmt.Println(acronym) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class Home extends Component { | |
render() { | |
return ( | |
<div> | |
<h1>Make School Club App</h1> | |
<button onClick={() => window.location.href = '/dashboard'}>Login</button> | |
</div> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Route, Redirect } from 'react-router' | |
class Home extends Component { | |
constructor() { | |
super(); | |
this.state = { | |
toLogin: false, | |
}; | |
this.handleClick = this.handleClick.bind(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
def square_up(n): | |
"""Simple test cases in docstring | |
>>> square_up(2) | |
[0, 1, 2, 1] | |
>>> square_up(3) | |
[0, 0, 1, 0, 2, 1, 3, 2, 1] | |
>>> square_up(4) |
NewerOlder