_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
" Disable valadoc syntax highlight | |
"let vala_ignore_valadoc = 1 | |
" Enable comment strings | |
let vala_comment_strings = 1 | |
" Highlight space errors | |
let vala_space_errors = 1 | |
" Disable trailing space errors | |
"let vala_no_trail_space_error = 1 |
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
*mangle | |
:PREROUTING ACCEPT [25:1778] | |
:INPUT ACCEPT [25:1778] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [37:1889] | |
:POSTROUTING ACCEPT [35:1400] | |
-A PREROUTING -p tcp -m tcp --sport 21 -j TOS --set-tos 0x08/0xff | |
-A PREROUTING -p udp -m udp --sport 21 -j TOS --set-tos 0x08/0xff | |
-A PREROUTING -p tcp -m tcp --sport 20 -j TOS --set-tos 0x08/0xff | |
-A PREROUTING -p udp -m udp --sport 20 -j TOS --set-tos 0x08/0xff |
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> | |
NewerOlder