Skip to content

Instantly share code, notes, and snippets.

View TheAnimatrix's full-sized avatar
🎯
Focusing

TheAnimatrix

🎯
Focusing
View GitHub Profile
hello world
this is a small gist
[main 18:01:20] update#setState idle
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
[main 18:01:24] [VS Code]: render process crashed!
[main 18:01:28] [VS Code]: render process crashed!
[main 18:01:29] [VS Code]: render process crashed!
YO guys !
so i was just looking for some good books on electrical engineering again , well some recommend boylestad , milmann , floyd, etc. some say some of these books suck ... well i was kinda critical and just before giving up and taking a random option i found this post on quora.
initially, i thought it was another normie suggestion , i even checked the legitimacy of the author of the answer. I'm not sure but i get this feeling that the author of this post is some kind of depressed guy asking existential questions . I think that's kind of cool . I'm still getting normie vibes tho but he's definitely better than the rest of the bunch . I deem him legit.
[Link to post](https://www.quora.com/What-are-the-best-books-for-engineering-in-Electronics-and-Telecommunication)
HIS ANSWER:

YO guys !

so i was just looking for some good books on electrical engineering again , well some recommend boylestad , milmann , floyd, etc. some say some of these books suck ... well i was kinda critical and just before giving up and taking a random option i found this post on quora.

initially, i thought it was another normie suggestion , i even checked the legitimacy of the author of the answer. I'm not sure but i get this feeling that the author of this post is some kind of depressed guy asking existential questions . I think that's kind of cool . I'm still getting normie vibes tho but he's definitely better than the rest of the bunch . I deem him legit.

Link to post

HIS ANSWER:

#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;

The most common attributes of logarithmic running-time function are that:

the choice of the next element on which to perform some action is one of several possibilities, and only one will need to be chosen. or

the elements on which the action is performed are digits of n This is why, for example, looking up people in a phone book is O(log n). You don't need to check every person in the phone book to find the right one; instead, you can simply divide-and-conquer by looking based on where their name is alphabetically, and in every section you only need to explore a subset of each section before you eventually find someone's phone number.

Of course, a bigger phone book will still take you a longer time, but it won't grow as quickly as the proportional increase in the additional size.

@TheAnimatrix
TheAnimatrix / bomberman.py
Last active February 5, 2019 19:41
bomberman.py
#!/bin/python
import math
import os
import random
import re
import sys
import copy
# Complete the bomberMan function below.
@TheAnimatrix
TheAnimatrix / p5_dag.js
Created February 16, 2019 10:19
Create a simple directed acyclic graph by double-clicking! (made with p5.js)
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
line(2,2,2,400);
line(2,2,400,2);
}
function arrow(x,y,angle){