Skip to content

Instantly share code, notes, and snippets.

View gopibabus's full-sized avatar
🏠
Working from home

gopibabu gopibabus

🏠
Working from home
View GitHub Profile
@gopibabus
gopibabus / ArithmeticExpressions.java
Last active April 3, 2023 15:46
Java Programming language
package com.tmhcc;
public class Main {
public static void main(String[] args)
{
//Arithmetic Operators and Type Casting
int result = (int)10 + (int)3;
result = 10 / 3;
result = 10 % 3;
result++;
<?php
$idsToFilter = array(1,2,3,4);
$member->getComments()->filter(
function($entry) use ($idsToFilter) {
return in_array($entry->getId(), $idsToFilter);
}
);
class PostsController
{
    #[Route("/api/posts/{id}", methods: ["GET"])]
    public function get($id) { /* ... */ }
}
@gopibabus
gopibabus / aws_config.md
Last active March 1, 2022 16:04
AWS Config

AWS Configuration

EBS Application Creation (If using Multi-Container Docker Platform)

Go to AWS Management Console and use Find Services to search for Elastic Beanstalk

Click “Create Application”

Set Application Name to 'multi-docker'

@gopibabus
gopibabus / .bash_profile
Last active February 21, 2022 05:48
Bash Alias File
if [ -f ~/.bashrc ];
then . ~/.bashrc;
fi
@gopibabus
gopibabus / sublime-settings.json
Last active March 22, 2022 04:51
Sublime Settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
"fade_fold_buttons": false,
"font_face": "JetBrains Mono",
"font_size": 14,
"highlight_line": true,
"highlight_modified_tabs": true,
"line_padding_bottom": 2,
@gopibabus
gopibabus / ynab-toolkit.json
Last active March 22, 2022 04:46
YNAB Toolkit Settings
[
{
"key": "AccountsDisplayDensity",
"value": false
},
{
"key": "AccountsEmphasizedInflows",
"value": false
},
{
@gopibabus
gopibabus / .htaccess
Last active March 7, 2022 17:17
This is sample .htaccess file to define custom routing
# Turn Rewrite Engine On
RewriteEngine on
# Rewrite for subjects.php
RewriteRule ^custom$ subjects.php [NC,L]
# NC makes the rule non case sensitive
# L makes this the last rule that this specific condition will match
# $ in the regular expression makes the matching stop so that "custom123!" will not work