# Set up input file
repeat 10000 echo "." >> input
# Run inline
time lein run inline < input > output
# Run async
stub_request(:get, 'https://graph.facebook.com/search').with(:query => hash_including({"query" => "mytestquery"})).to_return(:body => "{}") | |
/////////////////// | |
TypeError: can't convert RR::WildcardMatchers::HashIncluding into String | |
webmock (1.8.7) lib/webmock/request_pattern.rb:97:in `+' | |
webmock (1.8.7) lib/webmock/request_pattern.rb:97:in `add_query_params' | |
webmock (1.8.7) lib/webmock/request_pattern.rb:135:in `add_query_params' |
' | |
' Q B a s i c N i b b l e s | |
' | |
' Copyright (C) Microsoft Corporation 1990 | |
' | |
' Nibbles is a game for one or two players. Navigate your snakes | |
' around the game board trying to eat up numbers while avoiding | |
' running into walls or other snakes. The more numbers you eat up, | |
' the more points you gain and the longer your snake becomes. | |
' |
/ .*(?:#{shard}).* /i |
(ns my-transducers.core | |
(:require [clojure.core.async :as async])) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Understanding Transducers | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; | |
;; This is the source code for the blog post Understanding Transducers, found | |
;; here: http://elbenshira.com/blog/understanding-transducers | |
;; |
Documentation that covers the Polls API with constrained topics. The example poll below is powered a stream's constrained topics, and all keyword management will be through the streams UI.
How to create a poll powered by constrained topics (in development):
- Enable the "Polls (in development)" feature in https://massrelevance.com/admin/users/YOUR_ID
- Go to https://massrelevance.com/platform/manage/ and create a new poll.
- In the Poll UI, select the "Sync with a stream's constrained topic" option, and choose the stream from the drop-down.
- Navigate to the stream to manage constrained topics. The poll options will reflect the stream's constrained topics.
This is a principled approach to programming. We use Ruby as the delivery language, but the things you learn here applies to all programming languages. What you learn will be important in your day-to-day Ruby programming, but my primary goal is for you to understand common, important concepts of computation.
Ruby made unfortunate mistakes in its design—mistakes that we Ruby programmers have to deal with on a daily basis. Of course, we get used to those mistakes and start to think of them as "features" or "that's just how those things work." I will often "ignore" those mistakes at first so that you will understand the fundamental idea. The mistakes are edge cases that we have to worry about, but they should not get in your way of learning. Hence why some people (mainly people with exposure to Ruby) will consider the order of things very odd.
Type the examples into IRB and complete every exercise. Merely reading will not give you true understanding.
Important vocabulary are in bold.