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
int isoption_ok(char *option, char *val) | |
{ | |
char *validOption[] = { | |
"--ip", "--port" | |
}; | |
int i; | |
int j; | |
j = 0; | |
while(validOption[j]){ |
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
#include "my_cat.h" | |
#include <sys/types.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
int my_cat(char *file) | |
{ |
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
public function addPostChanAction(Request $request) | |
{ | |
$session = $request->getSession(); | |
$chanid = $session->get('chanid'); | |
$post = new Post(); | |
$user = $this->getUser(); | |
$form = $this->createForm(new PostChanType(), $post); |
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 Smartnode\TalkBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use JMS\Serializer\Annotation\ExclusionPolicy; | |
use JMS\Serializer\Annotation\Expose; | |
use JMS\Serializer\Annotation\Groups; | |
use JMS\Serializer\Annotation\VirtualProperty; |
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 Smartnode\TalkBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
class ChanType extends AbstractType | |
{ |
NewerOlder