Kick off VSCode for C and GTK 3.
c_cpp_properties.json
{
"configurations": [
{
"name": "C Linux GTK3",| #ifndef __LIST_H | |
| #define __LIST_H | |
| /* This file is from Linux Kernel (include/linux/list.h) | |
| * and modified by simply removing hardware prefetching of list items. | |
| * Here by copyright, credits attributed to wherever they belong. | |
| * Kulesh Shanmugasundaram (kulesh [squiggly] isis.poly.edu) | |
| */ | |
| /* |
| /** | |
| * This are a collection of examples for C 201. | |
| * These combine concepts you may or may not be | |
| * familiar with and are especially useful for | |
| * students new to C. There is a lot of really | |
| * cool stuff you can do in C without any cool | |
| * languages. | |
| * | |
| * This is file in particular is an introduction | |
| * to fun function usage in C. |
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| # List of cheatsheet for linux find. | |
| # Taken from here http://alvinalexander.com/unix/edu/examples/find.shtml | |
| # basic 'find file' commands | |
| # -------------------------- | |
| find / -name foo.txt -type f -print # full command | |
| find / -name foo.txt -type f # -print isn't necessary | |
| find / -name foo.txt # don't have to specify "type==file" | |
| find . -name foo.txt # search under the current dir | |
| find . -name "foo.*" # wildcard |
| from google.cloud import vision | |
| if __name__ == '__main__': | |
| client = vision.ImageAnnotatorClient() | |
| response = client.annotate_image({ | |
| 'image': {'source': {'image_uri': 'https://cloud.google.com/vision/docs/images/sign_text.png'}}, | |
| 'features': [{'type_': vision.Feature.Type.DOCUMENT_TEXT_DETECTION}] | |
| }) | |
| for words in response.text_annotations[1:]: | |
| print(words.description) |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int main(void){ | |
| while(1){ | |
| int command; | |
| printf("Commands...\n"); | |
| printf("Press..\n"); | |
| printf("1. Show List of files\n"); |
| "実行コマンド | |
| command! Run call s:Run() | |
| nmap <F5> :Run<CR> | |
| function! s:Run() | |
| let e = expand("%:e") | |
| if e == "c" | |
| :Gcc | |
| endif | |
| if e == "py" | |
| :Python |