Skip to content

Instantly share code, notes, and snippets.

View awolad's full-sized avatar
😎
Cool

Awolad hossain awolad

😎
Cool
View GitHub Profile
// Extension: beautify, Material icon theme, Material theme, Atom one dark, vtuer
// Options: auto save enabled, Vue file formatting: "vetur.format.defaultFormatter.html": "js-beautify-html" (https://github.com/vuejs/vetur/issues/543)
------------------------------------------------------------------------------------------
// setting from Japanese during working on igs - grow-academic-dashboard
{
"editor.formatOnSave": true,
"workbench.colorTheme": "Atom One Dark",
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 16,
1. TypeScript - Handbook
2. iview UI
3. VueJS
4. Vuex
5. @package vue-property-decorator
1. TypeScript - Handbook
2. iview UI
3. VueJS
4. Vuex
5. @package vue-property-decorator
@awolad
awolad / atom-configuration.js
Last active November 15, 2018 08:58
Atom Configuration
@ Packages:
# atom-beautify
# fonts: my favorite fonts: Source Code Pro Medium
# platformio-ide-terminal
# atom-typescript
# file-icons
@ My favorite themes:
# UI theme: One Light
# Syntax theme: One Light
<?php
$attendanceArray = [];
$fp = fopen(request()->attendance, 'rb');
while ( ($line = fgets($fp)) !== false) {
//echo "$line<br>";
//$line = explode(' ', $line);
$line = explode("\t", $line);
array_push($attendanceArray, $line);
var total = 1102688;
var totalToBDformat = total.toLocaleString('bn-BD', { minimumFractionDigits: 2 }); // ১১,০২,৬৮৮.০০
var numbers = {
'০': 0,
'১': 1,
'২': 2,
'৩': 3,
'৪': 4,
'৫': 5,
SELECT
s.date,
s.project_id,
pm.property_name,
s.stock_type,
s.category_id,
c.title,
s.sub_category_id,
sc.sub_category_name,
s.item_id,
<?php
//method one
function taka_format($amount = 0)
{
$tmp = explode('.', $amount); // for float or double values
$strMoney = '';
$divide = 1000;
$amount = $tmp[0];
$strMoney .= str_pad($amount % $divide, 3, '0', STR_PAD_LEFT);
@awolad
awolad / dynamicTrAddRemove.js
Created February 11, 2018 07:02
Dynamically increase / decrease Table row based on input field value using jQuery
var slNo = 1;
$(function () {
$('#no_of_passenger').on('keyup', function (e) {
var noOfPassenger,
rowCount,
extraRow,
rowObj;
@awolad
awolad / tally.js
Created February 7, 2018 05:03
Get sum of subtotal
function tally(selector, tdClass) {
$(selector).each(function () {
var total = 0,
column = $(this).siblings(selector).andSelf().index(this);
$(this).parents().prevUntil(':has(' + selector + ')').each(function () {
total += parseFloat($('td.'+ tdClass +':eq(' + column + ')', this).html()) || 0;
})
$(this).html('<strong>' + total + '</strong>');
});
}