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
// This program is designed to calculate the future GPA needed to | |
// raise a student's current GPA to a certain level | |
// Created by Ian Annase | |
// Last modified December 5, 2016 | |
// Copy and paste it to http://cpp.sh/ to run it | |
#include <iostream> | |
#include <iomanip> | |
using namespace std; |
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
// Travel through space with this educational C++ application | |
// Created by Ian Annase | |
#include <iostream> | |
using namespace std; | |
// function definitions | |
void Menu(); | |
void Spaceship(); | |
void BackToEarth(); |
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
all: space.cpp | |
g++ -g -Wall -std=c++11 space.cpp -o space1 |
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
/* Ian Annase | |
* January 21, 2017 | |
* Calculate the luminosity, precise star type, and habitable zone of a star based on | |
* its surface temperature and radius. | |
*/ | |
#include <iostream> | |
#include <iomanip> | |
#include <cmath> | |
#include <string> |
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
import GoogleMobileAds | |
class FirstViewController: UIViewController, UITextFieldDelegate, GADInterstitialDelegate { | |
// Your ad as a variable | |
var interstitialAd: GADInterstitial? | |
// Creates and loads an interstitial | |
func createAndLoadInterstitial() -> GADInterstitial { | |
let request = GADRequest() |
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
let when = DispatchTime.now() + 1 // change 1 to desired number of seconds | |
let launchedBefore = UserDefaults.standard.bool(forKey: "launchedBefore") | |
DispatchQueue.main.asyncAfter(deadline: when) { | |
if #available(iOS 10.3, *){ | |
if !launchedBefore { | |
SKStoreReviewController.requestReview() | |
UserDefaults.standard.set(true, forKey: "launchedBefore") | |
} else { | |
self.interstitialAd = self.createAndLoadInterstitial() | |
} |
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
$('#sc_uea_custom_amount_1').keyup(function(){ | |
var url = "https://blockchain.info/tobtc?currency=USD&value="; | |
var value = this.value; | |
var url2 = url + value; | |
$.get(url2, function(data){ | |
var returnText = '≈ ' + data + ' BTC'; | |
$('#input1').val(returnText); | |
}); | |
}); |
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
import UIKit | |
import AVFoundation | |
class ViewController: UIViewController, AVAudioPlayerDelegate { | |
var audioPlayer: AVAudioPlayer! | |
let soundArray = ["note1.wav", "note2.wav", "note3.wav", "note4.wav", "note5.wav", "note6.wav", "note7.wav"] | |
override func viewDidLoad() { | |
super.viewDidLoad() |
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
let alert = UIAlertController(title: "Awesome", message: "You've finished all the questions. Do you want to start over?", preferredStyle: .alert) | |
let restartAction = UIAlertAction(title: "Restart", style: .default, handler: { (UIAlertAction) in | |
self.startOver() | |
}) | |
alert.addAction(restartAction) | |
present(alert, animated: true, completion: nil) |
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
// | |
// ViewController.swift | |
// ARDicee | |
// | |
// Created by Ian on 9/30/17. | |
// Copyright © 2017 IanAnnase. All rights reserved. | |
// | |
import UIKit | |
import SceneKit |
OlderNewer