Skip to content

Instantly share code, notes, and snippets.

@ana-balica
ana-balica / script.py
Last active December 12, 2015 10:18
MIDPS Labwork N#2 Command Line Interface (CLI). Scripting
import smtplib
from subprocess import call
from getpass import getpass
from email.header import Header
from email.mime.text import MIMEText
# global variables
script_names = ["C", "C++", "Java", "Python", "Ruby"]
paths = ["c/", "cpp/", "java/", "python/", "ruby/"]
import sys
import urllib
import re
import random
from lxml import etree
class Downloader():
'''
Class to retreive HTML code
and binary files from a
@ana-balica
ana-balica / manifest.json
Created May 23, 2013 04:48
Pictalicious - a Chrome Extension for determining the best colors to use with an image via Pictaculous (http://www.pictaculous.com/).
{
"manifest_version": 2,
"name": "Pictalicious",
"description": "Get the perfect pallete right from this webpage picture. Pictaculous knows what colors to use with an image.",
"version": "1.0",
"permissions": [
"<all_urls>"
],
@ana-balica
ana-balica / popup.html
Created May 26, 2013 19:33
Chrome extension that connects to http://www.colorfyit.com/ API and displays all the available colors to the user.
<!doctype html>
<html>
<head>
<title>Colorfytnis</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'>
<style type="text/css">
body{
min-width: 300px;
min-height: 100px;
overflow-x: hidden;
from __future__ import absolute_import
from __future__ import unicode_literals
from urlparse import urljoin
from . import Extension
from ..treeprocessors import Treeprocessor
class AbsoluteImagesExtension(Extension):
""" Absolute Images Extension """
@ana-balica
ana-balica / Bachelor Thesis Topics
Created December 9, 2013 23:58
A list of potential bachelor thesis topics
Bachelor Thesis Topics
======================
* IT Student-Company Platform
Short description: a web platform for my home university similar to the one
recently developed at CVUT, where students and companies have a match. Companies
can post offerings, tasks, internships. Students can access the data, apply
and eventually get involved into the real-world programming.
Technologies: any web framework, databases
Motivation: offering a solution to companies that seek for young enthusiastic

Keybase proof

I hereby claim:

  • I am ana-balica on github.
  • I am anabalica (https://keybase.io/anabalica) on keybase.
  • I have a public key whose fingerprint is 9A7A 4FEC F098 EF9F 10DC 270D 4465 297A 2944 787C

To claim this, I am signing this object:

# Insertion Sort Algorithm - sorts a sequence in place, for additional
# convenience returns the sequence.
# Time complexity: n^2
# For descending sort change the comparison symbol on line 18:
# while i >= 0 and seq[i] < key
# Script is intended to be run with Python3, but is Python2 compatible.
# If running the script with Python2, range() function will return a list.
# Consider changing it to xrange(), if running with Python2.
# Merge Sort Algorithm - sorts a sequence in place recursively, for additional
# convenience returns the sequence.
# Time complexity: nlgn
# The script is Python2-3 compatible.
from __future__ import print_function
def merge_sort(seq):
if len(seq) == 1:
return seq
# Selection Sort Algorithm - sorts a sequence in place, for additional
# convenience returns the sequence.
# Time complexity: n^2
# Script is intended to be run with Python3, but is Python2 compatible.
# If running the script with Python2, range() function will return a list.
# Consider changing it to xrange() if using Python3.
from __future__ import print_function