Skip to content

Instantly share code, notes, and snippets.

Emile Keith infinityCounter

Block or report user

Report or block infinityCounter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View readwrite.go
package main
import (
"time"
)
var m = map[string]int{"a": 1}
func main() {
go Read()
View test2.go
func bar (d chan int) {
count := <-d
fmt.Println(count)
close(d)
}
func foo(c chan int) {
d := make(chan int)
go bar(d)
for count := range c {
View gist:1aa53a77919551cb5c2559e7a1318945
.comment-view {
width: 75%;
margin: 0 auto;
margin-bottom: 2.5em;
}
.comment-view-controls {
font-size: 0.74em;
color: blue;
}
@infinityCounter
infinityCounter / gist:2e5589b9cb7fbcd8b55cd9e8dc38dc86
Created Aug 7, 2017
Quick React.js Comment List with editable comments
View gist:2e5589b9cb7fbcd8b55cd9e8dc38dc86
class CommentView extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="comment-view">
<p className="comment-view-body">
{this.props.message}
You can’t perform that action at this time.