Permalink
Browse files

Remove pixate_server

  • Loading branch information...
1 parent 853b68c commit 506d009c494bc59635dd984bd7d15f1aeb61ff66 @satococoa committed Feb 11, 2013
Showing with 0 additions and 35 deletions.
  1. +0 −1 Gemfile
  2. +0 −2 Gemfile.lock
  3. +0 −3 app/photos_controller.rb
  4. +0 −29 pixate_server
View
@@ -6,4 +6,3 @@ gem 'motion-cocoapods'
gem 'nano-store'
gem 'motion-testflight'
gem 'motion-pixate'
-gem 'motion-pixate-observer'
View
@@ -29,7 +29,6 @@ GEM
cocoapods (>= 0.14.0)
motion-pixate (1.2)
sass
- motion-pixate-observer (0.2)
motion-testflight (1.4)
multi_json (1.5.0)
multipart-post (1.1.5)
@@ -57,6 +56,5 @@ DEPENDENCIES
bubble-wrap
motion-cocoapods
motion-pixate
- motion-pixate-observer
motion-testflight
nano-store
View
@@ -1,9 +1,6 @@
class PhotosController < UICollectionViewController
- include Motion::Pixate::Observer
-
def viewDidLoad
super
- startObserving
navigationItem.title = 'RubyFriends'
camera_button = UIBarButtonItem.alloc.initWithBarButtonSystemItem(UIBarButtonSystemItemCamera, target:self, action:'camera_tapped')
View
@@ -1,29 +0,0 @@
-#!/usr/local/bin/macruby
-framework "Cocoa"
-require "socket"
-
-cssfile = ARGV[0] || ""
-unless File.exists?(cssfile)
- warn "USAGE : #{$0} css_file_path"
- exit
-end
-
-SERVER_PORT = 8000
-SERVER_NAME = "Pixate CSS Notifier"
-
-netservice = NSNetService.alloc.initWithDomain("", type: "_pixate._tcp", name: SERVER_NAME, port: SERVER_PORT)
-netservice.publish
-
-serv = TCPServer.open("", SERVER_PORT)
-fd = open(cssfile, "r")
-gcdq = Dispatch::Queue.new('pixate')
-mask = Dispatch::Source::VNODE_WRITE | Dispatch::Source::VNODE_EXTEND
-
-while true
- Thread.start(serv.accept) do |sock|
- source ||= Dispatch::Source.new(Dispatch::Source::VNODE, fd, mask, gcdq) do
- fd.rewind
- sock.write(fd.read)
- end
- end
-end

0 comments on commit 506d009

Please sign in to comment.