This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* YII USAGE | |
* ============= | |
* $this->widget('ext.dBug.dBug', array("item"=> variable [,forceType] )); | |
* $this->widget('ext.dBug.dBug', array("item"=> $myVariable )); | |
Outputs colored and structured tabular variable information. | |
Variable types supported are: Arrays, Classes/Objects, Database and XML Resources. | |
Ability to force certain types of output. Example: You can force an object variable to be outputted as an array type variable. | |
Stylesheet can be easily edited. | |
Table cells can be expanded and collapsed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jQuery Stepbystep plugin | |
* http://www.tinysay.com/ | |
* | |
* Copyright 2012, Tamer Agaoglu | |
* Licensed under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* Date: Tuesday 27 Nov 2012 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* jQuery Stepbystep plugin | |
* http://www.tinysay.com/ | |
* | |
* Copyright 2012, Tamer Agaoglu | |
* Licensed under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* | |
* Date: Tuesday 27 Nov 2012 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am tamert on github. | |
* I am tagaoglu (https://keybase.io/tagaoglu) on keybase. | |
* I have a public key ASApBvVMdkjzlHuMef-LphvWryn3oJRgiY8npVkX4xIz0Qo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# * operator | |
def order_pizza(*pizzas) | |
return pizzas | |
end | |
puts order_pizza('Bora', 'Tolga', 'Sevil') | |
# * operator - into Object | |
def frameworks(*lovers) | |
return lovers | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# * operator | |
def order_pizza(*pizzas): | |
for i in range(len(pizzas)): | |
print(i, pizzas[i]) | |
order_pizza('Bora', 'Tolga', 'Sevil') | |
# * operator | |
def frameworks(*lovers): | |
for i in range(len(lovers)): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Content: | |
def __init__(self, title, body): | |
self.title = title | |
self.body = body | |
def show(self): | |
return "baslik: %s icerik: %s" % (self.title, self.body) | |
news = Content("datca", "gercekten guzel bir sehir") | |
print(news.show()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Content: | |
def __init__(self, title, body): | |
self.title = title | |
self.body = body | |
def show(self): | |
return "baslik: %s icerik: %s" % (self.title, self.body) | |
class Page(Content): | |
def __init__(self, title, body, date): | |
super().__init__(title, body) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// src/Entity/News.php | |
namespace App\Entity; | |
use ApiPlatform\Core\Annotation\ApiResource; | |
use Symfony\Component\Serializer\Annotation\Groups; | |
/** | |
* @ApiResource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\DoctrineExtension; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryCollectionExtensionInterface; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryItemExtensionInterface; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
use App\Entity\News; | |
use Doctrine\ORM\QueryBuilder; | |
use Symfony\Component\Security\Core\Security; |
OlderNewer