Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts and experience preferred (super rare at this point).
This file contains 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 typing import List, Tuple | |
import random | |
def quicksort(array: List[int]) -> List[int]: | |
"""Recursive implementation of quicksort. | |
Args: | |
array (List[int]): a list of integers |
This file contains 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
# delete all Evicted pods | |
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
This file contains 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
public class CountOcc { | |
private static int search(int array[], int low, int high, int value) { | |
if (low <= high) { | |
int mid = low + (high - low) / 2; | |
if (array[mid] == value) { | |
return mid; |
This file contains 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
#!/usr/bin/env python | |
import math | |
n = input() | |
ans=["","Sheldon", "Leonard", "Penny", "Rajesh", "Howard"] | |
i= int(math.log(math.ceil(n*1.0/5),2)) |
This file contains 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 <iostream> | |
using namespace std; | |
//Given an array, generate all possible sum | |
int main(void) | |
{ | |
int array[]= {1,2,3}; |
This file contains 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 <iostream> | |
#include <vector> | |
#define print_vector(vec) for(int i=0;i<vec.size();i++) { cout<<vec[i]<<" ";} cout<<endl; | |
using namespace std; | |
/* | |
pattern = abacab |
This file contains 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
<!-- Respect Rollcall --> | |
<li><a href="http://www.alistapart.com/articles/">A List Apart — for website builders</a></li> | |
<li><a href="http://abstrusegoose.com/">Abstruse Goose — my favorite comic</a></li> | |
<li><a href="http://al3x.net/">Alex Payne — technology rambling</a></li> | |
<li><a href="http://dashes.com/anil/">Anil Dash — on culture, apple & design</a></li> | |
<li><a href="http://weblogs.mozillazine.org/asa/">Asa Dotzler — on mozilla & software</a></li> | |
<li><a href="http://www.azarask.in/blog/">Aza Raskin – on design & firefox</a></li> | |
<li><a href="http://christophzillgens.com/en/">Christoph Zillgens — interface design</a></li> | |
<li><a href="http://cssremix.com/">CSS Remix — gorgeous designs</a></li> | |
<li><a href="http://css-tricks.com/">CSS Tricks</a></li> |
This file contains 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 <iostream> | |
#include <cstdio> | |
#include <vector> | |
#include <cmath> | |
#include <queue> | |
#include <vector> | |
#define INF 10000 | |
using namespace std; |
This file contains 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
import urllib2 | |
import sys | |
import os | |
from subprocess import call | |
try: | |
url = sys.argv[1] | |
k= urllib2.urlopen(url).readlines() | |
file_name= "random_file.txt" | |
op= open(file_name,'w') |
NewerOlder