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
Feature: Programme page | |
As a visitor | |
I want to be able to see the programme page | |
So that I can view professors that teach in the programme | |
Scenario: List of professors | |
Given I have a programme | |
And the programme has a professor "Peter Legiša" | |
And the programme has a professor "Slavko Amon" | |
When I go to the programme page |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Context> | |
<Resource name="jdbc/vaja7" | |
auth="Container" type="javax.sql.DataSource" | |
maxActive="100" maxIdle="30" maxWait="10000" | |
username="vaja7" password="vaja7" | |
driverClassName="com.mysql.jdbc.Driver" | |
url="jdbc:mysql://localhost:3306/vaja7"/> | |
</Context> |
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
# view | |
- form_tag(update_details_faculty_programme_lectureship_path(@faculty, @programme, @lectureship), :html => { :multipart => true }) do | |
... | |
%p | |
= label_tag :photo, "Photo" | |
%br | |
= file_field_tag :photo | |
%p | |
= submit_tag "Submit" |
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
# view | |
- form_tag(update_details_faculty_programme_lectureship_path(@faculty, @programme, @lectureship), :html => { :multipart => true }) do | |
... | |
%p | |
= label_tag :photo, "Photo" | |
%br | |
= file_field_tag :photo | |
%p | |
= submit_tag "Submit" |
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
# controller | |
class CommentsController < ApplicationController | |
protect_from_forgery :only => [:create, :rate] | |
def rate | |
@comment = Comment.find(params[:id]) | |
vote = -1 | |
if (params[:vote] == "yes") | |
vote = 1 |
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
# controller | |
class CommentsController < ApplicationController | |
protect_from_forgery :only => [:create, :rate] | |
def rate | |
@comment = Comment.find(params[:id]) | |
vote = -1 | |
if (params[:vote] == "yes") | |
vote = 1 |
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
PressKey(0x25); // VK_LEFT | |
PressKey(0x27); // VK_RIGHT | |
PressKey(0x25); // VK_LEFT | |
PressKey(0x27); // VK_RIGHT | |
PressKey(0x28); // VK_DOWN | |
PressKey(0x28); // VK_DOWN | |
PressKey(0x26); // VK_UP | |
PressKey(0x26); // VK_UP | |
PressKey(0x33); // 3 | |
PressKey(0x34); // 4 |
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
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1 | |
LABEL=/boot /boot ext3 defaults 1 2 | |
devpts /dev/pts devpts gid=5,mode=620 0 0 | |
tmpfs /dev/shm tmpfs defaults 0 0 | |
proc /proc proc defaults 0 0 | |
sysfs /sys sysfs defaults 0 0 | |
/dev/VolGroup00/LogVol01 swap swap defaults 0 0 |
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
javascript:(function(){var s=document.createElement('div');s.innerHTML='Loading...';s.style.color='black';s.style.padding='20px';s.style.position='fixed';s.style.zIndex='9999';s.style.fontSize='3.0em';s.style.border='2px solid black';s.style.right='40px';s.style.top='40px';s.setAttribute('class','social_phreak_updatehub_loading');s.style.background='white';document.body.appendChild(s);s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','http://dev.socialphreak.com:3000/javascripts/bookmarklet.js');document.body.appendChild(s);})(); |
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
function testc() | |
{ | |
var elem = $("td.n-Ja-e-A div[role=button]"); | |
/*elem.mouseenter(); | |
elem.mouseover(); | |
elem.mousemove(); | |
elem.addClass("tk3N6e-e-La"); | |
elem.click();*/ |