
require "autospec/reload_css"
require "autospec/base_runner"
require "autospec/simple_runner"
require "autospec/spork_runner"

module Autospec; end

class Autospec::Runner
  MATCHERS = {}
  def self.watch(pattern, &blk)
    MATCHERS[pattern] = blk
  end

  watch(%r{^spec/.+_spec\.rb$})
  watch(%r{^lib/(.+)\.rb$})                           { |m| "spec/components/#{m[1]}_spec.rb" }

  # Rails example
  watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }
  watch(%r{^app/(.*)(\.erb|\.haml)$})                 { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
  watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb" }
  watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }
  watch("app/controllers/application_controller.rb")  { "spec/controllers" }

  # Capybara request specs
  watch(%r{^app/views/(.+)/.*\.(erb|haml)$})          { |m| "spec/requests/#{m[1]}_spec.rb" }

  # Fabrication
  watch(%r{^spec/fabricators/(.+)_fabricator\.rb$})   { "spec" }

  RELOAD_MATCHERS = Set.new
  def self.watch_reload(pattern)
    RELOAD_MATCHERS << pattern
  end

  watch_reload('spec/spec_helper.rb')
  watch_reload('config/(.*).rb')
  watch_reload(%r{app/helpers/(.*).rb})

  def self.run(opts={})
    self.new.run(opts)
  end

  def initialize
    @queue = []
    @mutex = Mutex.new
    @signal = ConditionVariable.new
    start_service_queue
  end

  def run(opts = {})

    puts "Forced polling (slower) - inotify does not work on network filesystems, use local filesystem to avoid" if opts[:force_polling]

    if ENV["SPORK"] == "0"
      puts "Using Simple Runner"
      @runner = Autospec::SimpleRunner.new
    else
      puts "Using Spork Runner"
      @runner = Autospec::SporkRunner.new
    end
    @runner.start

    Signal.trap("HUP") {@runner.stop; exit }
    Signal.trap("SIGINT") {@runner.stop; exit }

    options = {filter: /^app|^spec|^lib/, relative_paths: true}

    if opts[:force_polling]
      options[:force_polling] = true
      options[:latency] = opts[:latency] || 3
    end

    Thread.start do
      Listen.to('.', options ) do |modified, added, removed|
        process_change([modified, added].flatten.compact)
      end
    end

    @mutex.synchronize doQ: GTK+ : keyword can't be an expression this works ok:
#!/usr/bin/env python
import sys, os, time
from gi.repository import Gtk
from gi.repository import GObject
[.. ]
class MyClass(Gtk.Window):
 def __init__(self):
  Gtk.Window.__init__(self,title="My First Class")

but when I want to also set the default dimensions, it comes bleating:
import sys, os, time
from gi.repository import Gtk
from gi.repository import GObject
[.. ]
class MyClass(Gtk.Window):
 def __init__(self):
  Gtk.Window.__init__(self,title="My First Class",default-width='800',default-height='600')

will produce a "SyntaxError: keyword can't be an expression"
I have already type the parameters with single or double quotes, or with none, it doesn't make a difference. Setting other parameters like "resizable" or "decorated" works fine, though.
What am I missing?
Where is there a tutorial or a list of examples that I could have followed to avoid this issue?
TIA,

A: I'm pretty sure you want default_width instead of default-width (the expression the error message is referring to is subtracting 'width' from 'default'). The values should be integers so drop the quotes from there.
&gt; I don't care about minor parties, they have no chance at winning so it would be a complete waste of time.

You clearly have no idea how the political system works in Australia if you believe voting for a minor party is throwing away your vote. &gt; never heard anyone complain about it. No one's complained about it so it must be a good thing. You sound smart.

I'm not sure the snark was necessary. They also didn't say it was good, they just say people don't complain about it. And honestly, no one here does.

For the House of Reps, your vote will flow onto your next preference if they don't win. No harm done, and they're probably get more funding/support next time. Our Senate is done by proportion representation - it's not uncommon for a minor party to get a seat in the Senate.Through one of the buildings on the other side of the island from main group of buildings AFAIK.
Collection of retrofuturistic videos and clips, including some atompunk stuff.
And now for something unusual and wacky.
That was THE most trippy, surreal, psychedelic interpretation of Stevenson's tale, as if Willy Wonka and the Chocolate Factory with Monty Python were combined into one....
Was searching for Soviet animation and this came up. How have I never seen this? This is absolutely incredible and I'm only 10 minutes in. I'll be watching the rest of this studio's work for sure.
When you are Pripyat, but not totally...
Few more from this channel.
Looking forward to new series of LD+R. First series had interesting entertaining shorts.
And more from Leningradskaya oblast' (region around St.Petersburg city).
gee whiz, is that CGI?Last week, on January 25th, 2021, the New Jersey Assembly Military & Veterans Affairs Committee convened to have testimony and debate regarding two new bills that were introduced as a response to the tragic toll COVID-19 had on residents of the Menlo Park and Paramus Veterans Memorial Homes. Our Partner, Paul M. da Costa, who had previously testified before a joint session of the New Jersey Senate Health & Human Services and Assembly Aging & Senior Services Committees on August 13, 2020, once again testified on behalf of his numerous clients who lost loved ones due to COVID-19 at the Menlo Park and Paramus Veterans Memorial Homes.
Mr. da Costa provided testimony in support of the bills, but in doing so emphasized that the bills were only one step in the grand scheme of numerous steps needed to be taken on the long road forward to full accountability. He emphasized that the Committee, and the Legislature as a whole, should conduct investigative hearings to shine the brightest light possible on this very darkest of situations. After Mr. da Costa’s testimony, Assembly Danielson agreed with his calls for investigative hearings. This marks the third time Mr. da Costa has testified in front of the New Jersey Legislature in regard to his representation of the clients. In December 2018, he testified before the Senate Health & Human Services Committee at a hearing convened to investigate the Adenovirus outbreak at The Wanaque Center for Nursing and Rehabilitation where 36 pediatric patients contracted the virus and 11 of the 36 passed away due to complication of the virus. After the hearing, the Legislature passed a bill that was signed by Governor Murphy that, among other things, required long-term care facilities to have infectious disease outbreak plans.
Mr. da Costa, testified on behalf of his more than 90 clients, both families of residents and employees, who were the victims of gross negligence and reckless conduct amidst the COVID-19 pandemic at the Menlo Park and Paramus Veterans Memorial Homes. Mr. da Costa’s testimony starts at 01:18:30 and the full recording of the meeting can be found here.
If you or a loved one have suffered illness or injuries, or have lost a loved one, after contracting COVID-19 at long-term care facilities, please contact Paul M. da Costa, Esq. of Snyder Sarno D’Aniello Maceri & da Costa LLC. You can schedule a consultation via email |||EMAIL_ADDRESS||| or call |||PHONE_NUMBER|||. Mr. da Costa heads the medical malpractice and personal injury department at Snyder Sarno D’Aniello Maceri & da Costa LLC