You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'.
Consider something like:
| #!/usr/bin/env bash | |
| # Generate RSA private key | |
| openssl genrsa -out private_key.pem 1024 |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
The current clang-format instructions are for Python2 Vim. If your Vim has only Python3 or if you load Python3 before Python2, those instructions won't work.
Therefore, (1) replace your clang-format.py with the file in this gist, from https://reviews.llvm.org/D23319. (2) Replace the relevant lines in .vimrc with:
map <C-K> :py3f ~/PATH/TO/clang-format.py<cr>
imap <C-K> <c-o>:py3f ~/PATH/TO/clang-format.py<cr>
N.B. Replace ~/PATH/TO with the actual path to clang-format.py.
| cmake_minimum_required( VERSION 3.6 ) | |
| # Create Project | |
| project( test ) | |
| add_executable( freetype main.cpp ) | |
| # Set StartUp Project | |
| set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "freetype" ) | |
| # Set CharacterSet |
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
| {0: {'id': '01440764-n', | |
| 'label': 'tench, Tinca tinca', | |
| 'uri': 'http://wordnet-rdf.princeton.edu/wn30/01440764-n'}, | |
| 1: {'id': '01443537-n', | |
| 'label': 'goldfish, Carassius auratus', | |
| 'uri': 'http://wordnet-rdf.princeton.edu/wn30/01443537-n'}, | |
| 2: {'id': '01484850-n', | |
| 'label': 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
| 'uri': 'http://wordnet-rdf.princeton.edu/wn30/01484850-n'}, | |
| 3: {'id': '01491361-n', |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html