This file contains 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
define(['angular'], function (angular) { | |
'use strict'; | |
return angular.module('app.common.after-render', []) | |
.directive('afterRender', [ '$timeout', function($timeout) { | |
var def = { | |
restrict : 'A', | |
terminal : true, | |
transclude : false, | |
link : function(scope, element, attrs) { |
This file contains 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
/** | |
* Format decimal value into two decimal in swing | |
* @author: Gayan Virajith | |
* @url: webcreate.lk | |
* @email: gayanvirajith@gmail.com / webcreatelk@gmail.com | |
*/ | |
import javax.swing.JFrame; | |
import javax.swing.JLabel; | |
import java.text.DecimalFormat; |
This file contains 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
/** | |
* Simple typography base css | |
* Author: Gayan Virajith | |
* URL: gayanvirajith@github.io | |
*/ | |
/** | |
* Quick and dirty way to get rid of unnecessary padding | |
* and margins from the various elements. | |
*/ |
This file contains 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
@mixin border-radius($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
-ms-border-radius: $radius; | |
border-radius: $radius; | |
} |
This file contains 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
@mixin transition($args...) { | |
-webkit-transition: $args; | |
-moz-transition: $args; | |
-ms-transition: $args; | |
-o-transition: $args; | |
transition: $args; | |
} |
This file contains 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
<!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"> | |
<title>Html5 Template</title> | |
<!-- Main stylesheet --> | |
<link href="css/style.css" rel="stylesheet"> |
This file contains 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
// ----------------------------------------------------- | |
// Extra small screen / phone | |
$screen-xs: 480px; | |
// Small screen / tablet | |
$screen-sm: 768px; | |
// Medium screen / desktop | |
$screen-md: 992px; |
This file contains 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
"------------------------------------------------------------ | |
" To control the number of space characters that will be inserted when the | |
" Tab key is pressed, set the 'tabstop' option. For example, to insert 4 spaces for a tab | |
"------------------------------------------------------------ | |
set tabstop=4 | |
"------------------------------------------------------------ | |
" makes the spaces feel like real tabs. | |
"------------------------------------------------------------ | |
set softtabstop=4 |
This file contains 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
iptables -I INPUT 1 -p tcp --dport http -j ACCEPT |
This file contains 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
<VirtualHost *:80> | |
DocumentRoot "/home/gayan/dev/html/" | |
ServerName html.local | |
# This should be omitted in the production environment | |
SetEnv APPLICATION_ENV development | |
<Directory "/home/gayan/dev/html/"> | |
Options Indexes MultiViews FollowSymLinks | |
AllowOverride All |
OlderNewer