Skip to content

Instantly share code, notes, and snippets.

" author h4k1mou
" Add pathogen to vim
execute pathogen#infect()
" Enable file type specific plugins
filetype plugin on
" Set color scheme
set t_Co=256
<!doctype html>
<title>Imgur Memes</title>
<link href="{{ url_for('static', filename='style.css') }}" rel="stylesheet" />
<script type="text/javascript" src="{{ url_for('static', filename='masonry.pkgd.min.js') }}"></script>
<script type="text/javascript">
var memes = document.querySelector('.memes')
var masonry = new Masonry(memes, {
columnWidth: 200,
itemSelector: '.meme'
});
#
# /etc/apache2/httpd.conf
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.2/> for detailed information about
# the directives.
# Based upon the default apache configuration file that ships with apache,
# which is based upon the NCSA server configuration files originally by Rob
`deploy.wsgi file`
#!/usr/bin/python
from color import app
import sys
# add app path to python's path
sys.path.insert(0, "/home/hakim/public_html/flaskColourlovers")
# initialize wsgi app
application = app
#
# VirtualHost template
# Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf.
# Files must have the .conf suffix to be loaded.
#
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints
# about virtual hosts.
#
# NameVirtualHost statements can be added to /etc/apache2/listen.conf.
#
#
# VirtualHost template
# Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf.
# Files must have the .conf suffix to be loaded.
#
# See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints
# about virtual hosts.
#
# NameVirtualHost statements can be added to /etc/apache2/listen.conf.
#
var s2 = ee.ImageCollection('COPERNICUS/S2');
var collection = s2.filterDate('2017-12-20', '2018-01-07').filterBounds(ee.Geometry.Point([3, 37]));
var image = ee.Image(collection.sort('CLOUDY_PIXEL_PERCENTAGE').first());
Map.addLayer(image, {bands: ['B4', 'B3', 'B2'], min: 0, max: 1500});