Skip to content

Instantly share code, notes, and snippets.

class gridtest1
{
public static void main (String[] args)
{
int i=0,j=0,grid=10;
while(i<=grid)
{
while(j<=grid)
{
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;
@tbuehlmann
tbuehlmann / gist:5195811
Last active December 15, 2015 03:39 — forked from TvL2386/gist:5195772
require 'popen4'
class Exec
attr_reader :stdout
attr_reader :stderr
attr_reader :status
attr_reader :failure
def initialize *args
@stdout = nil
@tbuehlmann
tbuehlmann / app.rb
Last active December 11, 2015 11:48 — forked from troelskn/app.rb
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'))
class Domain < ActiveRecord::Base
attr_accessible :transport, :name
belongs_to :company
validates :name, new_domain: true, presence: true
end
def create
@tbuehlmann
tbuehlmann / Gemfile
Last active December 10, 2015 01:28 — forked from anonymous/Gemfile
source 'http://rubygems.org/'
gem 'sinatra', '~> 1.3.0'
gem 'thin'
gem 'haml'
%u Στοιχεία για λέξη #{@word}
Αρ. Καταχώρισης: #{@id}
Sha1: #{@sha1}
Web ranking: #{@wr} at date: #{@wrd}
require 'rubygems'
require 'sinatra/base'
require 'person'
require 'csv'
require 'pp'
class Application < Sinatra::Base
def self.empty_arrays
set :people, []
set :pups, []
<%= 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>
= image_tag((news.image || 'noimageavailable.jpg'), :width => 180, :height => 150, :style => 'float:left;margin-right: 10px;')