Skip to content

Instantly share code, notes, and snippets.

View P1xt's full-sized avatar
🏠
Working from home

P1xt P1xt

🏠
Working from home
  • Freelance
  • Minneapolis, MN, USA
View GitHub Profile
@P1xt
P1xt / practice.py
Last active January 30, 2018 20:45 — forked from mbabaian/practice.py
The python program only publishes the first item in the query. I'd like to iterate through all items and publish them to HTML but can't figure out how.
# Practicing call to DPLA and getting data from it, then displaying results via html
import webbrowser
from operator import itemgetter
import requests
f=open('result.html', 'w')
# Make an api call and store the response.
url = "https://api.dp.la/v2/items?q=penguins&api_key=aefc7b2874411888e4e06b515935c19c"
@P1xt
P1xt / download_zeal_user_docsets.py
Last active August 21, 2021 20:23 — forked from crmne/download_zeal_user_docsets.py
A solution to the lack of UI for Dash's user docsets in Zeal. Uses Python 3 and easygui (pip3 install easygui)
import os
import json
import tarfile
import urllib.request
import easygui
import configparser
user_docsets_url = 'https://dashes-to-dashes.herokuapp.com/docsets/contrib'
app_title = 'Download Zeal user docsets'
@P1xt
P1xt / bonfire-exact-change.js
Created December 9, 2015 18:10 — forked from anonymous/bonfire-exact-change.js
http://www.freecodecamp.com/p1xt 's solution for Bonfire: Exact Change
// Bonfire: Exact Change
// Author: @p1xt
// Challenge: http://www.freecodecamp.com/challenges/bonfire-exact-change
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function drawer(price, cash, cid) {
var change = [];
var types = ['PENNY',
'NICKEL',
'DIME',
@P1xt
P1xt / gist:8965731
Created February 12, 2014 22:20 — forked from mstssk/gist:4234745