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
Hi $recruiter_name, | |
Thanks for the email! | |
$your_positive_impact(optional) | |
Facebook, in that same time period, has built an impressive (and well-reported) track record of its own, with accomplishments ranging from real name policies that made life dangerous for trans people, to the use of WhatsApp to spread dangerous viral rumors in places with histories of mob violence, to actively strategizing with political disinformation campaigns in order to maximize advertising revenue, to allowing popular conservative sites and personalities to violate Facebook's terms of service because conspiracy theories get more clicks. | |
All of which is to say, as fantastic as an opportunity to be paid in Facebook's still-upcoming cryptocurrency would be, I’m afraid I must regretfully decline. |
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
type Msg | |
= SendBatchLogEvents | |
| BatchEventLogSuccessful Int | |
type alias EventData = | |
{ message : String | |
, data : Json.Encode.Value | |
} |
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
export default class MessageLogger { | |
constructor() { | |
this.eventQueue = []; | |
} | |
eventReceived(eventData) { | |
this.eventQueue.push(eventData); | |
} | |
uploadMessages() { |
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
type Msg | |
= PlayVideo VideoId | |
| VideoPlayAdvanced { currentSecond : Int, totalLength : Int } | |
| ReadTextAloud | |
| Login AuthToken UserInformation | |
logMessage : Msg -> Maybe { message : String, data : Json.Encode.Value } | |
logMessage msg = | |
case msg of |
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
type Msg | |
= PlayVideo VideoId | |
| VideoPlayAdvanced { currentSecond : Int, totalLength : Int } | |
| ReadTextAloud | |
| Login AuthToken UserInformation | |
sendLogMessage : Msg -> Cmd Msg | |
sendLogMessage msg = | |
LoggingApi.sendLogEvent (Debug.toString msg) |
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
{- Our regularly scheduled update function. -} | |
update : Msg -> Model -> ( Model, Cmd Msg ) | |
update msg model = | |
ourUpdateFunction | |
{-| | |
An Elm update function takes a new message and the existing model and returns a tuple of the new model and | |
any command(s) to be executed, like above. (Using an alias hopefully makes the type signature below clearer.) | |
-} |
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
type alias Model = | |
{ videoPlaying : Bool | |
, quizState : QuizDataTypeWithQuestionAndAnswerInfo | |
} | |
type Msg | |
= PlayVideo VideoId | |
| QuizAnswerSelected QuestionId AnswerId |
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
playVideo() { | |
this.videoPlayer.play() | |
// eventLogger calls out to the server, which adds data about the | |
// user, their device, their school, etc. etc. etc. | |
eventLogger.log(“Student started video”, { | |
videoId: this.videoPlayer.videoId | |
}) | |
} | |
selectQuizAnswer(questionId, answerId) { |
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
{ | |
"$": "::", | |
"a": { | |
"title": "Too Like the Lightning" | |
}, | |
"b": { | |
"$": "::", | |
"a": { | |
"title": "The Fear of Barbarians" | |
}, |
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
{ | |
"history": [ | |
{ | |
"$": "Decrement", | |
"a": 1 | |
}, | |
{ | |
"$": "Increment", | |
"a": 2 | |
}, |
NewerOlder