Skip to content

Instantly share code, notes, and snippets.

94c94
< virtual int ramReadBlocking(unsigned int address,unsigned int nb,unsigned int delta,int timeout=4000,ubichipcoordaxis_t ubichipX=0,ubichipcoordaxis_t ubichipY=0);
---
> virtual int ramReadBlocking(unsigned int address,unsigned int nb,unsigned int delta,ubichipcoordaxis_t ubichipX=0,ubichipcoordaxis_t ubichipY=0,int timeout=4000);
--- /home/asok/.wine/drive_c/Program Files/HEIG-VD/Ubichip Manager/src/ubimanager/runninginterfaceproxy.h 2010-03-25 09:47:26.000000000 +0100
+++ runninginterfaceproxy.h 2010-03-25 12:56:27.774671050 +0100
@@ -91,7 +91,7 @@
virtual int ramRead(unsigned int address,unsigned int nb,unsigned int delta,ubichipcoordaxis_t ubichipX=0,ubichipcoordaxis_t ubichipY=0);
- virtual int ramReadBlocking(unsigned int address,unsigned int nb,unsigned int delta,int timeout=4000,ubichipcoordaxis_t ubichipX=0,ubichipcoordaxis_t ubichipY=0);
+ virtual int ramReadBlocking(unsigned int address,unsigned int nb,unsigned int delta,ubichipcoordaxis_t ubichipX=0,ubichipcoordaxis_t ubichipY=0,int timeout=4000);
virtual int ramWrite(unsigned int address,unsigned int nb,unsigned int delta,unsigned int *data,ubichipcoordaxis_t ubichipX=0,ubichipcoordaxis_t ubichipY=0);
--- /home/asok/.wine/drive_c/Program Files/HEIG-VD/Ubichip Manager/src/ubimanager/runninginterfaceproxy.cpp 2010-03-25 09:47:26.000000000 +0100
+++ runninginterfaceproxy.cpp 2010-03-25 13:02:21.146728891 +0100
@@ -543,7 +543,7 @@
return ramReadBlocking(address,nb,delta,ubichipX,ubichipY);
}
-int RunningInterfaceProxy::ramReadBlocking(unsigned int address,unsigned int nb,unsigned int delta,int timeout,ubichipcoordaxis_t ubichipX,ubichipcoordaxis_t ubichipY)
+int RunningInterfaceProxy::ramReadBlocking(unsigned int address,unsigned int nb,unsigned int delta,ubichipcoordaxis_t ubichipX,ubichipcoordaxis_t ubichipY,int timeout)
{
PREPAREBLOCK(COMMAND_RAMCONTENTREQUEST);
require 'net/pop'
class Droms::ReplyMailerJob
def perform
logger = RAILS_DEFAULT_LOGGER
if (Droms::Configuration[:email_settings][:use_ssl])
Net::POP3.enable_ssl(OpenSSL::SSL::VERIFY_NONE)
port = 995
else
(defmacro sformat/macro (template values)
`(sformat
,template
(lambda (key) (plist-get ,values (intern key)))))
(sformat/macro
"help ${name}! I'm ${malady}"
'(name "nic" malady "on fire"))
@asok
asok / gist:4352610
Last active December 10, 2015 00:39
Scenario: html-erb-mode not working
Given I have master of mmm-mode in "~/mmm-mode" directory
And I have file "test.el" with content:
'''
(add-to-list 'load-path "~/mmm-mode/")
(require 'mmm-auto)
(require 'mmm-erb)
(setq mmm-global-mode 'auto)
@asok
asok / gist:4352818
Last active December 10, 2015 00:39
Scenario: html-erb-mode not working
Given I have master of mmm-mode in "~/mmm-mode" directory
And I have file "test.el" with content:
'''
(add-to-list 'load-path "~/mmm-mode/")
(require 'mmm-auto)
(require 'mmm-erb)
(setq mmm-global-mode 'auto)
diff --git a/rspec-mode.el b/rspec-mode.el
index 29c0d28..e7c5431 100644
--- a/rspec-mode.el
+++ b/rspec-mode.el
@@ -153,6 +153,11 @@
:type 'string
:group 'rspec-mode)
+(defcustom rspec-compilation-in-comint-mode nil
+ "t when compilation buffer should be in Comint mode with `compilation-shell-minor-mode'"
@asok
asok / have_enqueued_job.rb
Last active January 4, 2016 20:20
Modified "have_enqueued_job" matcher to handle case when `Sidekiq::Testing` is disabled.
module RSpec
module Sidekiq
module Matchers
def have_enqueued_job *expected_arguments
HaveEnqueuedJob.new expected_arguments
end
class HaveEnqueuedJob
def initialize expected_arguments
@expected_arguments = expected_arguments
var create = function(entries) {
$.each($.grep(entries, function(_entry){ return _entry.fields.company }),
function(key, entry) {
var li = $(document.createElement('li'));
li.append($('<h3>' + entry.fields.company + '</h3>'));
li.append($('<span>' + entry.fields.years + '</span>'));
li.append($('<h4>' + entry.fields.position + '</h4>'));
li.append($('<p>' + entry.fields.jobDescription + '</p>'));