Skip to content

Instantly share code, notes, and snippets.

Avatar

mohammad ahsrafuddin ferdousi codeperl

View GitHub Profile
@codeperl
codeperl / BasicMysql.php
Last active Aug 29, 2017
Likhlam bose bose
View BasicMysql.php
<?php
namespace Mysql;
/**
* Class MysqlConnector.
* Wrapper class of mysqli.
*/
class MySqlConnector {
private $connection;
@codeperl
codeperl / js.md
Created Aug 25, 2017 — forked from nuhil/js.md
Javascript Handbook
View js.md

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
View sample.rb
def create
redirect_to page.root_url unless current_user_session.nil?
@forgot_password = Auth::Tableless::ForgotPassword.new(auth_permitted_params.tableless_forgot_password)
if @forgot_password.validate(auth_permitted_params.tableless_forgot_password)
forgot_password_service = Auth::ForgotPasswordService.new
unless forgot_password_service.account_holder?(auth_permitted_params.tableless_forgot_password)
flash.now[:warning] = t('auth.forgot_password.create.warning_message')
render :index