My Recent Pastes (238123 and counting)
All Pasties (over 238,123 and counting)
Pages: 1 … 6068 6069 6070 6071 6072 … 11907
Below are summaries of the most recent pasties.
January 31, 2008
9:08AM EDT
View more (20 lines)
1 2 3 4 5 |
jon@drone:~/Projects/blankpad/blog$ rake aok (in /home/jon/Projects/blankpad/blog) /usr/lib/ruby/gems/1.8/gems/merb-0.5.3/lib/merb/version.rb:45: warning: already initialized constant RELEASE Connecting to database... rake rcov |
January 31, 2008
9:05AM EDT
View more (13 lines)
1 2 3 4 5 |
## the html <form class="main_form" method="post" id="login_form"> <input name="username" id="username" type="text" value="" /> <input name="password" id="password" type="password" value="" /> <input name="confirm_login" id="confirm_login" type="submit" class="submit" value="Entra" /> |
January 31, 2008
9:04AM EDT
View more (11 lines)
1 2 3 4 5 |
metaWeblog.newMediaObject (blogid, username, password, struct) returns struct The blogid, username and password params are as in the Blogger API. The struct must contain at least three elements, name, type and bits. |
January 31, 2008
9:04AM EDT
View more (8 lines)
1 2 3 4 5 |
## the html <form class="main_form" method="post" id="login_form"><label for="username">Username</label><input name="username" id="username" type="text" value="" /><label for="password">Password</label><input name="password" id="password" type="password" value="" /><input name="confirm_login" id="confirm_login" type="submit" class="submit" value="Entra" /><input name="form_id" id="form_id" type="hidden" value="login" /></form> ## the ruby code require 'net/http' |
January 31, 2008
8:58AM EDT
View more (69 lines)
1 2 3 4 5 |
class ChangeMaker def make_change amount, coins return nil if amount == 0 return nil if coins.size == 0 |
January 31, 2008
8:55AM EDT
View more (8 lines)
1 2 3 4 5 |
case a[:vline] <=> b[:vline] when -1 -1 when 1 1 |
January 31, 2008
8:53AM EDT
View more (32 lines)
1 2 3 4 5 |
## Task model class Task < ActiveRecord::Base belongs_to :user end |
January 31, 2008
8:51AM EDT
1 2 3 |
%w(Admin Operator Seller Reseller Customer Number).each do |account_type| define_method("is_#{account_type.downcase}?") { is_a?(account_type.constantize) } end |
January 31, 2008
8:51AM EDT
View more (26 lines)
1 2 3 4 5 |
module Jcrb class ClassFile alias :__methods :methods include Unpackable |
January 31, 2008
8:48AM EDT
1 2 3 |
def is_admin_or_operator_or_seller? is_admin? || is_operator? || is_seller? end |
January 31, 2008
8:37AM EDT
View more (96 lines)
1 2 3 4 5 |
AUDIOVIDEO GROUP Il gruppo di server dedicati all’audiovideo meritano un discorso a parte in quanto le macchine dedicate a questo servizio sono presenti sulla intranet, sulla dmz fino a coinvolgere due server fisici presenti al Caspur. ENCODER02 HP Proliant DL360 G2 |
January 31, 2008
8:31AM EDT
1 2 3 4 5 |
// Hello word :) new UI.Window({theme: "mac_os_x", shadow: true, width: 200, height: 150}).setContent("Hello World!").show(); |
January 31, 2008
8:27AM EDT
View more (232 lines)
1 2 3 4 5 |
require 'socket' require 'ServerDyn.rb' include ServerDyn |
January 31, 2008
8:26AM EDT
View more (231 lines)
1 2 3 4 5 |
require 'socket' require 'ServerDyn.rb' include ServerDyn |
January 31, 2008
8:23AM EDT
1 2 |
// Hello word :) new UI.Window({theme:"mac_os_x", shadow: true, width: 200, height:150}).setContent("Hello World!").show(); |
January 31, 2008
8:22AM EDT
View more (102 lines)
1 2 3 4 5 |
## plugin.h /* plugin.h - Interface to the plugin subsystem */ |
January 31, 2008
8:21AM EDT
View more (7 lines)
1 2 3 4 5 |
# create a hash from an array with keys and an array with values # you can set default or provide a block just as with Hash::new def Hash.zip(keys, values, default=nil, &block) hash = block_given? ? Hash.new(&block) : Hash.new(default) keys.zip(values) { |k,v| hash[k]=v } |
January 31, 2008
8:14AM EDT
View more (29 lines)
1 2 3 4 5 |
$globalque = Queue.new class RooServer < TServer # This is where all the client/server io is managed, the core control of our server. def process #n = Login.new |
Pastie