Skip to content

Instantly share code, notes, and snippets.

View kodi's full-sized avatar

Dragan Bajcic kodi

View GitHub Profile
<html>
<head>
<style type="text/css">
table{
border-collapse:collapse;
}
table td{
border:solid 1px #cacaca;
}
@kodi
kodi / gist:187651
Created September 15, 2009 21:15
usage of timeout in Object Oriented Javascript
<html>
<head>
<script type="text/javascript">
var Counter=function(){
//public properties
this.counter=1;
this.resultDiv=document.getElementById('result');
//methods
1)tabela tipovi-karakteristika
id |ime
---------------------------
1 |proizvodjac
2 |rezolucija
3 |color spaces
2)tabekla karakteristike
function index(){
$this->_switchHome();
}
function _indexAdmin(){
#show view
$this->view->show("home-admin");
<?php
echo '
<form class="cmxform" id="form1" name="form1" method="post" action="photoUploadedDatabase">
<ol>
<li>
<img class="uploadedImage" src="' . SMALL_IMAGE . $imageName . '" alt="Uploaded photo" />
</li>
<li>
<label for="pictureTitle">Picture title</label>
<input type="text" name="pictureTitle" id="pictureTitle" value="" />
@kodi
kodi / gist:824650
Created February 13, 2011 12:35
Webarto's Database Class
<?php
/**
* @author Webarto
* @copyright 2010
*/
class Database{
public $q = 0;
public $debug = "";
@kodi
kodi / gist:897382
Created March 31, 2011 22:20
javascript & jquery multiple event listeners
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#button').click(function() {
FOO.trigger('buttonPushed', {bar:32});
@kodi
kodi / gist:1721466
Created February 2, 2012 04:24
QL Config
// Hardware cfg - Generated by QUAKE LIVE. Do not modify
unbindall
bind TAB "+scores"
bind SPACE "+moveup"
bind + "sizeup"
bind - "sizedown"
bind 1 "weapon 1"
bind 2 "weapon 2"
bind 3 "weapon 3"
bind 4 "weapon 4"
@kodi
kodi / gist:2363195
Created April 11, 2012 22:29
spoon zoom script
// BEGIN GENERATED ZOOM SCRIPT
// Generated by dan5's zoom script generator
// http://zoomscriptql.heroku.com/
// Allows zooming in and out using the mouse wheel for Quake Live.
//
// Date: Wed Apr 11 22:29:00 UTC 2012
//
// Step 1: Save this file to your Quake Live directory to a file called zoomscript.cfg
// Step 2: Run zoomscript.cfg or put 'exec zoomscript.cfg' in your autoexec.cfg
set default_fov "cg_fov 121";
var EarPods360 = AC.Class({
initialize: function (g, i, h, j, l, k) {
if (AC.Environment.Feature.supportsCanvas()) {
this._element = $(g);
this._captions = null;
this._showOnScroll = new AC.ShowOnScroll(this._element);
this._showOnScroll.setDelegate(this);
this._flow = null;
this._fps = j;
this._scrubRotateDistance = l;