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
| { | |
| "ClientInfo": { | |
| "UserName": "{{username}}", | |
| "Password": "{{password}}", | |
| "Version": "v1.0", | |
| "AccountNumber": "{{account_number}}", | |
| "AccountPin": "{{account_pin}}", | |
| "AccountEntity": "JKT", | |
| "AccountCountryCode": "ID" | |
| }, |
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
| npm init -y | |
| npm install express dotenv nodemon | |
| touch app.js | |
| touch server.js | |
| echo "import app from './app.js' | |
| const port = process.env.APP_PORT || 3000 | |
| app.listen(port, () => { |
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
| # Dependency directories | |
| node_modules/ | |
| # Environment configuration files | |
| .env | |
| # Logs | |
| logs/ | |
| *.log | |
| npm-debug.log* |
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
| /* | |
| Josh's Custom CSS Reset | |
| https://www.joshwcomeau.com/css/custom-css-reset/ | |
| */ | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| * { |
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
| { | |
| "$schema": "https://json.schemastore.org/prettierrc", | |
| "semi": false, | |
| "tabWidth": 2, | |
| "singleQuote": true, | |
| "printWidth": 100, | |
| "trailingComma": "none" | |
| } |
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
| /** | |
| * Generates a Fibonacci sequence of a given length. | |
| * @param {number} length - The length of the Fibonacci sequence to generate. | |
| * @returns {number[]} - The Fibonacci sequence as an array. | |
| */ | |
| function fibonacci(length) { | |
| let fibArr = [0, 1] | |
| for (let i = 2; i < length; i++) { | |
| fibArr.push(fibArr[i - 2] + fibArr[i - 1]) | |
| } |
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
| const skills = ['react', 'mysql', 'typescript', 'nodejs'] | |
| skills.pop() | |
| skills.push('javascript') | |
| skills.shift() | |
| skills.unshift('html') | |
| console.log(skills.map((skill) => skill.toUpperCase())) | |
| const numbers = [2, 2] | |
| const sum = numbers.reduce(function (accumulator, currentValue) { | |
| return accumulator + currentValue |
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\Observers; | |
| use App\Journal; | |
| use Illuminate\Support\Facades\Log; | |
| class JournalObserver | |
| { | |
| public function creating(Journal $journal): void |
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 | |
| $finder = PhpCsFixer\Finder::create() | |
| ->in([ | |
| __DIR__ . '/app', | |
| __DIR__ . '/config', | |
| __DIR__ . '/database', | |
| __DIR__ . '/routes', | |
| __DIR__ . '/tests', | |
| ]); |
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
| ; This file is for unifying the coding style for different editors and IDEs. | |
| ; More information at http://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_style = space | |
| end_of_line = lf | |
| insert_final_newline = true |
NewerOlder