This file contains hidden or 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
this.processCmd = options.isCustom ? | |
`npm run ${ script.name }` : | |
script.command; | |
this.$set( 'process', this.exec( | |
this.processCmd, | |
{ | |
cwd : options.cwd | |
} | |
) ); |
This file contains hidden or 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
export default { | |
bind() { | |
let element = this.el; | |
this.observer = new MutationObserver( ( mutations ) => { | |
for ( var i = 0; i < mutations.length; i++ ) { | |
// adjust element scrollTop depending on it's changed height | |
element.scrollTop = element.scrollHeight; | |
} | |
} ) ; |
This file contains hidden or 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
var SLOW_TIME = 3000; | |
this.addEventListener( 'install', function () { | |
console.log('Installed service worker'); | |
} ); | |
this.addEventListener( 'fetch', function(event) { | |
var url = event.request.url; | |
if ( url.indexOf( 'blocking' ) === -1) { |
This file contains hidden or 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
stefan @ stefan-mac: ~/Sites/grunt-phantomas master (╯°□°)╯ | |
> DEBUG=* node test.js [21:22:13] | |
1.13.0 | |
phantomas nodejs v4.1.1 +0ms | |
phantomas phantomas v1.13.0 installed in /Users/stefan/Sites/grunt-phantomas/node_modules/phantomas +2ms | |
phantomas URL: <http://www.carfax.es/lp-coches-de-segunda-mano.html> +1ms | |
phantomas Options: {"timeout":30,"film-strip":true,"film-strip-dir":"phantomas/images/1445626863104"} +0ms | |
phantomas Temporary directory: /var/folders/03/cgg2bwfd6j92tfllylt5b91m0000gn/T/phantomas/fa78c9be-1ece-4c02-8cae-c564b1cb782b/ +2ms | |
phantomas:engines Engine "webkit": PhantomJS v1.9.8 installed in /Users/stefan/Sites/grunt-phantomas/node_modules/phantomjs/lib/phantom/bin/phantomjs +2ms | |
phantomas:engines Engine "webkit2": PhantomJS v2.0.0 installed in /Users/stefan/Sites/grunt-phantomas/node_modules/phantomjs2/lib/phantom/bin/phantomjs +4ms |
This file contains hidden or 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
var commentBox = document.querySelector( '[name="comment[body]"]' ); | |
commentBox.value = '## QA Description\n\n' + | |
'## Legend: \n' + | |
' - :white_check_mark: QA Passed\n' + | |
' - :red_circle: QA fail\n' + | |
' - :question: QA needs more info\n' + | |
' - :green_heart: Dev fixed it after QA fail \n\n' + | |
'## Checklist: \n\n' + | |
' - Feature A\n' + |
This file contains hidden or 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
/** | |
* grunt-phantoms configuration | |
* | |
* https://www.npmjs.org/package/grunt-phantomas | |
*/ | |
'use strict'; | |
module.exports = function() { | |
return { |
This file contains hidden or 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
if ( $( '[data-orbit]' ).length ) { | |
$document.foundation( { | |
orbit : { | |
bullets : false | |
} | |
} ); | |
} |
This file contains hidden or 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
/** | |
* grunt-casperjs configuration | |
* | |
* https://npmjs.org/package/grunt-casperjs | |
*/ | |
'use strict'; | |
module.exports = function () { | |
return { |
This file contains hidden or 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
<article class="content--seo--article active"> | |
<h1 class="content--seo--headline js-toggle">Natue: suplementos, cosméticos, nutricosméticos, vitaminas e alimentos naturais para uma vida em equilíbrio</h1> | |
<p class="content--seo--paragraph">Aqui você encontra produtos com ingredientes naturais, <a href="http://www.natue.com.br/cosmeticos/">cosméticos naturais</a>, alimentos e suplementos que auxiliam na conquista de uma vida mais saudável, onde equilibramos o nosso lado pessoal e profissional.</p> | |
<p class="content--seo--paragraph">Suplementos e produtos para todos os objetivos. No nosso diversificado e selecionado portfólio você encontra produtos naturais (das principais <a href="http://www.natue.com.br/todas-as-marcas/">marcas</a>, como <em><a href="http://www.natue.com.br/universal/">Universal</a>, Optimum, Nutrilatina, <a href="http://www.natue.com.br/sanavita/">Sanavita</a>, Sundown</em>, etc.) e complementos |
This file contains hidden or 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
var fancyApiKey; | |
casper.test.begin('curl_post_client', function suite ( test ) { | |
'use strict'; | |
var url = "http://projecta:[email protected]/api/v1/client/"; | |