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
| include js file: http://connect.facebook.net/en_US/all.js | |
| // load facebook api | |
| $('<div id="fb-root"></div>').appendTo("body"); | |
| FB.init({ | |
| appId : '168055643260227', | |
| status : true, // check login status | |
| cookie : true, // enable cookies to allow the server to access the session | |
| xfbml : true // parse XFBML | |
| }); |
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
| include js file: http://connect.facebook.net/en_US/all.js | |
| // load facebook api | |
| $('<div id="fb-root"></div>').appendTo("body"); | |
| FB.init({ | |
| appId : '168055643260227', | |
| status : true, // check login status | |
| cookie : true, // enable cookies to allow the server to access the session | |
| xfbml : true // parse XFBML | |
| }); |
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();*/ |
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
| /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
| 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
| # 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
| # 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" |