Skip to content

Instantly share code, notes, and snippets.

View tilhom's full-sized avatar
😎
On vacation

Ilyos Xizr tilhom

😎
On vacation
  • Uzbekistan, Tashkent
View GitHub Profile
<div class="table-responsive" >
<table class="table table-striped" id="employee_table">
<thead class="text-light bg-dark sticky-top">
<tr>
<th width="5%" data-sort="int">ID</th>
<th width="25%" data-sort="string">Name</th>
<th width="35%" data-sort="string">Address</th>
<th width="10%" data-sort="string">Gender</th>
<th width="20%" data-sort="string">Designation</th>
<th width="5%" data-sort="string">Age</th>
@tilhom
tilhom / gist:c83de2e2ab3a42c719c56ebeb054560f
Last active December 4, 2018 16:58
sort search table
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Codeclass Tutorial | Search HTML Table Data by using JQuery</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="
@tilhom
tilhom / gist:351f0f14c86bbff56d305b87140aab20
Last active December 16, 2018 06:15
js invoice maker
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>L2-4</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style type="text/css">table thead {
text-align:center;
}
@tilhom
tilhom / gist:099f3658cc248cb8cefd2d9851c017da
Created March 19, 2019 07:36
to get field names from mysql table
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'committee' AND TABLE_NAME = 'users'