Skip to content

Instantly share code, notes, and snippets.

View tayfunoziserikan's full-sized avatar
💭
Simple is perfect

Tayfun (Öziş) Erikan tayfunoziserikan

💭
Simple is perfect
View GitHub Profile
@tayfunoziserikan
tayfunoziserikan / gist:1748569
Created February 6, 2012 00:30
ext js 4 dataview grouping
Ext.create('Ext.XTemplate',
'<h1>Active Users</h1>',
'<tpl for=".">',
'<tpl if="active == true">',
'<div class="users">',
'<p>{name}</p>',
'</div>',
'</tpl>',
'</tpl>',
'<h1>Deactive Users</h1>',
@tayfunoziserikan
tayfunoziserikan / gist:1694212
Created January 28, 2012 12:57
Ext JS 4 XTemplate Loop Breaking
new Ext.XTemplate( // Kiosk modu
'<ul id="finished-list">',
'<tpl for=".">',
'<tpl if="xindex == 1">',
'<li><span class="info"></span><strong class="important">{description}</strong> başvurmanızı öneririz.</span></li>',
'</tpl>',
'</tpl>',
'</ul>'
) :
$searchQuery = Doctrine_Core::getTable('Model_Entity_City')
->search($this->_request->query);
$searchIds = array();
foreach ($searchQuery as $result) {
$searchIds[] = $result['id'];
}
// DQL
$query = Doctrine_Query::create()
@tayfunoziserikan
tayfunoziserikan / gist:1554368
Created January 3, 2012 10:21
Server-ror-client-html-files
<!-- login.html.erb -->
<script type="text/javascript">Kebab.boot('Kebab.login.Application', 'http://static.kebab.local', ''); </script>
<!-- desktop.html.erb -->
<script type="text/javascript">Kebab.boot('Kebab.desktop.Application', 'http://static.kebab.local', '');</script>
@tayfunoziserikan
tayfunoziserikan / gist:1545938
Created January 1, 2012 01:48
Kebab bootstrap code review version
/* -----------------------------------------------------------------------------
Kebab Project 2.x (Kebab Revolution) - Web OS Client Platform for Ext JS 4.x
http://kebab-project.com
Copyright (c) 2011-2012 lab2023 - internet technologies TURKEY Inc.
http://www.lab2023.com
----------------------------------------------------------------------------- */
/**
* Prepare environment, enable loader an boot kebab automatically
*
@tayfunoziserikan
tayfunoziserikan / gist:1538900
Created December 30, 2011 09:11
desktop.html
<!--
Kebab Project 2.0.0 (Kebab Revolution)
http://kebab-project.com
Copyright (c) 2011-2012 lab2023 - internet technologies TURKEY Inc.
http://www.lab2023.com
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@tayfunoziserikan
tayfunoziserikan / gist:1521079
Created December 26, 2011 12:47
Kebab web os index
<!--
Kebab Project 2.0.0 (Kebab Revolution)
http://kebab-project.com
Copyright (c) 2011-2012 lab2023 - internet technologies TURKEY Inc.
http://www.lab2023.com
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@tayfunoziserikan
tayfunoziserikan / gist:1521071
Created December 26, 2011 12:32
Kebab and bootstrap
/* -----------------------------------------------------------------------------
Kebab Project 2.x (Kebab Revolution) - Web OS Client Platform for Ext JS 4.x
http://kebab-project.com
Copyright (c) 2011-2012 lab2023 - internet technologies TURKEY Inc.
http://www.lab2023.com
----------------------------------------------------------------------------- */
/**
* Prepare environment, enable loader an boot kebab automatically
*
@tayfunoziserikan
tayfunoziserikan / gist:1510290
Created December 22, 2011 13:20
Ext JS 4 Ajax Requester
<!--
Copyright (c) 2011-2012 lab2023 - internet technologies TURKEY Inc.
http://www.lab2023.com
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Ext JS 4 Ajax Requester</title>
@tayfunoziserikan
tayfunoziserikan / gist:1164784
Created August 23, 2011 10:10
Ext JS 4 Multiple MVC
app
-controller
-view
-model
-module
-app_a
-controller
-model
-view
-Application.js (module a)