Development

rubyコード:
result = “0”*8 # 8バイト (enough for two longs)
getCursorXY = Win32API.new(“user32 ...

Development

rubyコード:
require “Win32API”

def system(cmd)
sys = Win32API.new(“crtdll”, “ ...

Development

rubyコード:
require “win32ole”

def ieInputBox( msg, default )
ie = WIN32OLE.new(“Interne ...

Development

rubyコード:
require ‘win32ole’

web_browser = WIN32OLE.new(‘InternetExplorer.Application̵ ...

Development

rubyコード:
require ‘win32ole’

excel = WIN32OLE.new(“excel.application”)
excel = t ...

Development

rubyコード:
def traverse_dir(file_path)
if File.directory? file_path
Dir.foreach(file_path) do |file|
if ...

Development

rubyコード:
require ‘win32ole’

excelobj = WIN32OLE.new(“excel.application”)

exce ...

Development

rubyコード:

require “win32ole”

ws = WIN32OLE.new “MSWinsock.Winsock”

#ローカルIPプロ ...

Development

rubyコード:
require ‘win32ole’

powerobj = WIN32OLE.new(“powerpoint.application”)

Development

rubyコード:
require “opengl”
require “glut”

$light_diffuse =
$light_position = ...

Development

rubyコード:
#!/usr/bin/ruby -w
require ‘wxruby’
class TroutApp < Wx::App
def on_init

Development

rubyコード:

require “gtk”

class SampleWindow < Gtk::Window

def initialize
super

Development

rubyコード:
require ‘yaml’

puts ({ ‘measurements’ => ‘metric’ }.to_yaml ...

Development

rubyコード:
equire ‘yaml’
configuration = { ‘color’ => ‘blue’,
‘ ...

DataBase

SQLコード:
mysql>
mysql>
mysql> DELIMITER//
mysql>
mysql> CREATE FUNCTION myFunction ...

DataBase

SQLコード:
mysql>
mysql> delimiter $$
mysql>
mysql> CREATE PROCEDURE myProc()
-> MODI ...

DataBase

1.CASE WHENで文字列置換処理

Drop table sales;

CREATE TABLE sales(
num MEDIUMINT NOT NULL AUTO_INCREMENT,

DataBase

SQLコード:
mysql>
mysql> delimiter $$
mysql>
mysql> CREATE FUNCTION myFunction
-> (in ...