Skip to content

Instantly share code, notes, and snippets.

var Word = React.createClass({
callback: function(e) {
e.preventDefault();
this.props.formCB(this.props.id, this.state.value);
},
getInitialState: function() {
return {value: ""};
},
handleChange: function(e) {
this.setState({value: e.target.value});
BOARD = ["|", "|", "\n-----\n", "|", "|", "\n-----\n", "|", "|", "\n"]
SYMBOLS = ["x", "o"]
def print_board(game_state, board):
out = ""
for i in range(9):
out += str(game_state[i])
out += board[i]
print out
@SwartzCr
SwartzCr / Lessig Snowden Interview Transcript
Created October 29, 2014 23:42
Lessig Snowden Interview Transcript
Full transcript of the interview which can be found here: https://www.youtube.com/watch?v=o_Sr96TFQQE
Punctuation and typos are my own, licensed CC0
Lessig: Okay so welcome to a very different kind of Edmond J. Safra Lab Lecture. It's not a lecture it's an interview, and it's not an interview with a person here, it's a person who is many miles from here, although the precise location will not be known. It's an interview with Edward Snowden. Many times people say this is a person who needs no introduction, this person needs no introduction and he will have no direct introduction. There will be a lot of information about him that will come out through a series of questions that I'll be asking him and he'll be answering. We've taken the liberty of asking you to submit questions. I've spent more time than my family thinks I should have trying to integrate those questions into my own set of questions and what we'll do is be conducting the interview via Google hangout for about the next hour at least. I ask you to
Lessig: Okay so welcome to a very different kind of Edmond J Saffra Lab Lecture. It's not a lecture it's an interview, and it's not an interview with a person here, it's a person who is many miles from here, although the precise location will not be known. It's an interview with Edward Snowden. Many times people say this is a person who needs no introduction, this person needs no introduction and he will have no direct introduction. There will be a lot of information about him that will come out through a series of questions that i'll be asking him and he'll be answering. We've taken the liberty of asking you to submit questions. I've spent more time than my family thinks I should have trying to integrate uh those questions into my own set of questions and what we'll do is be conducting the interview via uh Google hangout. Um for about the next hour at least. I ask you to silence your phones, this is obviously being recorded and broadcast and uh with no further ado what we'll do is hope the technology brings
Right this moment I am sitting on my computer, one window open to this article the other looking at a stream of moving faces. Faces coming from users all over the world. One is in Arizona, another in San Francisco, a third in Amsterdam, and two in the same room in Toronto. Every couple of seconds a new message pops in, and along with it a new face. They are designers, programmers, musicians, students, and pets. The website is chat.meatspac.es, and I have been fascinated with it since October of last year when one of my friends sent me the link while I was goofing off at work. I couldn't look away, “who are all these people?” I thought. I was hooked. Two weeks later I was heading to a bar to meet someone who I had only seen as an animated gif. Ten months later and I had met over 50 people who had previously been only looping images to me.
The website was made as a collaboration between two mozillans, Jen Fong and Sole _____, and is a chat room where instead of having an account or a user name, your identity
@SwartzCr
SwartzCr / bpythonish
Created August 30, 2014 16:30
glitch problems
import Image
import StringIO
import imager
img1 = imager.get_image1()
img = Image.open(StringIO.StringIO(img1))
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/swartzcr/Documents/coding/Projects/revisit/local/lib/python2.7/s
ite-packages/PIL/Image.py", line 1980, in open