This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function numFormat($number) { | |
if(!$number){ | |
return $number; | |
} | |
$abbrevs = array(18 => "Q", 15 => "q", 12 => "t", 9 => "B", 6 => "M", 3 => "K", 0 => ""); | |
foreach($abbrevs as $exponent => $abbrev) { | |
if($number >= pow(10, $exponent)) { | |
$display_num = $number / pow(10, $exponent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dataImport() { | |
var pathData = 'https://gist.githubusercontent.com/cryocaustik/cc33ed8db15683160bf64d4981f7c3f2/raw/1fa0c63dd79a4b3e976798ca48a098147d27917f/csv_test'; | |
var jsonData; | |
$.ajax({ | |
url: pathData, | |
async: false, | |
success: function(data) { | |
_data = data.split('\n').slice(1); | |
for (var row_indx in _data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
col1,col2,col3,col4 | |
row1val1,row1val2,row1val3,row1val4 | |
row2val1,row2val2,row2val3,row2val4 | |
row4val1,row4val2,row4val3,row3val4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css?family=Artifika'); | |
@import url('https://fonts.googleapis.com/css?family=Ubuntu:300'); | |
.message-text{ | |
font-size: 1.1em !important; | |
} | |
.markup{ | |
font-family: 'Ubuntu', 'Segoe UI light' !important; | |
} |
NewerOlder