Skip to content

Instantly share code, notes, and snippets.

View olleolleolle's full-sized avatar
🙌
In sunny Malmö in Sweden 🌞

Olle Jonsson olleolleolle

🙌
In sunny Malmö in Sweden 🌞
View GitHub Profile
@olleolleolle
olleolleolle / rake.diff
Created February 23, 2010 21:15
rake-tasks/se-ide.rb.diff
Index: rake-tasks/se-ide.rb
===================================================================
--- rake-tasks/se-ide.rb (revision 8426)
+++ rake-tasks/se-ide.rb (working copy)
@@ -5,6 +5,7 @@
files = []
task :setup_proxy do
+ mkdir "ide/src/extension/content-files"
if unix?
@olleolleolle
olleolleolle / small_fixes_in_testrunner.diff
Created February 23, 2010 22:01
Avoiding redeclaring variables.
Index: /Users/olle/opensource/js/selenium-read-only/ide/src/extension/content/editor.js
===================================================================
--- /Users/olle/opensource/js/selenium-read-only/ide/src/extension/content/editor.js (revision 8426)
+++ /Users/olle/opensource/js/selenium-read-only/ide/src/extension/content/editor.js (working copy)
@@ -130,7 +130,7 @@
setTimeout("editor.showLoadErrors()", 500);
this.registerRecorder();
-}
+};
@olleolleolle
olleolleolle / desc_for_se_ide_raketasks.diff
Created February 25, 2010 23:42
Add "desc" calls, and move a mkdir around, to have it for both Win32 and Unix
Index: rake-tasks/se-ide.rb
===================================================================
--- rake-tasks/se-ide.rb (revision 8429)
+++ rake-tasks/se-ide.rb (working copy)
@@ -4,7 +4,9 @@
base_ide_dir = File.expand_path(File.dirname(Dir.glob("Rakefile")[0]))
files = []
+ desc "Prepare the development environment for the Selenium IDE Firefox plugin"
task :setup_proxy do
@olleolleolle
olleolleolle / Rough Guide to the Rakefile.markdown
Created February 25, 2010 23:50
Micro-manual for the beginning Selenium user

Using the Rakefile tasks for Selenium

Getting started using the Selenium build system can be tough. Here are a few pointers to the Rake tasks that you can use.

There are quite a lot more tasks in there than rake --tasks shows you. This walkthrough introduces some of the tasks.

Tasks that help Selenium IDE (Firefox extension)

Setting up to develop for Selenium IDE

Index: code/SphinxSearch/SphinxSearch.js
===================================================================
RCS file: /cvsroot/sphinxsearch/code/SphinxSearch/SphinxSearch.js,v
retrieving revision 1.3
diff -u -r1.3 SphinxSearch.js
--- code/SphinxSearch/SphinxSearch.js 17 Feb 2010 03:52:24 -0000 1.3
+++ code/SphinxSearch/SphinxSearch.js 2 Mar 2010 12:06:48 -0000
@@ -11,7 +11,7 @@
var cnt = input.form.elements.length;
@olleolleolle
olleolleolle / bug49349.phpt
Created March 10, 2010 22:49
(it does not yet run right...) PHPT test file for gettext functionality, see bug http://bugs.php.net/bug.php?id=49349 and http://qa.php.net/write-test.php
--TEST--
#49349: gettext behaves differently in php 5.3.0 (5.2.x ignored setlocale errors)
--SKIPIF--
<?php
if (!extension_loaded("gettext")) {
die("skip\n");
}
--FILE--
<?php
$lang = 'en'; //"fi" or "en"
@olleolleolle
olleolleolle / jslint_with_juicer.py
Created March 11, 2010 16:08
jslint.py: Here is my take on bash scripting: using Python's subprocess module.
#!/usr/bin/env python
import subprocess
import fnmatch
import os
import os.path
from string import Template
from optparse import OptionParser
import webbrowser
import string
import datetime
@olleolleolle
olleolleolle / serial_writer.py
Created March 23, 2010 20:31 — forked from qzio/serial_writer.py
Message writer for a... cool thing
#!/usr/bin/env python
import serial
import struct
from optparse import OptionParser
parser = OptionParser(usage="hurra")
parser.add_option("-p",default="hello world")
diff --git a/bin/trac b/bin/trac
index 33bc8a2..993e1d9 100755
--- a/bin/trac
+++ b/bin/trac
@@ -61,6 +61,9 @@ command [:newticket] do |c|
c.desc 'component'
c.flag [:c,:component]
+ c.desc 'milestone'
+ c.flag [:m,:milestone]
=== modified file 'plugin/npapi/scriptable-test.html'
--- plugin/npapi/scriptable-test.html 2010-04-15 20:19:54 +0000
+++ plugin/npapi/scriptable-test.html 2010-04-19 08:56:51 +0000
@@ -1,282 +1,245 @@
<html>
<head>
- <title>Scriptable Plugin Test</title>
+ <title>Gnash: Scriptable Plugin Test</title>
+ <style type="text/css" media="screen">
+ body, * {font-family:sans-serif;}