Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
; A REPL-based, annotated Seesaw tutorial | |
; Please visit https://github.com/daveray/seesaw for more info | |
; | |
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
; Seesaw's basic features and philosophy, but only scratches the surface | |
; of what's available. It only assumes knowledge of Clojure. No Swing or | |
; Java experience is needed. | |
; | |
; This material was first presented in a talk at @CraftsmanGuild in | |
; Ann Arbor, MI. |
Using Requests and Beautiful Soup, with the most recent Beautiful Soup 4 docs.
Install our tools (preferably in a new virtualenv):
pip install beautifulsoup4
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
import graphviz as gv | |
g1 = gv.Graph(format='svg') | |
g1.node('A') | |
g1.node('B') | |
g1.edge('A', 'B') | |
print(g1.source) |
""" | |
Author: Rafeh Qazi. | |
Program: Anagram finder. | |
Description: Return a sorted list with all non-anagrams omitted. | |
Constraints: No imports. | |
input: anagram_finder(['star', 'rats', 'cats', 'tacs', 'dog']) | |
output: ['cats', 'rats', 'star', 'tacs'] | |
""" | |
ipython notebook --ip=0.0.0.0 --port=8080 --no-browser |
{% endcache %} | |
<script> | |
// TODO: change the instances of APP_ID to your specific app_id value | |
{% if current_user == null %} | |
window.intercomSettings = { | |
app_id: "APP_ID" | |
}; |
//Example 1 - Calculate average value of an array (transform array into a single number) | |
var scores = [89, 76, 47, 95] | |
var initialValue = 0 | |
var reducer = function (accumulator, item) { | |
return accumulator + item | |
} | |
var total = scores.reduce(reducer, initialValue) | |
var average = total / scores.length | |
/*Explain about function |
import pafy | |
import os | |
import glob | |
import re | |
from airtable import Airtable | |
from airtable.auth import AirtableAuth | |
import requests | |
from pathlib import Path | |
from webvtt import WebVTT |