The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| import Queue | |
| initial_page = "http://www.initial_page.com" | |
| url_queue = Queue.Queue() | |
| seen = set() | |
| seen.insert(initial_page) | |
| url_queue.put(initial_page) |
| """ A web photo, picture grabber """ | |
| import sys | |
| import urllib | |
| import urllib2 | |
| from HTMLParser import HTMLParser | |
| import re | |
| ''' | |
| The WretchWebParser is used to parse the content HTML of wretch.cc | |
| ''' |
| import java.io.BufferedReader; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.io.Reader; | |
| import java.net.HttpURLConnection; | |
| import java.net.MalformedURLException; | |
| import java.net.URI; |
| machine: | |
| timezone: Asia/Tokyo | |
| xcode: | |
| version: 7.3 | |
| environment: | |
| XCODE_SCHEME: *** | |
| XCODE_WORKSPACE: ***.xcworkspace | |
| GYM_CODE_SIGNING_IDENTITY: 'iPhone Distribution: ***. (***)' | |
| dependencies: | |
| cache_directories: |
| 'use strict'; | |
| /** | |
| * Authentication with token and email for every server request. (Sets HTTP headers) | |
| * | |
| * This interceptor shows the error from the server (i18n key). | |
| * Also sets global error variable if the request fails and redirects the user to '/' when he is not authorized. | |
| * @see http://engineering.talis.com/articles/client-side-error-logging/ | |
| */ | |
| app.factory('authInterceptor', function ($rootScope, $q, $cookies, $location, $timeout) { |
| import React from 'react' | |
| var Child = React.createClass({ | |
| getInitialState: function(){ | |
| console.log('Child getInitialState'); | |
| return { value: 'start'} | |
| }, | |
| getDefaultProps: function(){ | |
| console.log('Child getDefaultProps'); |
| # First install homebrew | |
| ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
| # Choose the name of the virtualenv as simplecv | |
| virtualenv simplecv --no-site-packages | |
| source simplecv/bin/activate | |
| # This activates the virtualenv; your command prompt should change from `$` to `(simplecv)$` | |
| # Next the dependencies | |
| sudo easy_install pip # Can be ignored, if pip already present |
| public class MainActivity extends AppCompatActivity { | |
| @Bind(R.id.tvFlat) | |
| TextView tvFlat; | |
| @Bind(R.id.tvJson) | |
| TextView tvJson; | |
| private RawDataReader rawDataReader; | |
| private ReposListJson reposListJson; |