| Name | From | Description |
|---|---|---|
| <assert.h> | Contains the assert macro, used to assist with detecting logical errors and other types of bug in debugging versions of a program. | |
| C99 | A set of functions for manipulating complex numbers. |
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/bash | |
| while read voice | |
| do | |
| say -v $voice hello; echo $voice; | |
| done < <(say -v '?' | awk '{print $1}') |
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
| sudo lsof -t -i tcp:80 -s tcp:listen | sudo xargs kill |
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
| # Define search function because pygithub does not support /search/commits API yet. | |
| import github | |
| def __Github_search_commits(self, word, sort=github.GithubObject.NotSet, order=github.GithubObject.NotSet, **kwargs): | |
| """ | |
| :calls: `GET /search/commit` | |
| :param str word: string search keyword | |
| :param str sort: string ('author-date', 'commiter-date') (default: best match) | |
| :param str order: string ('desc', 'asc') (default: 'desc') | |
| :param dict kwargs: dictionary including query parameter set | |
| :rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Commit` |
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 | |
| path=$1 | |
| old_file=$2 | |
| old_hex=$3 | |
| old_mode=$4 | |
| new_file=$5 | |
| new_hex=$6 | |
| new_mode=$7 |
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
| git diff <hash-commit-1>:<fillename> <hash-commit-1>:<filename> | gawk 'match($0,"^@@ -([0-9]+),[0-9]+ [+]([0-9]+),[0-9]+ @@",a){left=a[1];right=a[2];next} | |
| /^(---|\+\+\+|[^-+ ])/{print;next};\ | |
| {line=substr($0,2)};\ | |
| /^-/{print "-" left++ ":" line;next};\ | |
| /^[+]/{print "+" right++ ":" line;next};\ | |
| {print "(" left++ "," right++ "):"line}' | grep -v '^+++' | grep -v '^---' | grep -v 'diff' | grep -v 'index' |
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
| wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
| sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" | |
| sudo apt-get update | |
| sudo apt-get install -y clang-6.0 |
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
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Blah</title> | |
| <script src="./node_modules/web3/dist/web3.min.js"></script> | |
| </head> |
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
| names = ['baby', 'mommy', 'daddy', 'gramdma', 'grandpa', 'Let\'s go hunt'] | |
| for name in names: | |
| for i in range(3): | |
| if name == names[5]: | |
| print(f'{name},'+ ' doo '*4) | |
| else: | |
| print(f'{name.title()} shark,'+ ' doo'*4) | |
| if name == names[5]: | |
| print(name) |
Quickyl correct the indentation issues in a given python file
perl -i.bak -pe "s/\t/' 'x(8-pos()%8)/eg" filename.py