This file contains hidden or 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
class gridtest1 | |
{ | |
public static void main (String[] args) | |
{ | |
int i=0,j=0,grid=10; | |
while(i<=grid) | |
{ | |
while(j<=grid) | |
{ |
This file contains hidden or 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
import java.util.Scanner; | |
class dreizehn4 | |
{ | |
public static void main (String[] args) | |
{ | |
Scanner in=new Scanner(System.in); | |
int str=42,life=42,luck=42; | |
String name; | |
boolean a=false; |
This file contains hidden or 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 'popen4' | |
class Exec | |
attr_reader :stdout | |
attr_reader :stderr | |
attr_reader :status | |
attr_reader :failure | |
def initialize *args | |
@stdout = nil |
This file contains hidden or 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 'gollum/frontend/app' | |
require 'digest/sha1' | |
User = Struct.new(:name, :email, :password_hash) | |
class App < Precious::App | |
configure do | |
set :authorized_users, [] | |
settings.authorizes_users << User.new('peter', '[email protected]', Digest::SHA1.hexdigest('pw')) | |
settings.authorizes_users << User.new('andrew', '[email protected]', Digest::SHA1.hexdigest('another_pw')) |
This file contains hidden or 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
class Domain < ActiveRecord::Base | |
attr_accessible :transport, :name | |
belongs_to :company | |
validates :name, new_domain: true, presence: true | |
end | |
def create |
This file contains hidden or 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
source 'http://rubygems.org/' | |
gem 'sinatra', '~> 1.3.0' | |
gem 'thin' | |
gem 'haml' |
This file contains hidden or 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
%u Στοιχεία για λέξη #{@word} | |
Αρ. Καταχώρισης: #{@id} | |
Sha1: #{@sha1} | |
Web ranking: #{@wr} at date: #{@wrd} |
This file contains hidden or 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 'sinatra/base' | |
require 'person' | |
require 'csv' | |
require 'pp' | |
class Application < Sinatra::Base | |
def self.empty_arrays | |
set :people, [] | |
set :pups, [] |
This file contains hidden or 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
<%= form_for @tbl_providers_connection_info do |f| %> | |
<%= field_set_tag nil, :class => 'sectionwrap' do %> | |
<p> | |
<%= f.label :ssl_enabled, 'SSL Enabled:' %> | |
<%= f.check_box :ssl_enabled %> | |
</p> | |
<p> | |
<%= f.label :keystore, 'Keystore:' %> | |
<%= f.text_field :keystore %> | |
</p> |
This file contains hidden or 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
= image_tag((news.image || 'noimageavailable.jpg'), :width => 180, :height => 150, :style => 'float:left;margin-right: 10px;') |