Skip to content

Instantly share code, notes, and snippets.

View ssi-anik's full-sized avatar
💻
Open to remote work!

Syed Sirajul Islam Anik ssi-anik

💻
Open to remote work!
View GitHub Profile
<?php
function getSum($first, $second){
// reverse the inputs
$reversed_first = strrev($first);
$reversed_second = strrev($second);
// get the max string length
$length = strlen($reversed_first) > strlen($reversed_second) ? strlen($reversed_first) : strlen($reversed_second);
// carry will be zero initially
$carry = 0;
// sum array for storing the
@ssi-anik
ssi-anik / calculator.html
Last active June 22, 2016 04:08
simple arithmetic calculator
<!DOCTYPE html>
<html>
<head>
<title>Simple calculator</title>
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="col-md-12" style="margin-top: 70px;">
<div class="col-md-offset-3 col-md-6">
<?php
$template =[
'@name@' => [
'User name',
'Anik',
],
'@email@' => [
'Email',
'[email protected]'
<?php
$template =[
'@name@' => [
'User name',
'Anik',
],
'@email@' => [
'Email',
'[email protected]'
DIPLOBLASTIC
DEFIGURE
LOMBARD
BAHAISM
FUMERELL
ROYALET
TROPHIED
ZEQUIN
MILLWRIGHT
PHOTOGRAPHOMETER
@ssi-anik
ssi-anik / bfs.c
Last active October 22, 2016 17:54
bfs example
#include<stdio.h>
#include<string.h>
int main(){
freopen("graph-representation.txt", "r", stdin);
int graph[100][100];
int node, edge;
memset(graph, 0, sizeof(graph));
scanf("%d %d", &node, &edge);
int i, j;
@ssi-anik
ssi-anik / .zsh_aliases
Last active April 2, 2024 11:23
.zsh*
alias html="cd /var/www/html"
alias phpunit="./vendor/bin/phpunit"
alias tinker="$HOME/.config/composer/vendor/bin/psysh"
alias psysh="$HOME/.config/composer/vendor/bin/psysh"
alias szsh=". ~/.zshrc"
alias activate=activate_python_virtualenv
alias py3=python3
#". /var/www/html/python/env1/bin/activate"
alias sshorder="ssh [email protected]"
alias pbcopy='xclip -selection clipboard'
<?php
class StudentController extends Controller{
public function __construct(FormRepository $formRepository, StudentRepository $studentRepository){
$this->studentRepository = $studentsRepository;
$this->formRepository = $formRepository;
}
public function libraryMethod(Request $request, LibraryRepository $libraryRepository){
$this->studentRepository($libraryRepository);
@ssi-anik
ssi-anik / git_cheat-sheet.md
Created June 2, 2017 16:19 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet