Skip to content

Instantly share code, notes, and snippets.

View sachinrana95's full-sized avatar

Sachin Rana sachinrana95

View GitHub Profile
@sachinrana95
sachinrana95 / testing.md
Created February 26, 2018 10:18
Testing

Testing

@sachinrana95
sachinrana95 / generate_log.php
Created February 22, 2018 05:30
Generate log in logs file
<?php
/**
* Method for generate log for api,, Get request and response.
* Need to create 'logs.log' blank file where you want to generate log.
*@param array, pass the array.
*/
function _log($data, $logType = "INFO") {
$file = __DIR__."/logs.log";
if (count($data) && file_exists($file) && is_writable($file)) {
@sachinrana95
sachinrana95 / log.php
Created December 15, 2017 14:16
Generate logs for api
<?php
/**
* Method for generate log for api,, Get request and response.
* Need to create 'logs.log' blank file where you want to generate log.
*@param array, pass the array.
*/
function _log($data, $logType = "INFO") {
$file = __DIR__."/logs.log";
if (count($data) && file_exists($file) && is_writable($file)) {
@sachinrana95
sachinrana95 / get_current_time.php
Created December 15, 2017 13:58
Get user currect time
<!DOCTYPE html>
<html lang="en">
<head>
<title>All Posts</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
@sachinrana95
sachinrana95 / test_sublime.md
Created December 11, 2017 13:05
This is test gist create from sublime

Test create gist from sublime

@sachinrana95
sachinrana95 / responsive_table.md
Last active March 9, 2024 15:47
this code for responsive table with pagination and search bar...it is helpfull for responsive table

#Responsive table with pagination and search bar....

<!DOCTYPE html>   
<html lang="en">   
<head>   
<meta charset="utf-8">   
<title>Responsive Table</title>   
<meta name="description" content="Bootstrap.">  
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">   
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Membership Form</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/datepicker/jquery-ui.css">
<script src="css/datepicker/jquery.min.js"></script>
<script src="css/datepicker/jquery-ui.min.js"></script>
</head>
<body>

#this is membership from...

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Membership Form</title>
  <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>

#Country Dropdown(select option) list in html with title and value

<select>
	<option value="Afghanistan" title="Afghanistan">Afghanistan</option>
	<option value="Åland Islands" title="Åland Islands">Åland Islands</option>
	<option value="Albania" title="Albania">Albania</option>
	<option value="Algeria" title="Algeria">Algeria</option>
	<option value="American Samoa" title="American Samoa">American Samoa</option>
	<option value="Andorra" title="Andorra">Andorra</option>

#Country dropdown(select option) in html

<!-- Country dropdown list --!>
<select>
    <option value="Afghanistan">Afghanistan</option>
    <option value="Albania">Albania</option>
    <option value="Algeria">Algeria</option>
    <option value="American Samoa">American Samoa</option>
    <option value="Andorra">Andorra</option>
    <option value="Angola">Angola</option>