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
<h2>Teste</h2> |
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
/** | |
* Snippet function to load external scripts. | |
* @param {[String, Array]} sources Array of sources to load. | |
* @param {[Functon]} callback A callback to run when all scripts have loaded. | |
* @param {[Boolean]} aasync Whether sources should be loaded | |
* asynchronously or not. | |
* @param {[Object]} appendTo Optionally provide a DOM object to append | |
* the script tags to. | |
*/ | |
function scriptLoader(sources, callback, async, appendTo) { |
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
// ERRADO! | |
.exemplo-1-c .exemplo-1-a | |
color: blue |
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
angular.module('app', []).directive('ngDebounce', function($timeout) { | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
priority: 99, | |
link: function(scope, elm, attr, ngModelCtrl) { | |
if (attr.type === 'radio' || attr.type === 'checkbox') return; | |
elm.unbind('input'); | |
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 | |
/** | |
* Implements hook_ctools_plugin_directory(). | |
*/ | |
function hook_ctools_plugin_directory($owner, $plugin_type) { | |
$plugin_map = array( | |
// Set the directory map as the key to the following 'owner' => 'plugin_type' combinations. |
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
/** | |
* Bootstrap File Input directive wrapper. | |
*/ | |
angular.module('bfi', []) | |
.directive('bfi', function () { | |
return { | |
restrict: 'A', | |
link: function (scope, element, attrs) { | |
element.bootstrapFileInput(); | |
} |
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
// Antes. | |
recipients: function(RecipientsService) { | |
return RecipientsService.getRecipients(); | |
} | |
// Depois (para testar). | |
recipients: function(RecipientsService) { | |
var promise = RecipientsService.getRecipients(); | |
promise.then( |
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
/** | |
* ------------------------------------------------------------------------ | |
* Main Application Module (app.js) | |
* ------------------------------------------------------------------------ | |
* This script is responsible for instantiating the main application | |
* angular module and grabbing everything together. | |
*/ | |
angular.module('MyApp', [ | |
// Contributed modules. |
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
/** | |
* @file | |
* Protractor beforeAll implementation as helper. | |
*/ | |
var history = []; | |
/** | |
* BeforeAll implementation. | |
*/ |
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
/** | |
* Jus' encapsulating to avoid pluting global scope. | |
*/ | |
(function () { | |
var kolorContainer = document.querySelector('#kolor-kolor') | |
, buttons = document.querySelectorAll('#kolor-start, #kolor-restart') | |
, endBlock = document.querySelector('#kolor-end-block') | |
, interval; |
OlderNewer