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 yfinance as yf | |
from numerapi import CryptoAPI | |
import pandas as pd | |
import numpy as np | |
import warnings | |
import datetime | |
api = CryptoAPI() | |
api.download_dataset( |
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 numpy as np | |
import lightgbm as lgb | |
from sklearn.datasets import load_iris | |
from sklearn.metrics import confusion_matrix | |
import time | |
# Load Iris dataset | |
iris = load_iris() | |
# Separate features (X) and target (y) |
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
<?php | |
// no direct access | |
defined('_JEXEC') or die; | |
class plgContentHelloworld extends JPlugin | |
{ | |
public function onContentAfterTitle($context, &$article, &$params, $limitstart) | |
{ | |
return "<p>Hello World!</p>"; |
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
sql_query = """ | |
SELECT main_user.id, age, gender, race, height, weight, drinks, tobacco, illegal_drugs, | |
prescription_drugs, network_size, likes, media, follows, followed_by, comments | |
FROM main_user | |
JOIN main_survey ON main_user.id = main_survey.id | |
JOIN ( | |
select | |
sum(likes) as likes, | |
sum(comments) as comments, | |
survey_id as id |
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
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
</head> | |
<script type="text/javascript"> | |
jQuery(function($){ | |
$(document).ready(function () { | |
GetLatestReleaseInfo(); | |
}); |