This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use ElkM1::Control; | |
use Switch; | |
use Log::Log4perl qw(:easy); | |
use HTTP::Date; | |
use strict; | |
use File::Basename; | |
use File::Spec; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub main(params) | |
Set WshShell = CreateObject( "WScript.Shell" ) | |
WshShell.Run("ruby C:\PROGRA~1\homeseer\scripts\ThermoLogger.rb " & params ) | |
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# require 'rubygems' | |
require 'mysql' | |
require 'time' | |
puts "[#{File.basename(__FILE__)}] running..." | |
time_in = Time.now | |
time_in_db = time_in.strftime("%Y-%m-%d %H:%M:%S") | |
puts "start time: " << time_in.strftime("%Y-%m-%d %H:%M:%S") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails compass_test | |
cd compass_test/ | |
rake rails:template LOCATION=http://compass-style.org/rails/installer | |
script/generate nifty_scaffold building name:string --haml | |
script/generate nifty_layout --haml | |
rake db:migrate | |
-- added stylesheet_link_tag 'compiled/screen.css' to | |
application.html.haml | |
script/server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
TypeError: can't convert nil into String | |
Backtrace: | |
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/files.rb:94:in `join' | |
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/files.rb:94:in `sassc_filename' | |
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/files.rb:23:in `tree_for' | |
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/plugin.rb:96:in `update_stylesheet' | |
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/plugin.rb:82:in `block (2 levels) in update_stylesheets' | |
/Users/karl/.rvm/gems/ruby-1.9.1-p378/gems/haml-2.2.17/lib/sass/plugin.rb:77:in `each' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# blatantly copied from: http://snippets.dzone.com/posts/show/5449 | |
# but changed to use hamlify instead of html2haml | |
# A little script to convert all your .erb views to .haml using hamlify, | |
# which is included with Haml installation. | |
# Just drop this in your rails root folder and run it. | |
class ToHaml | |
def initialize(path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\rails\ext_test\stree\ext\stree> ruby -v | |
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32] | |
PS C:\rails\ext_test\stree\ext\stree> gcc --version | |
The term 'gcc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin | |
g of the name, or if a path was included, verify that the path is correct and try again. | |
At line:1 char:4 | |
+ gcc <<<< --version | |
+ CategoryInfo : ObjectNotFound: (gcc:String) [], CommandNotFoundException | |
+ FullyQualifiedErrorId : CommandNotFoundException |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef GETDEVICENAME_H | |
#define GETDEVICENAME_H | |
extern "C" { | |
char* GetDeviceName(); | |
}; | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%module daq_test | |
%{ | |
extern char* GetDeviceName; | |
%} | |
extern char* GetDeviceName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DAQROUTINES.CPP | |
// | |
// uses 32bit enh API | |
// | |
// This file contains functions created for the Daq* examples | |
#include <windows.h> | |
#include <stdio.h> | |
#include <conio.h> | |
#include <stdlib.h> |
OlderNewer