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
<!-- | |
-- Licensed under the MIT license [http://www.opensource.org/licenses/mit-license.php] | |
-- Copyright (c) 2013 by Belanton, Inc. All Rights Reserved. | |
--> | |
<html> | |
<head> | |
<title>Belanton | Codes | Scripts | Request Env Variables</title> | |
<meta name="description" content="https://gist.github.com/leonardomarques/3873420f180d51a17854"> | |
<meta name="keywords" content="Belanton,team,web,development,Ruby,Rails,ERB,HTML,request,env,environment,variables"> | |
<meta name="author" content="Leonardo Marques - Belanton Team [http://www.belanton.com]"> |
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
<!-- | |
-- Licensed under the MIT license [http://www.opensource.org/licenses/mit-license.php] | |
-- Copyright (c) 2013 by Belanton, Inc. All Rights Reserved. | |
--> | |
<html> | |
<head> | |
<title>Belanton | Codes | Scripts | Rake Routes</title> | |
<meta name="description" content="https://gist.github.com/leonardomarques/39079af10483c1f6d096"> | |
<meta name="keywords" content="Belanton,team,web,development,Ruby,Rails,ERB,HTML,rake,routes"> | |
<meta name="author" content="Leonardo Marques - Belanton Team [http://www.belanton.com]"> |
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
<!-- | |
-- Licensed under the MIT license [http://www.opensource.org/licenses/mit-license.php] | |
-- Copyright (c) 2013 by Belanton, Inc. All Rights Reserved. | |
--> | |
<html> | |
<head> | |
<title>Belanton | Codes | Scripts | Paper Trail Versions</title> | |
<meta name="description" content="https://gist.github.com/leonardomarques/10afbd987bd712cd14db"> | |
<meta name="keywords" content="Belanton,team,web,development,Ruby,Rails,ERB,HTML,paper,trail,versions"> | |
<meta name="author" content="Leonardo Marques - Belanton Team [http://www.belanton.com]"> |
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
/** | |
* Miscellaneous JavaScript for focus on the first visible field of the first form. | |
* | |
* @namespace Belanton.Codes.Scripts | |
* @see https://gist.github.com/leonardomarques/f743541353e7d4148852 | |
* @author Leonardo Marques <leonardo.marques@belanton.com> | |
* @license Licensed under the MIT license [http://www.opensource.org/licenses/mit-license.php] | |
* @copyright Copyright (c) 2013 Belanton, Inc. [http://www.belanton.com] | |
*/ |
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
### | |
# JSON script in Jbuilder declaration for getting object fields. | |
# | |
# @namespace Belanton.Codes.Rails.Jbuilder | |
# @see https://gist.github.com/leonardomarques/d40ecd7a63a30b314444 | |
# @author Leonardo Marques <leonardo.marques@belanton.com> | |
# @license Licensed under the MIT license [http://www.opensource.org/licenses/mit-license.php] | |
# @copyright Copyright (c) 2013 Belanton, Inc. [http://www.belanton.com] | |
### |
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
Action and Fragment caching supported by Rails.cache, working like caching in HTML templates: |
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
<table> | |
<tr> | |
<td valign="top">2/4/2013</td> | |
<td> | |
<dl class="dl-activities"> | |
<dt> | |
<button type="button" class="btn btn-mini btn-success disabled" disabled="disabled"> | |
<i class="icon-plus icon-white"></i> | |
</button> | |
</dt> |
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
body { | |
margin: 0; | |
} | |
#full > img { | |
display: block; | |
float: left; | |
width: 50vw; | |
height: 50vh; | |
object-fit: cover; |
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
<head> | |
... | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!--[if lt IE 9]> | |
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | |
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
<![endif]--> | |
</head> |
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
Add and remove row dynamically. |
OlderNewer