This file contains hidden or 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 pandas as pd | |
import requests | |
import time | |
from datetime import datetime | |
from ide_utils.input_tables import load_dask | |
from ide_utils.output_table import send_to_output_table | |
API_TOKEN = "YOUR TOKEN" | |
base_url = "https://cloud.iexapis.com/v1" | |
endpoint = "/stock/{}/chart" |
This file contains hidden or 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 sourceCodeWithCompletion = fileTextToCursor + completion; | |
const sourceCodeArr = sourceCodeWithCompletion.split('\n') | |
const completionArr = completion.split('\n'); | |
const regex = new RegExp(completionArr, 'g'); | |
// loop through the completionArray and apply the decoration to the text | |
for (let line = 0; line < sourceCodeArr.length; line++) { | |
// loop through each line of the regex | |
for (let lineRegex = 0; lineRegex < completionArr.length; lineRegex++) { |
This file contains hidden or 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 {QueryDocumentSnapshot} from "@google-cloud/firestore"; | |
import * as functions from "firebase-functions"; | |
import {EventContext} from "firebase-functions"; | |
import {Storage} from "@google-cloud/storage"; | |
export const shareToAnotherGraph = async (snap: QueryDocumentSnapshot, _context: EventContext, db: FirebaseFirestore.Firestore) => { | |
const data = snap.data(); | |
// The ID of your GCP project | |
const projectId = "xx"; | |
// The ID of the bucket the original object is in |
This file contains hidden or 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 {QueryDocumentSnapshot} from "@google-cloud/firestore"; | |
import * as functions from "firebase-functions"; | |
import {EventContext} from "firebase-functions"; | |
import {Storage} from "@google-cloud/storage"; | |
export const shareToAnotherGraph = async (snap: QueryDocumentSnapshot, _context: EventContext, db: FirebaseFirestore.Firestore) => { | |
const data = snap.data(); | |
// The ID of your GCP project | |
const projectId = "example"; | |
// The ID of the bucket the original object is in |
This file contains hidden or 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
package bag; | |
/* | |
* ArrayBag.java | |
* | |
* Computer Science E-22 | |
* | |
* Modified by: <your name>, <your e-mail address> | |
*/ | |
import java.util.*; |
This file contains hidden or 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
#include <cs50.h> | |
#include <stdio.h> | |
int main(void) | |
{ | |
// prompts the user for a credit card number | |
long num; | |
num = get_long("Enter card number: "); |