This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"net/http/httputil" | |
"net/url" | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = "http://letsrevolutionizetesting.com/challenge" | |
while True: | |
data = requests.get(url, headers={"Accept":"application/json"}) | |
json = data.json() | |
print(json) | |
if 'follow' in json: | |
url = json['follow'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Join us at pitch x. x is a number between 1 and 553 such that the sum of | |
x's divisors (not including x) is greater than x but no subset of x's | |
divisors add up to exactly x | |
Run on Python 3.4.3 | |
tl;dr; result was 70 | |
""" | |
import itertools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "talent_solution/base_landing_page.html" %} | |
{% load talent_solution_tags %} | |
{% block header_img %}some_crappy_banner.png{% endblock %} | |
{% block header title %}Wow a new landing page{% endblock %} | |
{% block carousel %} | |
{# normally this is just DB-driven...#} | |
{% carousel 5 6 "blah" %} | |
{% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from webob.multidict import MultiDict | |
from wtforms import Form as BaseForm | |
from wtforms.csrf.core import CSRF as BaseCSRF | |
class Form(BaseForm): | |
def __init__(self, request, formdata=None, *args, **kwargs): | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns file-uploadr.views.upload | |
(:require [file-uploadr.views.common :as common] | |
[noir.response :as res] | |
[noir.content.pages :as pages]) | |
(:use noir.core | |
hiccup.core | |
hiccup.page-helpers | |
hiccup.form-helpers)) | |
(defpage "/" [] |
NewerOlder