- Meet Python - Python Basics
- Sharing Your Code
- Files and Exceptions
- Persistence: Saving Data to Files
- Comprehending Data
- Custom Data Objects
- Web Development
- Mobile App Development
This file contains 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
body { | |
background-color: #d2b48c; | |
margin-left: 20%; | |
margin-right: 20%; | |
border: 2px dotted black; | |
padding: 10px 10px 10px 10px; | |
font-family: sans-serif; | |
} |
This file contains 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
require 'nokogiri' | |
input = $stdin.readlines.join | |
page = Nokogiri::HTML(input) | |
page.css('.example').each do |elem| | |
elem.inner_html = '<i>Environment diagram omitted.</i>' | |
end | |
page.css('img').remove |
Instructor: Jeffrey Way
To get up and running quickly on Ubuntu 12.04, try XAMPP for Linux.
This file contains 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
#! /bin/bash | |
# Author: Shirish Padalkar (https://twitter.com/_Garbage_) | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 infoq_presentation_url" | |
exit 1 | |
fi | |
url_with_spaces=`curl -A "Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10" $1 | grep "<source src=" | tr -dc "[:print:]"` |
Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
This file contains 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
<?php | |
/** | |
* I had to parse an XLSX spreadsheet (which should damn well have been a CSV!) | |
* but the usual tools were hitting the memory limit pretty quick. I found that | |
* manually parsing the XML worked pretty well. Note that this, most likely, | |
* won't work if cells contain anything more than text or a number (so formulas, | |
* graphs, etc ..., I don't know what'd happen). | |
*/ |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Subscriptions - [email protected]</title> | |
</head> | |
<body> | |
<outline text="PHP" title="PHP"> | |
<outline htmlUrl="http://mattallan.org" title="mattallan.org" xmlUrl="http://mattallan.org/feed.xml" type="rss" text="mattallan.org"/> | |
<outline title="asked.io" xmlUrl="https://asked.io/rss" type="rss" text="asked.io"/> | |
<outline htmlUrl="https://ocramius.github.io/" title="ocramius.github.io" xmlUrl="https://ocramius.github.io/atom.xml" type="rss" text="ocramius.github.io"/> |
This file contains 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
const currentYear = new Date().getFullYear() | |
const currentDayValue = new Date().getDate() | |
const currentDayName = () => { | |
const shortDayName = new Date().toDateString().split(' ')[0] | |
if (shortDayName === 'Mon') return 'Monday' | |
if (shortDayName === 'Tu' || shortDayName === 'Tue' || shortDayName === 'Tues') return 'Tuesday' | |
if (shortDayName === 'Wed') return 'Wednesday' | |
if (shortDayName === 'Th' || shortDayName === 'Thu' || shortDayName === 'Thur' || shortDayName === 'Thurs') return 'Thursday' | |
if (shortDayName === 'Fri') return 'Friday' | |
if (shortDayName === 'Sat') return 'Saturday' |
This file contains 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
#! /bin/bash | |
mkdir -p ./backgrounds | |
function get_google_device_art { | |
local device=$1 | |
# Get the Google Device backgrounds | |
curl "https://developer.android.com/distribute/marketing-tools/device-art-resources/$1/port_back.png" > "./backgrounds/$1_port_back.png" | |
curl "https://developer.android.com/distribute/marketing-tools/device-art-resources/$1/port_fore.png" > "./backgrounds/$1_port_fore.png" |
OlderNewer