Skip to content

Instantly share code, notes, and snippets.

@ayoy
ayoy / rspec-syntax-cheat-sheet.rb
Created June 2, 2012 20:46 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
@ayoy
ayoy / frameworkdeployqt.pl
Created May 10, 2009 17:24
A helper script for deploying frameworks that use Qt libraries on MacOS X
#!/usr/bin/env perl
#
###########################################################################
# frameworkdeployqt.pl v.1.0.1 - a script for deploying frameworks #
# that are using Qt libs #
# #
# Copyright (C) 2009 Dominik Kapusta <d@ayoy.net> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
diff --git a/inc/tweet.h b/inc/tweet.h
index dc1afe5..5b8cfa5 100644
--- a/inc/tweet.h
+++ b/inc/tweet.h
@@ -126,6 +126,11 @@ public:
void setState( Tweet::State state );
/*!
+ Clears a star icon (if one is shown) from the Tweet.
+ */
@ayoy
ayoy / pl_PL.ts
Created February 9, 2009 16:55
Polish translation for antico
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS><TS version="1.1" language="pl_PL">
<defaultcodec></defaultcodec>
<context>
<name>Antico</name>
<message>
<location filename="../src/antico.cpp" line="690"/>
<source>&lt;b&gt;Quit the WM&lt;/b&gt;</source>
<translation>&lt;b&gt;Zakończyć menedżer okien?&lt;/b&gt;</translation>
</message>
QSettings settings( "HKEY_CLASSES_ROOT\\http\\shell\\open\\command", QSettings::NativeFormat );
QProcess *browser = new QProcess;
browser->start( settings.value( "Default" ).toString() + " " + address );