Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Justin Yang
Copyright (c) 2016 Janet Fang

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# CodeDay-ify
# Spectrafy

Check out [CodeDay](https://codeday.org), a 24-hour programming event for students.
Check out [Spectra](https://sospectra.com), a brand-new all women hackathon coming to the San Francisco Bay Area.

This project is forked from [AlexEKoren/Technify](https://github.com/AlexEKoren/Technify).

Here's a [demo](http://codedayify.y4ng.com).

![Example image](https://scontent-iad3-1.xx.fbcdn.net/v/t1.0-9/13094188_1013828435371689_9026862867734553752_n.jpg?oh=a7bde7b9823ecf6e56fe7ca223f971c9&oe=57A93435 "Example image")
An example of what I got from putting my Facebook profile picture through it.

## Setup
```
pip install -r requirements.txt
Expand All @@ -18,4 +13,4 @@ pip install -r requirements.txt
```
python app.py
```
Runs on [http://localhost:5000](http://localhost:5000) by default.
Runs on [http://localhost:5000](http://localhost:5000) by default.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def classify_upload():
#process the image
resultFilename = process_image(image)
#send it back
return send_file(resultFilename, mimetype='image/png', as_attachment=True, attachment_filename='codedayify.png')
return send_file(resultFilename, mimetype='image/png', as_attachment=True, attachment_filename='spectrafy.png')

if __name__ == '__main__':
port = int(os.environ.get("PORT", 5000))
app.run(host='0.0.0.0', port=port)
app.run(host='0.0.0.0', port=port)
Binary file modified mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed mask.psd
Binary file not shown.
Binary file removed mask@0.25x.png
Binary file not shown.
Binary file removed mask@0.5x.png
Binary file not shown.
35 changes: 17 additions & 18 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,29 @@
<html lang="en">
<head>

<title>CodeDay-ify</title>
<title>Spectrafy</title>

<link rel="icon" type="image/png" href="https://codeday.org/assets/img/icon/favicon-196x196.png" />
<link rel="icon" type="image/png" href="https://github.com/catherinemcmahon/spectrahackathon.github.io/raw/master/images/logo-favicon.png" />

<meta name="generator" content="Justin Yang" />

<!-- Google -->
<meta name="description" content="CodeDay-ify your profile picture!" />
<meta name="copyright" content="Justin Yang" />
<meta name="description" content="Spectrafy your profile picture!" />
<meta name="copyright" content="Spectra" />

<!-- Facebook -->
<meta property="og:title" content="CodeDay-ify" />
<meta property="og:site_name" content="CodeDay-ify" />
<meta property="og:title" content="Spectrafy" />
<meta property="og:site_name" content="Spectrafy" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://codeday.org/assets/img/og.jpg" />
<meta property="og:url" content="http://codedayify.y4ng.com" />
<meta property="og:description" content="CodeDay-ify your profile picture!" />
<!-- <meta property="og:image" content="https://codeday.org/assets/img/og.jpg" /> -->
<meta property="og:url" content="http://spectrafy.sosopectra.com />
<meta property="og:description" content="Spectrafy your profile picture!" />

<!-- Twitter -->
<meta name="twitter:title" content="CodeDay-ify" />
<meta name="twitter:description" content="CodeDay-ify your profile picture!" />
<meta name="twitter:image" content="https://codeday.org/assets/img/og.jpg" />
<meta name="twitter:url" content="http://codedayify.y4ng.com" />
<meta name="twitter:domain" content="codedayify.y4ng.com" />
<meta name="twitter:title" content="Spectrafy" />
<meta name="twitter:description" content="Spectrafy your profile picture!" />
<!-- <meta name="twitter:image" content="https://codeday.org/assets/img/og.jpg" /> -->
<meta name="twitter:url" content="http://spectrafy.sosopectra.com" />
<meta name="twitter:domain" content="http://spectrafy.sosopectra.com" />

<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">

Expand Down Expand Up @@ -100,7 +99,7 @@

<body>

<a href="https://github.com/justinyangusa/CodeDay-ify"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<a href="https://github.com/janetfang/spectrafy"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>

<div class="container">
<h1>CodeDay-ify</h1>
Expand All @@ -112,7 +111,7 @@ <h4>Accepted formats: PNG, JPG, or JPEG</h4>
<label for="imagefile">Choose an image</label>
<input type="file" name="imagefile" id="imagefile">
</div>
<input type="submit" class="btn" value="CodeDay-ify!" id="codedayify"></input>
<input type="submit" class="btn" value="Spectrafy!" id="spectrafy"></input>
</form>
<p>Not working? Create one with the <a href="https://github.com/justinyangusa/CodeDay-ify/raw/master/mask.psd">Photoshop template</a> instead.</p>
</div>
Expand All @@ -122,4 +121,4 @@ <h4>Accepted formats: PNG, JPG, or JPEG</h4>
</footer>

</body>
</html>
</html>