https://developer.mozilla.org/en-US/docs/Web/Apps/Getting_Started
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
AIzaSyA9ANzNGik0vdS7YM9r1ntyBaX33ziJC0Y |
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
window.onload = function() { | |
var voltar, avancar, i, arr; | |
voltar = document.querySelector('.voltar'); | |
avancar = document.querySelector('.avancar'); | |
nSlide = 0; | |
imgs = [ | |
'img0', 'img1', 'img2', 'img3', 'img4', 'img5', | |
'img6', 'img7', 'img8', 'img9', 'img10', | |
'img11', 'img12', 'img13', 'img14', 'img15' | |
]; |
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
{ | |
"name": "projectName", | |
"version": "0.1.0", | |
"devDependencies": { | |
"grunt": "~0.4.1", | |
"grunt-contrib-watch": "~0.5.1", | |
"grunt-contrib-coffee": "~0.7.0", | |
"grunt-contrib-jshint": "~0.6.1", | |
"grunt-yui-compressor": "~0.3.0", | |
"grunt-contrib-sass": "~0.4.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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
coffee: { | |
compile: { | |
options: { | |
bare: true | |
}, | |
files: { |
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
<?php | |
Class Picturicon { | |
function addIcon($avatar, $icon, $saveAs) { | |
function x($image) { | |
$x = getimagesize($image); | |
return $x[0]; | |
} | |
function y($image) { | |
$y = getimagesize($image); |
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
# Jornal Mauá e Região | |
for i in $(ls *.pdf); do convert -monitor -crop 0x0+150+150 -gravity Center -density 300 -quality 90 -attenuate 40 -antialias -colorspace RGB -level 0%,100%,1.7 -crop -75-75 -bordercolor white -border 130x130 -resize 1060x1500 $i $i.jpg; done | |
# Quando o anúncio do jornal não possuir margem | |
for i in $(ls *.pdf); do convert -crop 0x0+100+100 -gravity Center -density 300 -quality 90 -attenuate 40 -antialias -colorspace RGB -level 0%,100%,1.7 -crop -0-0 -bordercolor white -border 130x130 -resize 1060x1500 $i $i.jpg; done | |
for i in $(ls *.jpg); do convert -monitor -resize 1536x2067 $i CONVERTIDO-$i.jpg; done | |
convert -monitor *.jpg documento.pdf |
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
COMMAND LINE: | |
$ jshint --verbose --show-non-errors --config .jshint-globals scripts.js | |
FILE: | |
.jshint-globals | |
{ | |
"browser": true, | |
"globals": { "jQuery": true } | |
} |