Skip to content

Instantly share code, notes, and snippets.

View iannase's full-sized avatar
🎯
Focusing

Ian Annase iannase

🎯
Focusing
View GitHub Profile
//
// ViewController.swift
// ARDicee
//
// Created by Ian on 9/30/17.
// Copyright © 2017 IanAnnase. All rights reserved.
//
import UIKit
import SceneKit
//
// ViewController.swift
// ARDicee
//
// Created by Ian on 9/30/17.
// Copyright © 2017 IanAnnase. All rights reserved.
//
import UIKit
import SceneKit
@iannase
iannase / hashflare.py
Last active December 28, 2017 17:40
Hashflare profitability calculator
# Ian Annase
# 12/28/17
import math
import sys
from prettytable import PrettyTable
import datetime
while True:
# today
# Ian Annase
# 1/7/2018
import math
import requests
import json
import locale
from prettytable import PrettyTable
# number formatter
import sys
import math
from prettytable import PrettyTable
while True:
# user inputs
print()
litecoinPerDay = float(input("How much Litecoin was the L3+ earning per day in the beginning?: "))
litecoinPrice = float(input("How much will Litecoin be worth at the end of the year?: "))
print()
import requests
import json
while True:
# base URLs
globalURL = "https://api.coinmarketcap.com/v1/global/"
tickerURL = "https://api.coinmarketcap.com/v1/ticker/"
# get data from globalURL
request = requests.get(globalURL)
# Ian Annase
# 4/16/18
import os
import sys
import json
import spotipy
import webbrowser
import spotipy.util as util
from json.decoder import JSONDecodeError
@iannase
iannase / LocationSearchTable.swift
Last active April 11, 2019 08:43
Swift 4 version of the Map Tutorial code
import UIKit
import MapKit
class LocationSearchTable: UITableViewController {
weak var handleMapSearchDelegate: HandleMapSearch?
var matchingItems: [MKMapItem] = []
var mapView: MKMapView?
func parseAddress(selectedItem:MKPlacemark) -> String {
@iannase
iannase / soundscraper.py
Created April 8, 2018 22:13
Python web scraper that gets the new / top 50 charts, also allows you to play tracks using the selenium browser
from selenium import webdriver
import requests
import bs4
import os
# new, top, or mix url
top_url = "https://soundcloud.com/charts/top"
new_url = "https://soundcloud.com/charts/new"
track_url = "https://soundcloud.com/search/sounds?q="
artist_url = "https://soundcloud.com/search/people?q="
@iannase
iannase / mancala.py
Last active April 24, 2018 02:24
Two player mancala
# Ian Annase
# 2-player mancala
import time
def printBoard(m,p,e):
print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
print(e)
print()
print("Player " + p + "'s Turn")