Skip to content

Instantly share code, notes, and snippets.

@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;
@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>"
],
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 / 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/"]