Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.
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
| #!/bin/sh | |
| ################# | |
| # ZeroC0D3 Team # | |
| ################# | |
| ### STEP ### | |
| # 1) Download binary file "sqlite3" from | |
| # https://www.sqlite.org/ | |
| # 2) Extract binary "sqlite3" to your PATH_BIN | |
| # 3) Set your file name in PATH_TARGET_DUMP for all schema & data |
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 { render, unmountComponentAtNode } from 'react-dom'; | |
| export function renderText(component) { | |
| const _el = document.createElement('div'); | |
| document.body.appendChild(_el); | |
| render(component, _el); | |
| const text = _el.innerText; | |
| unmountComponentAtNode(_el); | |
| document.body.removeChild(_el); | |
| return text; |
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
| GREEN="%{$fg_bold[green]%}" | |
| YELLOW="%{$fg_bold[yellow]%}" | |
| CYAN="%{$fg_bold[cyan]%}" | |
| RED="%{$fg_bold[red]%}" | |
| MAGENTA="%{$fg[magenta]%}" | |
| RESET="%{$reset_color%}" | |
| PROMPT='$RED◢◤ $CYAN%c $YELLOW$(git_prompt_info)$(git_prompt_status)$RESET' | |
| RPROMPT='$MAGENTA%~ $RESET' |
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 add1(v) { return v + 1; } | |
| function isOdd(v) { return v % 2 == 1; } | |
| function sum(total,v) { return total + v; } | |
| var list = [2,5,8,11,14,17,20]; | |
| list | |
| .map( add1 ) | |
| .filter( isOdd ) | |
| .reduce( sum ); |
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
| library(idbr) # devtools::install_github('walkerke/idbr') | |
| library(ggplot2) | |
| library(animation) | |
| library(dplyr) | |
| library(ggthemes) | |
| idb_api_key("Your Census API key goes here") | |
| male <- idb1('JA', 2010:2050, sex = 'male') %>% | |
| mutate(POP = POP * -1, |
It sometimes happen you need change code on a machine from which you cannot push to the repo.
You’re ready to copy/paste what diff outputs to your local working copy.
You think there must be a better way to proceed and you’re right. It’s a simple 2 steps process:
1. Generate the patch:
git diff > some-changes.patch
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
| #!/usr/bin/env node | |
| var args = process.argv.slice(2); | |
| var input = args[0]; | |
| var isTTY = process.stdin.isTTY; | |
| var stdin = process.stdin; | |
| var stdout = process.stdout; | |
| // If no STDIN and no arguments, display usage message |
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
| // Early Binding vs Late Binding | |
| // Early Binding | |
| var sum = function(a, b) { | |
| return a + b; | |
| }; | |
| var x = 5, y = 6; | |
| var sum5n6 = sum.bind(null, x, y); |