Skip to content

Instantly share code, notes, and snippets.

View Swader's full-sized avatar
🏠
Buidling

Bruno Škvorc Swader

🏠
Buidling
View GitHub Profile
@Swader
Swader / main.js
Created December 16, 2012 02:21
DeSkin 1.1 main.js revamped
var readyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
clearInterval(readyStateCheckInterval);
var element = document.getElementById('watch7-video-container');
if (element != undefined || element) {
var new_element = document.createElement(element.nodeName);
new_element.id = element.id;
element.id = element.id + "_deskin";
element.style.paddingLeft = '225px';
@Swader
Swader / .gitignore
Created January 31, 2013 21:26
Probably the most robust .gitignore file I could conjure up
# Project folders and files
upload/
upload/*
vendor/
vendor/*
# IntelliJ - PhpStorm and PyCharm
.idea
.idea/
.idea/*
@Swader
Swader / cipp_03.php
Created February 3, 2013 20:22
CI++ article gist 03
<?php
$c = new Cache($config);
$c->save($id, $outputcontent, $timeToLive);
?>
@Swader
Swader / cipp_06.html
Created February 3, 2013 20:24
CI++ article gist 06
<h1>This is my site and my name is Bruno</h1>
@Swader
Swader / cipp_07.php
Created February 3, 2013 20:24
CI++ article gist 07
<?php
$this->view->prependToTitle('My Controller - ');
?>
@Swader
Swader / cipp_05.php
Created February 3, 2013 20:23
CI++ article gist 05
<?php
$this->view->tagValueSet('name', 'Bruno');
$this->view->render();
?>
@Swader
Swader / cipp_01.php
Created February 3, 2013 20:20
CI++ article gist 01
<?php
$this->getGetParam('param1', $defaultValue, 'alnum');
?>
@Swader
Swader / cipp_08.html
Last active December 12, 2015 02:59
CI++ article gist 08
<style type="text/css">
#loginform_main {
border: 1px solid silver;
border-radius: 10px;
padding: 10px;
margin: auto;
}
#loginform_main label {
display: inline-block;
width: 200px;
@Swader
Swader / cipp_09.php
Created February 3, 2013 20:27
CI++ article gist 09
<?php
$this->view->data['key'] = $value
?>
@Swader
Swader / cipp_02.php
Created February 3, 2013 20:22
CI++ article gist 02
<?php
$this->output->cache(n);
?>