-
Summarization: Apply algo on cluster prototypes instead of actual data if actual data is large.
-
Compression: Don't store all attributes of all objects. Store all attributes for cluster prototypes.
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
<VirtualHost *:9000> | |
WSGIDaemonProcess owliver.com python-path=/srv/owliver:/srv/owliver/myvenv3/lib/python3.4/site-packages | |
WSGIProcessGroup owliver.com | |
Alias /media/ /srv/owliver/media/ | |
Alias /static/ /srv/owliver/staticfiles/ | |
<Directory /srv/owliver/staticfiles> | |
Require all granted | |
</Directory> |
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 __future__ import print_function | |
import time | |
import sys | |
n = 9 | |
for i in range(n, 0, -1): | |
print(i, "O"*i + " "*(n-i), end='\r') | |
sys.stdout.flush() | |
time.sleep(1) | |
print('0 \nBlastoff!') |
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 | |
""" | |
Tic-Tac-Toe | |
2 players 'a' and 'b' are playing the game. Player 'a' always moves first. | |
board_state is a 9-character string (row-major), each character representing who marked that cell. | |
'0' means that the cell is unmarked. | |
outcome is a one-character string containing 'w', 'l' or '0'. | |
""" |
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
#define _POSIX_SOURCE | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<sys/types.h> | |
#include<sys/socket.h> | |
#include<netinet/in.h> | |
#include<arpa/inet.h> | |
#include<unistd.h> |
In this project I will add Python 3 support to Zulip, without breaking Python 2 compatibility. I will also add type annotation (see PEP 483 and PEP 484) to all code. If time is left, I will also add support for platforms other than Ubuntu 14.04.
I am pretty comfortable programming in Python (both Python 2 and 3, but mainly 3). I especially like exploring advanced features of Python. My primary software development experience is with Django. I have used Django in many of my projects. You can view a list of my projects (and more about my skills) at https://sharmaeklavya2.github.io.
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 python3 | |
# Pass the path to a hack file as a command-line argument | |
import sys | |
from collections import defaultdict | |
fobj = open(sys.argv[1]) | |
t = int(fobj.readline()) | |
print(t, flush=True) |
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 | |
'Generate Time Table' | |
from __future__ import print_function | |
import sys | |
import argparse | |
from collections import defaultdict | |
START_TIME = 8 | |
# Time when classes start |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer