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!
\
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
| "実行コマンド | |
| 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #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"); |
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
| 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) |
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
| # 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 |
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
| # 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. |
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
| /** | |
| * 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. |
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
| #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) | |
| */ | |
| /* |
NewerOlder