Product Name | Code Name | Pokémon Intro Generation | Evolution |
---|---|---|---|
Phone (1) | Abra | Gen 1 | 0 |
Phone (2) | Alakazam | Gen 1 | 2 |
Phone (2a) | Aerodactyl | Gen 1 | 0 |
Ear (1) | Aipom | Gen 2 | 0 |
Ear (2) | Azumarill | Gen 2 | 2 |
Ear (stick) | Bellossom | Gen 2 | 2 |
Ear | Entei | Gen 2 | 0 |
Ear (a) | Cleffa | Gen 2 | 0 |
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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
function makeApiCallAtSpecifiedTime(hour, minute) { | |
var date = new Date(); | |
var currentHour = date.getHours(); | |
var currentMinutes = date.getMinutes(); | |
// check if it is currently past the specified time | |
if (currentHour > hour || (currentHour === hour && currentMinutes > minute)) { | |
// if it is past the specified time, call the API immediately | |
callApi(); | |
} else { |
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 the necessary modules | |
import requests | |
import json | |
# Set your Amazon credentials | |
AMAZON_ACCESS_KEY = 'YOUR_ACCESS_KEY' | |
AMAZON_SECRET_KEY = 'YOUR_SECRET_KEY' | |
AMAZON_ASSOCIATE_TAG = 'YOUR_ASSOCIATE_TAG' | |
# Set the item you want to order |
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
// Define the audio context | |
var audioContext = new AudioContext(); | |
// Define the notes and their corresponding frequencies | |
var notes = { | |
'C': 16.35, | |
'C#': 17.32, | |
'D': 18.35, | |
'D#': 19.45, | |
'E': 20.60, |
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
function makeApiCall(time) { | |
// Get the current date and time | |
var now = new Date(); | |
// Set the date and time for the specified time | |
var specifiedTime = new Date(); | |
specifiedTime.setHours(time.hours); | |
specifiedTime.setMinutes(time.minutes); | |
specifiedTime.setSeconds(0); | |
specifiedTime.setMilliseconds(0); |
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
function turnMusicIntoVibrate(audioUrl) { | |
// Create an audio context | |
const audioContext = new AudioContext(); | |
// Create an analyser node | |
const analyser = audioContext.createAnalyser(); | |
analyser.fftSize = 8192; | |
// Load the audio file using fetch | |
fetch(audioUrl) |