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
using System.Text.Json.Serialization; | |
using RestSharp; | |
var client = new RestSharp.RestClient( | |
new RestClientOptions("http://localhost:8080/api/")); | |
var request = new RestRequest( | |
"users/teller-accounts/token_55mrwcpjtk43b2qevuhfakvowy", | |
Method.Get); |
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 tutorialStartTime = new Date(); | |
function doContinue(isCorrect) { | |
currentFrame++; | |
clearTimeout(correctAnswerTimeoutFunction); | |
resetTimersAndBackground(isCorrect); | |
if (currentFrame === tutorialFrames.length || (currentFrame > 4 && getScore() < percentStartOver)) { | |
saveFinalScore(); | |
var conclusion = '<br><p align="center"><b>' + student + ', you have reached the end of the tutorial, <?php echo str_replace(".txt", "", $tutorial); ?>.</b><br><?php echo uniqid() ?></p><div align="center">'; | |
conclusion += '<table border="2" padding="6" width="66%"><tr><td width="60%">Number of frames</td><td width="40%">' + tutorialFrames.length + '</td></tr>'; |
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_datareader.data as web | |
import pandas as pd | |
import datetime as dt | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
sns.set() | |
def get_series(name, start, end): | |
df = web.DataReader('^GSPC', 'yahoo', start=start, end=end)['Adj Close'] |
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
#!/usr/bin/env bash | |
# ~/.macos — https://mths.be/macos | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' | |
# Ask for the administrator password upfront | |
sudo -v |
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
def cai2php(lines): | |
import re | |
frames = [] | |
current_frame = None | |
for line in lines: | |
line = str(line, 'utf-8') | |
# first line of the frame text | |
if re.match("^[0-9]+\.", line): | |
current_frame = re.sub('^[0-9]+\.\s+', '', line.strip()) | |
# end of the frame text |
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 math | |
import os | |
import numpy as np | |
import pandas as pd | |
import scipy.stats as stats | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates | |
import us as us_states |
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
import json | |
import requests as r | |
import pprint | |
import sys | |
class Command: | |
def __init__(self) -> None: | |
self.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
2018-12-17 00:00:00 | 22 | item1 | |
---|---|---|---|
2018-12-17 01:00:00 | 26 | item1 | |
2018-12-17 02:00:00 | 23 | item1 | |
2018-12-17 03:00:00 | 25 | item1 | |
2018-12-17 04:00:00 | 201 | item1 |
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
2018-12-17 00:00:00 | 22 | item1 | |
---|---|---|---|
2018-12-17 01:00:00 | 26 | item1 | |
2018-12-17 02:00:00 | 23 | item1 | |
2018-12-17 03:00:00 | 25 | item1 | |
2018-12-17 04:00:00 | 201 | item1 | |
2018-12-17 05:00:00 | 17 | item1 | |
2018-12-17 06:00:00 | 18 | item1 | |
2018-12-17 07:00:00 | 27 | item1 | |
2018-12-17 08:00:00 | 54 | item1 | |
2018-12-17 09:00:00 | 37 | item1 |
NewerOlder