Gremin traversal examples taken from the excellent DS330: DataStax Enterprise Graph course.
Add a Vertex
| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
Gremin traversal examples taken from the excellent DS330: DataStax Enterprise Graph course.
Add a Vertex
| @charset "UTF-8"; | |
| // _ _ _ _ _ | |
| // (_) | | | | | (_) | |
| // _ _ __ ___| |_ _ __| | ___ _ __ ___ ___ __| |_ __ _ | |
| // | | '_ \ / __| | | | |/ _` |/ _ \ | '_ ` _ \ / _ \/ _` | |/ _` | | |
| // | | | | | (__| | |_| | (_| | __/ | | | | | | __/ (_| | | (_| | | |
| // |_|_| |_|\___|_|\__,_|\__,_|\___| |_| |_| |_|\___|\__,_|_|\__,_| | |
| // | |
| // Simple, elegant and maintainable media queries in Sass |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | π :tada: |
| Version tag | π :bookmark: |
| New feature | β¨ :sparkles: |
| Bugfix | π :bug: |
| name: echo the latest commit on PR | |
| on: pull_request | |
| jobs: | |
| GetRecentCommit: | |
| name: Get Latest Commit | |
| if: ${{ github.event_name == 'pull_request' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: List commits on the pull request | |
| run: | |
| import { useState } from "react" | |
| export default function Index(){ | |
| const [phone,setPhone] = useState(""); | |
| const formatPhoneValidation = (current) => { | |
| const value = `${current.value}`; | |
| const input = value.replace(/\D/g, "").substring(0, 10); // First ten digits of input only |
| const p1 = new Promise((resolve, reject) => setTimeout(resolve(1), 200)) | |
| const p2 = new Promise((resolve, reject) => setTimeout(reject('error'), 300)) | |
| const p3 = new Promise((resolve, reject) => setTimeout(resolve(3), 4000)) | |
| Promise.all([p1, p2, p3]).then((res) => console.log(res)).catch(e => console.log(e)) | |
| Promise.allSettled([p1, p2, p3]).then((res) => console.log(res)).catch(e => console.log(e)) |
This step by step tutorial will show you how to set up a Node.js server with MongoDB to DigitalOcean using PM2, NGINX as reverse proxy and a SSL from LetsEncrypt. We will also add a custom domain name.