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
# | |
# An unexpected error has been detected by Java Runtime Environment: | |
# | |
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=4748, tid=3576 | |
# | |
# Java VM: Java HotSpot(TM) Client VM (11.3-b02 mixed mode windows-x86) | |
# Problematic frame: | |
# C 0x00000000 | |
# | |
# If you would like to submit a bug report, please visit: |
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
package info.jjhop.mp | |
import scala.actors._ | |
case class Name(val name:String) { | |
override def toString():String = name | |
} | |
class GreetingsActor extends Actor { | |
def act = { |
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
Hello world! | |
Exception in thread "main" java.lang.NoSuchMethodError: scala.actors.ReactorCanReply$class.$init$(Lscala/actors/ReactorCanReply;)V | |
at info.jjhop.mp.GreetingsActor.<init>(MyProgram.scala:9) | |
at info.jjhop.mp.MyProgram$.main(MyProgram.scala:29) | |
at info.jjhop.mp.MyProgram.main(MyProgram.scala) |
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
render({request.xhr? ? :file : :partial => 'catalog/product_view'}) | |
# jest zamiast tego | |
if request.xhr? | |
render :partial => 'catalog/product_view' | |
else | |
render 'catalog/product_view' | |
end |
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 -w | |
# | |
# Skrypt wysylajacy ostrzezenie do @ALERT_RECIPIENTS jesli | |
# zajetosc powierzchni urzadzenia $MAIL_DEV przekroczy $ALERT_LEVEL | |
# | |
# Last mod: 2007-01-08 | |
# 2007 (C) Copyleft by GDP. | |
use strict; |
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 | |
# | |
$MAIL_DIR = '/var/spool/mail/virtual'; | |
$LS_DOMAIN_CMD = "ls $MAIL_DIR"; | |
$LS_MAILBOXES_IN_DOMAIN_CMD = "ls $MAIL_DIR/"; | |
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
Project.new do |p| | |
p.with_plugins = [:java, :maven, :jetty, :github, :bitbucket ] | |
p.custom_tasks = [:copy_filtered_resources, :copy_filtered_test_resource] | |
p.package = :war | |
p.target_name = "#{p.name}-${p.version}" # domyślna wartość | |
p.name = 'testproject' | |
p.desc = "Longer projects description..." | |
p.version = '1.0-SNAPSHOT' | |
p.homepage = 'http://testproject.org' |
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
Project.new do |p| | |
Task.new do |t| | |
t.name = 'copy_filtered_resources' | |
... | |
end | |
Task.new do |t| | |
t.name = 'copy_filtered_test_resource' | |
... |
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
defmodule GuessingGame do | |
def start do | |
IO.puts("Pomyśl liczbę (z przedziału 1 do 100), gdy będziesz gótów/gotowa wciśnij [ENTER].") | |
IO.read(:stdio, :line) | |
IO.puts("Będę zgadywał a Ty wciśnij | |
< - jeśli Twoja liczba jest mniejsza oraz | |
> - jeśli jest większa, od podanej przeze mnie, | |
= - jeśli zgadłem | |
i cokolwiek innego, gdy masz już dość :)") |
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
package imbir; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import java.io.Serializable; | |
import java.util.Date; |
OlderNewer