Skip to content

Instantly share code, notes, and snippets.

View umanda's full-sized avatar
🎯
Focusing

Umanda Jayobandara umanda

🎯
Focusing
View GitHub Profile
@umanda
umanda / menu.less
Last active August 29, 2015 14:27
BS3 menu seperate from boader
@darkred : #a70b0b;
.navbar-default{
.navbar-nav{
li:not(:last-child){
a{
.box-shadow (10px 0px 0px -9px @darkred;);
}
}
}
@umanda
umanda / slim_project_init
Created August 28, 2015 05:22
Create Slim project structure in cmd
# mkdir -p slim_bloggin_app/{app/{routes,views},public/{css,js,img}} && cd slim_bloggin_app && touch app/bootstrap.php app/routes.php public/index.php public/.htaccess
# tree -a
.
├── .DS_Store
├── app
│ ├── bootstrap.php
│ ├── routes
│ ├── routes.php
│ └── views
@umanda
umanda / bs3-startup.html
Created August 28, 2015 05:39
bootstrap 3 html starter template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="description" content="">
<meta name="author" content="Umanda Jayobandara">
<link rel="shortcut icon" href="assets/images/ico/favicon.ico">
@umanda
umanda / select_all_tables.sql
Created September 1, 2015 11:02
How to get all table names of a particular database by SQL query?
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_SCHEMA='dbName'
@umanda
umanda / mixins.less
Last active September 2, 2015 10:46
Useful CSS3 LESS Mixins.
/* ---------------------------------------------------------- */
/* */
/* A Less mixine bundle */
/* */
/* http://umandajayobandara.com/ */
/* */
/* */
/* ---------------------------------------------------------- */
@umanda
umanda / css-triangle.css
Created September 9, 2015 06:09
CSS Triangle
/**
<div class="arrow-up"></div>
<div class="arrow-down"></div>
<div class="arrow-left"></div>
<div class="arrow-right"></div>
The idea is a box with zero width and height.
The actual width and height of the arrow is determined by the width of the border.
In an up arrow, for example, the bottom border is colored while the left and right are transparent, which forms the triangle.
@umanda
umanda / .gitignore
Created September 17, 2015 07:10
.gitignore settings for Symfony 2
# Composer
vendor
vendor/*
!public/assets/js/vendor
!public/assets/js/vendor/*
!public/assets/css/vendor
!public/assets/css/vendor/*
composer.phar
composer.lock
@umanda
umanda / fix.js
Created October 14, 2015 09:07
Autocomplete requires you to click twice in iOS after update to 1.11.0
$("#input").autocomplete({
open: function(event, ui) {
$('.ui-autocomplete').off('menufocus hover mouseover mouseenter');
}
});
@umanda
umanda / fix.js
Created October 14, 2015 09:07
Autocomplete requires you to click twice in iOS after update to 1.11.0
$("#input").autocomplete({
open: function(event, ui) {
$('.ui-autocomplete').off('menufocus hover mouseover mouseenter');
}
});
@umanda
umanda / .gitignore
Created October 21, 2015 07:06
Magento gitignore file
.htaccess.sample
.modgit/
.modman/
app/code/community/Phoenix/
app/code/community/Cm/
app/code/core/
app/design/adminhtml/default/default/
app/design/frontend/base/
app/design/frontend/rwd/
app/design/frontend/default/blank/