Skip to content

Instantly share code, notes, and snippets.

@Saad2012
Saad2012 / list.h
Created January 12, 2020 21:41 — forked from gmcclure/list.h
Simple doubly linked list implementation, from the Linux kernel
#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)
*/
/*
@Saad2012
Saad2012 / functions.c
Created June 23, 2020 00:34 — forked from eatonphil/functions.c
Introduction to "Fun" C (using GCC)
/**
* 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.
@Saad2012
Saad2012 / wget.sh
Created July 24, 2020 00:39 — forked from crittermike/wget.sh
Download an entire website with wget, along with assets.
# 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.
@Saad2012
Saad2012 / VSCode C Linux.md
Created August 2, 2020 14:01 — forked from Acry/VSCode C Linux.md
Kick off VSCode for C and GTK 3.

Code GTK 3 in C with VSCode

Kick off VSCode for C and GTK 3.

c_cpp_properties.json

{
  "configurations": [
    {
      "name": "C Linux GTK3",
@Saad2012
Saad2012 / The Technical Interview Cheat Sheet.md
Created August 12, 2020 23:44 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

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!






\

@Saad2012
Saad2012 / find.sh
Created September 26, 2020 12:18 — forked from gr1ev0us/find.sh
Cheatsheet for find linux
# 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");
@Saad2012
Saad2012 / PY0101EN-5-2-Numpy2D.ipynb
Created November 6, 2020 04:14 — forked from karoru23/PY0101EN-5-2-Numpy2D.ipynb
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Saad2012
Saad2012 / .vimrc
Created November 6, 2020 09:36 — forked from aldente39/.vimrc
To compile & run by F5 (Vim)
"実行コマンド
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