Command
$ git diff --name-only 4c2d3df99947b4406c3032e599e8e820d82a6a7b 511b49a17a7e0b99ea65c48c0b885c09f7bc06c5
Result
/path/to/filename.ext
| function isJson($string) { | |
| json_decode($string); | |
| return (json_last_error() == JSON_ERROR_NONE); | |
| } |
| Math.random().toString(36).substring(2, 5); // 3 symbols |
| // NOTE: this adds a filename and line number to winston's output | |
| // Example output: 'info (routes/index.js:34) GET 200 /index' | |
| var winston = require('winston') | |
| var path = require('path') | |
| var PROJECT_ROOT = path.join(__dirname, '..') | |
| var logger = new winston.logger({ ... }) | |
| // this allows winston to handle output from express' morgan middleware |
| 'use strict'; | |
| const winston = require('winston'); | |
| // | |
| // Or use `Symbol.for` instead of `triple-beam`: | |
| // - const LEVEL = Symbol.for('level'); | |
| // - const MESSAGE = Symbol.for('message'); | |
| // | |
| const { LEVEL, MESSAGE } = require('triple-beam'); |
| {rabbit_shovel, [ | |
| {shovels, [ | |
| {my_first_shovel, [ | |
| {sources, [ | |
| {brokers, ["amqp://user:pwd@host1/vhost"]}, | |
| {declarations, [ | |
| {'exchange.declare', [{exchange, <<"source_exchange">>}, {type, <<"direct">>}, durable]} | |
| {'queue.declare', [{queue, <<"source_queue">>}, durable]}, | |
| {'queue.bind', [{exchange, <<"source_exchange">>}, {queue, <<"source_queue">>}]} | |
| ]} |
| [ | |
| {rabbit, [ | |
| %% snip... | |
| ]}, | |
| {rabbitmq_shovel, [ | |
| {shovels, [ | |
| {'MUTHA-SHOVELER', [ | |
| {sources, [ | |
| {broker, "amqp://"} |
| var Base64 = { | |
| characters: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" , | |
| encode: function( string ) | |
| { | |
| var characters = Base64.characters; | |
| var result = ''; | |
| var i = 0; | |
| do { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
| jQuery.fn.extend({ | |
| getPath: function () { | |
| let path, node = this; | |
| while (node.length) { | |
| let realNode = node[0], name = realNode.localName; | |
| if (!name) break; | |
| name = name.toLowerCase(); | |
| let parent = node.parent(); |