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 test = require('tape') | |
| var feedCat = require(process.argv[2]) | |
| test('tests', function (t) { | |
| t.equal(feedCat('food'), 'yum') | |
| t.throws(feedCat.bind(null, 'chocolate')) | |
| }) |
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
| // Margens | |
| $margins: top bottom left right; | |
| @each $margin in $margins{ | |
| @for $i from 1 through 10 { | |
| .m-#{$margin}-#{$i} { | |
| margin-#{$margin}: $i * 10px; |
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
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var sass = require('gulp-sass'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var autoprefixer = require('gulp-autoprefixer'); | |
| var livereload = require('gulp-livereload'); | |
| var gulpCssGlobbing = require("gulp-css-globbing"); | |
| var imagemin = require('gulp-imagemin'); | |
| var spritesmith = require('gulp.spritesmith'); |
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": "sandbox", | |
| "version": "1.0.0", | |
| "scripts": { | |
| "sass:dev": "./node_modules/.bin/gulp", | |
| "sass:prod": "./node_modules/.bin/gulp sass:prod" | |
| }, | |
| "dependencies": {}, | |
| "devDependencies": { | |
| "breakpoint-sass": "^2.6.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
| error: function (_jqxhr, text, error) { | |
| switch (_jqxhr.status) { | |
| case 404: | |
| case 500: | |
| console.log("Erro: " + error + " - " + text); | |
| console.log(_jqxhr); | |
| break; | |
| default: | |
| console.log(_jqxhr); | |
| } |
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
| function efeito(t, e) { | |
| var a = '.efeito', | |
| c = '<span class="efeito"></span>'; | |
| t.append(c); | |
| $(a).css({'top': e.offsetY, 'left': e.offsetX}); | |
| setTimeout(function () { |
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 toggleInputPlaceholder = function() { | |
| if ($(".placeholder").val() != '') { | |
| $(".placeholder").next("label").hide(); | |
| } | |
| $(".placeholder").focus(function() { | |
| $(this).next("label").hide(); | |
| }); | |
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
| <html> | |
| <head> | |
| <title>Checkbox Usando Switch</title> | |
| <style> | |
| *, :after, :before { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| } | |
| label { |
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
| (function() { | |
| /* | |
| * Remove estilos in-line e adiciona no cabeçalho do site | |
| * | |
| * @author Willian Keller | |
| * | |
| * Definições das Variáveis | |
| * | |
| * @variables | |
| * a = Array (saída do laço de repetição) |
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
| (function ($) { | |
| var b = $(document), | |
| d = $(window), | |
| e = null, | |
| c; | |
| function a(a) { | |
| document.title = a; | |
| } | |
| c = b.find("title").text(), |