Skip to content

Instantly share code, notes, and snippets.

View neloy-ahmed's full-sized avatar

neloy-ahmed

View GitHub Profile
@neloy-ahmed
neloy-ahmed / js.md
Created August 25, 2017 08:28 — forked from nuhil/js.md
Javascript Handbook

Javascript Handbook

A hand crafted markdown document contains all major Javascript topics covered, taken from different sources. Brush Up your JS memory.

Comments


Single line comments start with //. For multi-line commands, you use /* ... */

// This is a single line comment
@neloy-ahmed
neloy-ahmed / README.md
Created January 9, 2018 03:14 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@neloy-ahmed
neloy-ahmed / git-feature-workflow.md
Created January 14, 2018 02:19 — forked from blackfalcon/git-feature-workflow.md
Git basics - a general workflow

There are many Git workflows out there, I heavily suggest also reading the atlassian.com [Git Workflow][article] article as there is more detail then presented here.

The two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited.

When using Bash in the command line, it leaves a bit to be desired when it comes to awareness of state. I would suggest following these instructions on [setting up GIT Bash autocompletion][git-auto].

Basic branching

When working with a centralized workflow the concepts are simple, master represented the official history and is always deployable. With each now scope of work, aka feature, the developer is to create a new branch. For clarity, make sure to use descriptive names like transaction-fail-message or github-oauth for your branches.

<?php
abstract class World{
abstract protected function draw_map($country_name);
abstract protected function draw_flag($country_name);
public function show_info(){
print "This is an abstract class for World";
}
}
<?php
interface World{
public function draw_map($country_name);
public function draw_flag($country_name);
}
class Bangladesh implements World{
public function draw_map($country_name){
<?php
interface World{
public function draw_map($country_name);
public function draw_flag($country_name);
//Fatal error: Interface function World::show_info() cannot contain body
public function show_info(){
print "This is an interface for World";
}
}
<?php
interface World{
public function draw_map($country_name);
//Fatal error: Access type for interface method World::draw_flag() must be omitted
protected function draw_flag($country_name);
<?php
abstract class World{
abstract public function show_population($country_name);
abstract protected function draw_map($country_name);
//Fatal error: Abstract function World::draw_flag() cannot be declared private
abstract private function draw_flag($country_name);
public function show_info(){
<?php
interface World{
public function draw_map($country_name);
public function draw_flag($country_name);
const b = 'Interface constant';
//Fatal error: Interfaces may not include member variables
public $var1 = 'hello ' . 'world';