Skip to content

Instantly share code, notes, and snippets.

Avatar

Rajitha Bandara rajitha-bandara

View GitHub Profile
View CSS3 Media Queries Template
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
View gist:cfae596d9062f1a1f463c2ea2d48df70
https://www.youtube.com/watch?v=0zhQ52BQQ5s
https://www.metabase.com
apache superset
https://www.spagobi.org/documentation/
https://www.predictiveanalyticstoday.com/open-source-free-business-intelligence-solutions/
https://www.metabase.com/docs/latest/operations-guide/running-the-metabase-jar-file.html
@rajitha-bandara
rajitha-bandara / amazon-ec2-ftp.md
Last active Oct 21, 2018 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
View amazon-ec2-ftp.md
View gist:7ba899c498878fc79e32ee4a2b13c6b3
https://www.koolreport.com
https://github.com/PHPJasper
http://reportico.org/laravel/public/index.php/getting-started
http://www.metabase.com/
apache c
reportserver.net‎
View ngrok
https://helgesverre.com/blog/expose-local-webserver/
View HTML Table Filter with jQuery
function filter_by_project(){
var input, filter, table, tr, td, i;
input = $("#project_filter").val();
filter = input.toUpperCase();
table = document.getElementById("receivings_table");
tr = table.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[3];
if (td) {
View gist:f7527346999ef957b3baabc24d5c9827
http://bootstrap-datepicker.readthedocs.io
$('.datepicker_y_M').datepicker({
format: "M yyyy",
startView: "year",
minViewMode: "months",
autoclose: true
})
View gist:c372d0d9b5e6ac793217494721a671a2
http://shashangka.com/2017/05/17/enable-rdlc-reporting-in-visual-studio-2017/
View gist:e74d5be20541751a06a8187da8f46130
LOAD DATA INFILE 'V:/Downloads/Temp/Homes DB(1).csv'
INTO TABLE land_developers FIELDS TERMINATED BY ',' ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(name, email, phone_1, street, suburb, estate)
@rajitha-bandara
rajitha-bandara / gist:ce5f0f58547f9968b5d8f086b010f36b
Created Jun 3, 2018
Laravel eloquent delete with handling integrity constraint violation
View gist:ce5f0f58547f9968b5d8f086b010f36b
try {
$category->delete();
}
catch (\Illuminate\Database\QueryException $e) {
if($e->getCode() == "23000"){ //23000 is sql code for integrity constraint violation
// return error to user here
}
}