$ npm install
$ npm test
> @ test /private/tmp/foo
> sh ./test.sh
> @ eslint:rel /private/tmp/foo
> eslint --ignore-pattern a.js "*.js"
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 = { | |
| add: function(a, b) { | |
| if (typeof a === 'undefined' || a === null) a = 0; | |
| if (typeof b === 'undefined' || b === null) b = 0; | |
| return Number(a) + Number(b); | |
| } | |
| }; |
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
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.util.ArrayList; | |
| import java.util.Collections; | |
| import java.util.List; | |
| import org.springframework.jdbc.core.ResultSetExtractor; | |
| import org.springframework.jdbc.core.RowMapper; | |
| public final class PaginatedResultSetExtractor<T> implements ResultSetExtractor<List<T>> { |
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
| <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="javax.naming.*"%> | |
| <!DOCTYPE html> | |
| <html> | |
| <head><title>JNDI list</title></head> | |
| <body> | |
| <h1>JNDI list</h1> | |
| <% | |
| String root = request.getParameter("root"); | |
| if (root == null) { | |
| root = ""; |
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
| input { | |
| width: 10em; | |
| } | |
| input:invalid { | |
| box-shadow: 0 0 0.5em red; | |
| } | |
| input ~ [data-hint] { | |
| left: -5em; | |
| } |
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
| (flycheck-def-config-file-var flycheck-sass-lintrc sass-lint ".sass-lint.yml" | |
| :safe #'stringp) | |
| (flycheck-define-checker sass-lint | |
| "A SASS (SCSS) checker using Sass Lint (on Node.js). | |
| See URL `https://github.com/sasstools/sass-lint'." | |
| :command ("sass-lint" | |
| "--verbose" | |
| "--format" "checkstyle" |
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
| body { | |
| background-color: #fff; | |
| } | |
| .hr-text { | |
| text-align: center; | |
| border: 0; | |
| border-top: 1px solid #bbb; | |
| height: 0; | |
| } | |
| .hr-text:after { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>document.styleSheets</title> | |
| <link href="style1.css" rel="stylesheet"> | |
| <link href="style2.css" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <h1>Test</h1> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Off canvas - Responsive pattern</title> | |
| <style> | |
| body { | |
| display: flex; | |
| } |
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
| # Usage: npm-open <package> | |
| function npm-open() { | |
| [ -n "$1" ] && npm info "$1" homepage repository.url | head -1 | cut -d ' ' -f 3 | xargs open | |
| } |