_Mozart Event Component - Observer Pattern (https://github.com/FaizalPribadi/Event)
This file contains 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
import { | |
GraphQLSchema, | |
GraphQLObjectType, | |
GraphQLList, | |
GraphQLString, | |
GraphQLID, | |
GraphQLBoolean, | |
GraphQLNonNull, | |
GraphQLInt | |
} from 'graphql'; |
This file contains 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
// This configuration for React - Redux Project | |
// With hot reloaded by react-hot-loader | |
const path = require('path'); | |
const webpack = require('webpack'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const nodeEnv = process.env.NODE_ENV ? 'production' : 'development'; | |
const isProd = nodeEnv === 'production'; |
This file contains 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 | |
class Configuration | |
{ | |
public function setting(array $settings) | |
{ | |
var_dump($settings); | |
} | |
} |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<h1>Hello <span class="name"></span></h1> | |
<script> | |
var require = { | |
paths: { |
This file contains 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 | |
/** | |
* Terminal Coloring | |
* For windows - linux - mac | |
* | |
* @author Faizal Pribadi | |
*/ | |
class TerminalColor | |
{ | |
protected $availableColors; |
This file contains 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 | |
use Mozart\Library\Annotations as Mozart; | |
class User | |
{ | |
/** | |
* @Mozart\Inject("Mapper") | |
*/ | |
protected $mapper; |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://mozart.com/xml/schema" | |
targetNamespace="http://mozart.com/xml/schema" elementFormDefault="qualified"> | |
<xs:annotation> | |
<xs:documentation><![CDATA[ | |
Mozart schema service DTD XML | |
Authors: Faizal Pribadi | |
]]></xs:documentation> | |
</xs:annotation> | |
This file contains 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
$systemLoader = new \Twig_Loader_Filesystem(__DIR__ . '/Resources/templates'); | |
$twig = new \Twig_Environment($systemLoader); | |
$twig->addExtension(new PanadaExtension()); | |
$template = $twig->loadTemplate('index.html'); | |
echo $template->render($_REQUEST); |
This file contains 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 YourApp; | |
/* | |
* This file is a part of Mozart PHP Small MVC Framework | |
* | |
* (c) Faizal Pribadi <faizal_pribadi@aol.com> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* |
NewerOlder