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
var webpack = require('webpack'); | |
var path = require('path'); | |
module.exports = { | |
entry: [ | |
'webpack-dev-server/client?http://127.0.0.1:8080/', | |
'webpack/hot/only-dev-server', | |
'./src/index.js' | |
], | |
output: { |
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
defmodule Utils do | |
@username Application.get_env(:app_name, :username) | |
@password Application.get_env(:app_name, :password) | |
@base_url "https://api.intrinio.com/" | |
@headers %{"Authorization" => "Basic " <> Base.encode64("#{@username}:#{@password}")} | |
def page_loop(current_page \\ 1, acc \\ [], ticker \\ "") do | |
%HTTPoison.Response{body: response} = | |
HTTPoison.get! @base_url <> "prices?ticker=#{ticker}" <> | |
"&page_number=#{current_page}", @headers |
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 cv2 | |
from darkflow.net.build import TFNet | |
import numpy as np | |
import time | |
import tensorflow as tf | |
config = tf.ConfigProto() | |
config.gpu_options.allow_growth = True | |
sess = tf.Session(config=config) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 fs = require('fs'); | |
const request = require('request'); | |
// accepts twtr username | |
// retrieves and runs rosebud face mask model | |
// saves img pic to disk | |
function maskItUp(userName) { | |
request.get({url: `https://avatars.io/twitter/${userName}`, encoding: null}, function (err, response, body) { | |
// pass img to rosebud masks4all | |
// let masked = await processing |
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
class Solution: | |
def getAllElements(self, root1: TreeNode, root2: TreeNode) -> List[int]: | |
one = self.traverse(root1) | |
two = self.traverse(root2) | |
temp = one + (len(two) * [0]) | |
self.merge(temp, len(one), two, len(two)) | |
return temp |
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
date | value | |
---|---|---|
2007-04-23 | 93.24 | |
2007-04-24 | 95.35 | |
2007-04-25 | 98.84 | |
2007-04-26 | 99.92 | |
2007-04-29 | 99.8 | |
2007-05-01 | 99.47 | |
2007-05-02 | 100.39 | |
2007-05-03 | 100.4 | |
2007-05-04 | 100.81 |
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
//////////////////////////////////// | |
/* "dependencies": { | |
"@supabase/supabase-js": "^2.13.1", | |
"langchain": "^0.0.44" | |
} */ | |
//////////////////////////////////// | |
import { OpenAI } from "langchain/llms"; | |
import { |