- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
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
<?php | |
function sumWeekends($start, $end) { | |
$start_date = strtotime($start); | |
$end_date = strtotime($end); | |
$n = floor(($end_date - $start_date) / 86400); | |
$n_weekends = ceil($n/7); | |
if (date("N", $start_date) == 6 && $n%7 == 0 ){ | |
$n_weekends++; |
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
$(document).on("click", '.label-success', function(event) { | |
elemento = $(this); | |
$.ajax({ | |
type: "POST", | |
url: "http://domain.com", | |
data: "my_data=" + elemento.parent().parent().attr('id'), | |
success: function(result){ | |
elemento.parent().parent().hide().html(result).fadeIn('fast'); | |
} | |
}); |
A Pen by Captain Anonymous on CodePen.
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
import java.util.Scanner; | |
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
/** | |
* | |
* @author Samuel Martins |
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
@placeholder-ruleset: { text-transform: uppercase; }; | |
.placeholder(@color-01, @placeholder-ruleset); | |
/**/ | |
.placeholder(@color, @ruleset: {}) { | |
::-webkit-input-placeholder { | |
color: @color; | |
@ruleset(); | |
} |
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
Show hidden characters
{ | |
"rules": { | |
"class-name": true, | |
"comment-format": [ | |
true | |
], | |
"curly": true, | |
"eofline": true, | |
"forin": true, | |
"indent": [ |
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
{ | |
"Create angular es7 module": { | |
"prefix": "ng-module", | |
"body": [ | |
"import * as angular from 'angular';", | |
"", | |
"// Types", | |
"", | |
"// Controllers", | |
"", |
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
(function(angular){ | |
angular.module('blip.components', []) | |
.component('component1', { | |
template: '<span>{{ $ctrl.name }}</span>', | |
bindings: { | |
name: '@', | |
} | |
}) | |
.component('component2', { | |
template: '<span>{{ $ctrl.name }} 2</span>', |
OlderNewer