Skip to content

Instantly share code, notes, and snippets.

View gregbarcza's full-sized avatar

Greg Barcza gregbarcza

View GitHub Profile
@gregbarcza
gregbarcza / gist:4035067
Created November 7, 2012 22:46
OOP feladat
<?php
/*
TOVÁBBI INFÓ AZ ABSTRACT CLASSRÓL:
http://aleembawany.com/2010/04/03/understanding-abstract-classes-in-php/
*
*/
abstract class Jarmu {
function fogyasztas() {
@gregbarcza
gregbarcza / gist:4035416
Created November 7, 2012 23:43
Php amőba gyakorló feladat
<?php
/*
*
FELADAT LEÍRÁSA
Készíts egy egyszerü amőba programot. Rakni úgy lehessen hogy megadod az x illetve az y kordinátákat, illetve hogy milyen karaktert használ a játékos. Ezeket a program adatbázisban tárolja.
A játék "rajzolásához" használj táblázatot.
Minta URL: apps.dcw.hu/amoba/
SQL: apps.dcw.hu/amoba/amoba.sql
*
*/
DEBUG - 2012-11-16 21:55:46 --> Model Class Initialized
DEBUG - 2012-11-16 21:55:46 --> File loaded: system/cms/modules/settings/language/hungarian/settings_lang.php
DEBUG - 2012-11-16 21:55:46 --> Language file loaded: language/hungarian/global_lang.php
DEBUG - 2012-11-16 21:55:46 --> File loaded: system/cms/modules/users/language/hungarian/user_lang.php
DEBUG - 2012-11-16 21:55:46 --> File loaded: system/cms/modules/files/language/english/files_lang.php
DEBUG - 2012-11-16 21:55:46 --> File loaded: system/cms/modules/modules/models/module_m.php
DEBUG - 2012-11-16 21:55:46 --> Model Class Initialized
DEBUG - 2012-11-16 21:55:46 --> Database Forge Class Initialized
DEBUG - 2012-11-16 21:55:46 --> Database Forge Class Initialized
DEBUG - 2012-11-16 21:55:46 --> Database Forge Class Initialized
<?
function update_slug(){
$this->load->helper('url');
$entries=$this->db->get('TABLE')->result();
foreach($entries as $entry){
$slug=url_title($entry->NAME,'-',TRUE);
$this->db->update('TABLE',array('SLUG'=>$slug),array('id'=>$entry->id));
}
}
<?php
public function streams_attribute($param, $default = NULL)
{
$value = $this->attribute($param, $default);
// See if we have any vars in there
if(strpos($value, '[') !== FALSE):
$segs = array(
'segment_1' => $this->uri->segment(1,$this->attribute('segment_def')),
8-7+7*0+2/2
8-7+(7*0)+(2/2)
8-7+0+1
1+0+1
2
<?php
$this->load->helper(array('string','array'));
$pass = random_string();
$this->load->driver('Streams');
$profile_validation = $this->streams->streams->validation_array('profiles', 'users');
$assignments = $this->streams->streams->get_assignments('profiles', 'users');
//var_dump($profile_validation);
@font-face {
font-family: 'Kaushan Script';
font-style: normal;
font-weight: 400;
src: local('Kaushan Script'), local('KaushanScript-Regular'), url(http://themes.googleusercontent.com/static/fonts/kaushanscript/v1/qx1LSqts-NtiKcLw4N03ILDH3ri20rYH10B2w3wbVeU.woff) format('woff');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
bármelyik jó
parapark a legrégebbi
klasszikus
most a legújabb amit az olivér bátyja csinált és az ilyen prémium
az meg a Funlock
árban ugyanaz kb mint a többi
csak igényes berendezéssel
a többi inkább lepukkant
kivel mennél?
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$.get("demo.php",function(data,status){
alert("Data: " + data + "\nStatus: " + status);