Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
# Get Graphics Magick | |
> cd / | |
> mkdir /dowload | |
> cd /download | |
> wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz | |
> tar -xzvf GraphicsMagick-LATEST.tar.gz | |
> cd GraphicsMagick-1.3.21 (or the lastest graphics magick) | |
# Install Graphics Magick | |
## Get libs |
# | |
# I inherited a large code base, where hundreds of code paths end up | |
# calling "common_function_called_in_gazillion_places". | |
# | |
# And the need arose for this function to access the HTTP request's | |
# headers... | |
# | |
# What to do? Refactor all the places leading up to here? In a dynamically | |
# typed language, with no compiler to tell us the places to refactor? | |
# |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
# ======================================================================================= | |
# Startup file with magic functions: %my_run, %add_custom_path, %clean_custom_path and | |
# %show_custom_path, which runs stuff in the python path as well as user specified paths. | |
# | |
# The %my_run command executes a script as %run does but searching the script in | |
# the user path in addition to python path. | |
# | |
# --------------------------------------------------------------------------------------- | |
# This is a modification of the code done by Gaute Hope <gaute.hope@nersc.no> due to | |
# IPython issue 101 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
pip install networkx distance pattern | |
In Flipboard's article[1], they kindly divulge their interpretation | |
of the summarization technique called LexRank[2]. |
#!/usr/bin/env python2.7 | |
""" | |
Parallel RSS-Feed Downloader | |
---------------------------- | |
Download contents by grabbing links from a given RSS-feed. | |
Works over HTTP,FTP,HTTPS protocol transparently. | |
Currently, works on Linux, Mac OSX, and possibly on other Unix as well. | |
But, _NOT_ on Windows * yet. | |
#BTC Ticker Light This script updates one of your Philip's Hue lights to be either red or green depending on if the current price of bitcoin is below or above the 24 hour weighted price.
##Install Dependencies
easy_install install beautifulhue
##The Script
Save this to a python file after customizing your Philip's Hue Bridge ip, username, and light_id.
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
Flask is a Python web framework that's steadily increasing in popularity within the webdev world. After reading so many great things about Flask, I decided to try it out myself. I personally find testing out a new framework difficult, because you must find a project complex enough to reveal the framework's quirks, but not so daunting as to take the fun out of the project. Luckily, my PHP/Wordpress powered website filled this role quite nicely - the website simply consists of static content, a contact page, and a blog. If I could not convert such a simple site over to Flask, I would immediately know that Flask and I would not make a good team.