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 Terbilang | |
{ | |
public static function generate($angka) { | |
$angka = (float)$angka; | |
$bilangan = array( | |
'', | |
'satu', | |
'dua', |
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
module.exports = { | |
vendor_js: [ | |
// 'node_modules/path/to/vendor/**/*.js' | |
], | |
vendor_css: [ | |
// 'node_modules/path/to/vendor/**/*.css' | |
], | |
fonts: [ | |
// 'node_modules/**/*.{ttf,woff,woff2,eot,svg}' | |
], |
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
#!/bin/bash | |
# Zipping Git Directory | |
# Usage: | |
# __THIS_FILE__ [ project_name ] [ version ] | |
# | |
# project_name -- default to directory name | |
# version -- default to latest version | |
# | |
# Timer from (http://www.linuxjournal.com/content/use-date-command-measure-elapsed-time) | |
# |
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
# app/config/config_dev.yml | |
# NelmioAliceBundle setting (boleh ditempatkan diakhir file) | |
nelmio_alice: | |
locale: 'id_ID' # Default locale for the Faker Generator (id_ID untuk Indonesia Bahasa Indonesia) | |
seed: 1 # Value used make sure Faker generates data consistently across | |
# runs, set to null to disable. | |
functions_blacklist: # Some Faker formatter may have the same name as PHP | |
- 'current' # native functions. PHP functions have the priority, | |
- 'date' # so if you want to use a Faker formatter instead, | |
# blacklist this function here |
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 | |
// app/AppKernel.php | |
class AppKernel extends Kernel | |
{ | |
// ... | |
public function registerBundles() | |
{ | |
// ... | |
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { |
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
doctrine/orm:^2.5 | |
doctrine/doctrine-bundle:^1.6 | |
doctrine/doctrine-fixtures-bundle:^2.4 | |
nelmio/alice:^3.0@RC |
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 | |
// src/AppBundle/DataFixtures/ORM/AppFixtures.php | |
namespace AppBundle\DataFixtures\ORM; | |
use Doctrine\Bundle\FixturesBundle\Fixture; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Nelmio\Alice\Loader\SimpleFileLoader; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
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
# src/AppBundle/DataFixtures/ORM/fixtures/admin.yml | |
AppBundle\Entity\Admin: | |
admin{1..2}: | |
name: '<firstName()> <lastName()>' | |
gender: '<myGender()>' | |
birthplace: '<city()>' | |
birthdate: '<dateTime()>' | |
user: '@userAdmin<current()>' |
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 | |
// src/AppBundle/DataFixtures/ORM/CustomProvider/CustomFakerProvider.php | |
namespace AppBundle\DataFixtures\ORM\CustomProvider; | |
use AppBundle\Utils\Config; | |
use Faker\Generator; | |
use Faker\Provider\Base; | |
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; | |
use Symfony\Component\Security\Core\User\UserInterface; |
OlderNewer