Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 131 lines (99 sloc) 5.75 kb
d64b50b @johm code import
johm authored
1 require 'rubygems'
2 require 'haml'
3 require 'sinatra'
4
5
6
7
8 class Wordlist
9 attr_accessor :words
10
11 def initialize(words)
12 @words=words
13 end
14
15 def pick
16 return "FAIL" if @words.size==0
17 @words=@words.sort_by {rand}
18 @words.pop
19 end
20
21 end
22
23 class Wordlists
24 attr_accessor :things_we_like,:things_we_dont_like,:things_we_do,:symbolic_things,:people_we_dont_like,:things_we_do,:our_things,:things_we_do_to_things,:things_we_dont_do,:describing_good_things,:describing_bad_things,:fancy_words,:how_we_do_things,:happiness,:sadness,:really,:making_things,:plans,:antiplans,:events,:fun_stuff,:dont_do,:get_along,:go_away,:preposition
25
26 def initialize
27 @things_we_like=Wordlist.new(["rupture","insurrection","crisis","social war","zones of indistinction which need no justification","indifference"])
28 @things_we_dont_like=Wordlist.new(["activism","representation","humanism","totality","passivity","banality","fossilization of our desires","mobilization","impotentiality","normalization","absence"])
6876ee1 @backspace "mileu" becomes "milieu"
authored
29 @people_we_dont_like=Wordlist.new(["the milieu","liberalism","the bureaucrats of revolt","anarcho-liberalism"])
d64b50b @johm code import
johm authored
30 @things_we_do=Wordlist.new(["desire","riot","occupy everything"])
31 @our_things=Wordlist.new(["communes","multiplicities","encounters","becomings","zones of offensive capacity","desiring-bodies"])
32 @symbolic_things=Wordlist.new(["burning dumpster","smashed window","moment of friendship","car set aflame","barricaded hallway"])
33 @things_we_do_to_things=Wordlist.new(["destroy","shatter","negate","reject"])
34 @things_we_dont_do=Wordlist.new(["organize","negotiate","make demands","be productive"])
35 @how_we_do_things=Wordlist.new(["in secret","without illusions","for once and for all","absolutely"])
36 @describing_good_things=Wordlist.new(["singular","immanent","inoperative","radical"])
37 @describing_bad_things=Wordlist.new(["homogenous","pathetic","compulsive"])
38 @fancy_words=Wordlist.new(["logic","structure","being","temporality","teleology"])
39 @happiness=Wordlist.new(["joy","ecstasy"])
40 @sadness=Wordlist.new(["misery","catastrophe"])
41 @really=Wordlist.new(["by any means necessary","with every weapon at our disposal","without looking back","at all costs"])
42 @making_things=Wordlist.new(["articulation","construction","elaboration","setting forth","realization"])
43 @plans=Wordlist.new(["plan","project","concept"])
44 @antiplans=Wordlist.new(["a <i>state of exception</i>","a <i>line of flight</i>","an <i>event</i>"])
45 @events=Wordlist.new(["orgies","festivals","conspiracies"])
46 @fun_stuff=Wordlist.new(["destruction","negation"])
47 @get_along=Wordlist.new(["dialogue","criticism","sympathy"])
48 @go_away=Wordlist.new(["scorn","contempt","derision"])
49 @dont_do=Wordlist.new(["refuse","neglect","fail"])
50 @preposition=Wordlist.new(["on","towards"])
51 end
52 end
53
54 def recognize
55 "Confronted with those who #{dont_do} to recognize themselves in our #{events} of #{fun_stuff}, we offer neither #{get_along} nor #{get_along} but only our #{go_away}."
56 end
57
58 def do_something
59 "Our need to #{things_we_do} is less the #{making_things} of a #{plans} than the #{making_things} of #{antiplans}."
60 end
61
62 def in_the
63 "In the #{making_things} of #{our_things}, we #{things_we_do_to_things} those who would have us give up the #{describing_good_things} #{happiness} of #{things_we_like} for the #{sadness} of #{things_we_dont_like}."
64 end
65
66 def title
67 "Leaving #{things_we_dont_like} behind: Notes #{preposition} #{things_we_like}"
68 end
69
70 def break_things
71 "We must #{things_we_do_to_things} all #{things_we_dont_like}&#x2014;<i>#{how_we_do_things}</i>."
72 end
73
74 def this_call
75 "This is a call to #{things_we_like}, not an insistence on #{things_we_dont_like}."
76 end
77
78 def whats_needed
79 "What's needed is not #{things_we_dont_like}, and even far less <i>#{things_we_dont_like}</i>, but a putting-into-practice of #{describing_good_things} #{things_we_like}, a rejection in all forms of the #{fancy_words} of #{things_we_dont_like}."
80 end
81
82 def every_what
83 "Every #{symbolic_things} is a refusal to #{things_we_dont_do}, a blow against the #{fancy_words} of #{people_we_dont_like}, a recognition of the #{describing_good_things} #{fancy_words} inherent in the articulation of #{our_things}."
84 end
85
86 def joke
87 "The #{describing_bad_things} #{things_we_dont_like} proposed to us is like a bad joke, and instead of laughter we respond with #{things_we_like}."
88 end
89
90 def necessary
91 "It is necessary to commence #{how_we_do_things}; not to dream of new ways to #{things_we_dont_do}, but to make manifest the subterranean #{our_things} in the heart of each #{symbolic_things}."
92 end
93
94 def symbols
95 "To those who deride the #{describing_good_things} #{happiness} in a #{symbolic_things} or a #{symbolic_things}, we propose nothing less than to #{things_we_do_to_things} their #{describing_bad_things} #{things_we_dont_like}, #{really}."
96 end
97
98
99
100
101 def method_missing(methId)
102 method_name=methId.id2name.intern
103 if @lists.respond_to? method_name
104 @lists.send(method_name).pick
105 else
106 method_name
107 end
108 end
109
110 get '/stylesheet.css' do
111 content_type 'text/css', :charset => 'utf-8'
112 sass :stylesheet
113 end
114
115
116 get '/' do
117 @lists=Wordlists.new
118 @title=title
119 @sentences=[recognize,do_something,in_the,joke,break_things,this_call,whats_needed,every_what,necessary,symbols].sort_by {rand}
120 @pull_quote=@sentences[0]
121 @shuffled_sentences=@sentences.sort_by {rand}
122 @babble=@shuffled_sentences[0,4].join(" ")
123 @more_babble=@shuffled_sentences[4..7].join(" ")
124 @even_more_babble=@shuffled_sentences[8..@shuffled_sentences.size].join(" ")
125 haml :index
126 end
127
128
129
130
Something went wrong with that request. Please try again.