Regular expression are used to match a string or a set of string
/matching_pattern/flags
- matching_pattern: Any pattern to match with a string
| import React, { useEffect, useState, useMemo } from "react" | |
| import Echo from "laravel-echo" | |
| import Pusher from "pusher-js" | |
| /** | |
| * Pusher configuration | |
| */ | |
| const pusherConfig = { | |
| key: '<your_pusher_key_here>', | |
| cluster: '<pusher_cluster>', |
| // helps us in parsing the frontmatter from text content | |
| const matter = require('gray-matter') | |
| // helps us safely stringigy the frontmatter as a json object | |
| const stringifyObject = require('stringify-object') | |
| // helps us in getting the reading time for a given text | |
| const readingTime = require('reading-time') | |
| // please make sure you have installed these dependencies | |
| // before proceeding further, or remove the require statements | |
| // that you don't use |
| Homebrew build logs for neovim on macOS 10.14 | |
| Build date: 2018-10-17 20:42:08 |
| #!/bin/bash | |
| # Installing tmux locally | |
| # 1. visit: https://github.com/tmux/tmux | |
| # 2. create a local directory to install tmux | |
| # 3. download depencencies | |
| # 1. libevent | |
| # 1. visit: http://libevent.org/ | |
| # 2. download the stable version | |
| # 2. ncurses |
| # import the required stuff | |
| import urllib2 | |
| import lxml.html | |
| import urlparse | |
| pdfLinks = [] | |
| def getContentType(connection): | |
| meta = connection.info() | |
| return meta.getheader("Content-Type") |