Paweł Lenart hrwath

View HookHandler.php
1 2 3 4 5 6 7 8 9 10
<?php
 
class HookSentry_HookHandler {
public function __construct() {}
/**
* Kontroler: index
* Akcja: index
* Trigger: default
*
View gist:2936547
1 2 3 4 5 6 7 8 9 10
var fsButton = document.getElementById('fsbutton'),
container = document.getElementById('canvas');
 
 
if (window.fullScreenApi.supportsFullScreen) {
fsButton.style.display = 'block';
 
fsButton.addEventListener('click', function() {
if (fsButton.className == 'fs-off') {
window.fullScreenApi.requestFullScreen(container);
View gist:2837884
1 2 3 4 5 6 7 8 9 10
<?php
 
require_once SITE_PATH . 'inc/lib/DatabaseDriver.class.php';
 
abstract class BaseModel extends DatabaseDriver implements ArrayAccess, Iterator {
protected $tablename = null;
 
private $schema;
protected $attributes = array();
private $is_new = true;
View gist:2261642
1 2 3 4 5 6 7 8 9 10
<?php
 
require_once SITE_PATH . 'inc/lib/DatabaseDriver.class.php';
 
abstract class BaseModel extends DatabaseDriver implements ArrayAccess {
protected $tablename = null;
 
private $schema;
private $attributes = array();
private $is_new = true;
View gist:2150884
1 2 3 4 5 6 7 8 9 10
<?php
/**
* Eurotax Valuation Webservice Handler
*
* This class allows connecting to Eurotax Webservice, fetching dictionary data
* and request vehicle valuation.
*
* Usage example:
* <code>
* <?php
View gist:1220366
1 2 3 4 5 6 7 8 9 10
function createUploader(){
var uploader = new qq.FileUploader({
element: document.getElementById('file-uploader'),
action: '../include/upload/upload.php',
debug: false,
onSubmit: function() {
$("#su_name, #su_company, #su_project, #su_email").css('border', '0');
if ($("#su_name").val() == "" ||
View gist:1033356
1 2 3 4 5 6 7 8 9 10
class CommentsController < ApplicationController
before_filter :load_project
before_filter :assign_user
def create
@comment = @project.comments.new(params[:comment])
if @comment.save
redirect_to @project, :notice => 'Comment has been added'
else
redirect_to @project, :alert => 'Unable to add a comment'
View gist:921418
1 2 3 4 5 6 7 8 9 10
pawel@plenart-pc:~$ vim -v
Error detected while processing /home/pawel/.vimrc:
line 1:
E319: Sorry, the command is not available in this version: syntax enable
Error detected while processing /home/pawel/.vim/colors/solarized.vim:
line 286:
E319: Sorry, the command is not available in this version: let colors_name = "solarized"
line 395:
E319: Sorry, the command is not available in this version: let s:none = "NONE"
line 396:
View gist:840587
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html>
<html>
<head>
<meta name="author" content="Paweł Lenart" /><meta name="keywords" content="HTML, CSS, JavaScript, PHP, MySQL, PostgreSQL, Ruby, Rails" />
<title class="exceptional">Programmer</title>
</head>
<body>
Here's my <a href="mailto:pawel@lenart.pl">email</a>.
You can also call me on <span class="mobile">+48 664 134 697</a>.
</body>
View gist:808075
1
@current_user ||= User.find(session[:user_id])
Something went wrong with that request. Please try again.