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
NOI Leaderboard for Sat May 15 2021 09:50:00 GMT+0000 (Coordinated Universal Time) | |
{"models":[{"hacker_id":5288736,"language":null,"rank":1,"score":442.5,"time_taken":22140,"index":0,"hacker":"thithiesha","avatar":"https://hrcdn.net/s3_pub/hr-avatars/cbfb269c-2044-4bd8-a6d4-d75ee039db59/150x150.png","country":"Sri Lanka","school":"Ananda College","company":null,"timestamp":1621070993,"submitted_at":"20 minutes","is_multiple_contest":false,"level":5},{"hacker_id":4881739,"language":null,"rank":2,"score":420,"time_taken":32362,"index":1,"hacker":"mindiyak","avatar":"https://d3rpyts3de3lx8.cloudfront.net/hackerrank/assets/gravatar.jpg","country":"Sri Lanka","school":null,"company":null,"timestamp":1621070965,"submitted_at":"21 minutes","is_multiple_contest":false,"level":5},{"hacker_id":8736518,"language":null,"rank":2,"score":420,"time_taken":51339,"index":2,"hacker":"rapiram31","avatar":"https://d3rpyts3de3lx8.cloudfront.net/hackerrank/assets/gravatar.jpg","country":"Sri Lanka","school":"Hindu College Colombo |
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
def remove_outlier(df_in, col_name): | |
q1 = df_in[col_name].quantile(0.25) | |
q3 = df_in[col_name].quantile(0.75) | |
iqr = q3-q1 #Interquartile range | |
fence_low = q1-1.5*iqr | |
fence_high = q3+1.5*iqr | |
df_out = df_in.loc[(df_in[col_name] > fence_low) & (df_in[col_name] < fence_high)] | |
return df_out |
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
def fis_data_to_dataframe(fis_data): | |
""" Creates a DataFrame from list of FIS responses | |
""" | |
COLUMNS = ['channel', 'date', 'min', 'max', 'mean', 'stDev'] | |
data = [] | |
for fis_response in fis_data: | |
for channel, channel_stats in fis_response.items(): | |
for stat in channel_stats: | |
row = [int(channel[1:]), parse_time(stat['date'], force_datetime=True)] |
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
{"examCode":"be093796eb","proctor":{"proctorId":"612872b123f7f45ab8d1dedb","chatId":"128699"},"students":[{"index":"18020222","chatId":"52202"},{"index":"18020111","chatId":"49624"}]} |
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
{ | |
"mentors": [ | |
{ | |
"mentor": "Suvin Nimnaka", | |
"job": "GitHub Campus Expert", | |
"color": "#ff7500", | |
"img": "https://i.imgur.com/W7bLOOv.jpg", | |
"officeimg": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/91/Octicons-mark-github.svg/2048px-Octicons-mark-github.svg.png", | |
"description": "Web designing and development is at the core of the modern internet and is a complex yet essentiel skill in navigating through the digital landscape. The Web Designing and development sessions of Richmond Live Academy conducted by Suvin Nimnaka, takes a look at the fundamentals of web design and inspires to create and develop stunning websites." | |
}, |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://unpkg.com/@asgardeo/auth-js@latest/dist/asgardeo-auth.production.min.js"></script> | |
<title>Document</title> | |
</head> | |
<body> |
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 numpy as np | |
def main(): | |
print('\n') | |
print('TRUEL_SIMULATION\n') | |
truel_num = 1000 | |
p_str = input('Enter player accuracies between 0 and 1, in a vector [*,*,*]: ') | |
arr = [float(i.strip()) for i in p_str[1:-1].split(",")] | |
p = np.array(arr).tolist() | |
player_num = len(p) |
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
//Reverse an array using a stack | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine ("Hello Mono World"); | |
int[] arr = {1,3,4,9,8}; | |
Stack myStack = new Stack(); | |
for (int i = 0; i < arr.Length; i = i + 1) | |
{ |
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
// server.js | |
// | |
// Use this sample code to handle webhook events in your integration. | |
// | |
// 1) Paste this code into a new file (server.js) | |
// | |
// 2) Install dependencies | |
// npm install stripe | |
// npm install express | |
// |
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
#!/usr/bin/env pybricks-micropython | |
from pybricks.hubs import EV3Brick | |
from pybricks.ev3devices import Motor, ColorSensor | |
from pybricks.parameters import Port | |
from pybricks.tools import wait | |
from pybricks.robotics import DriveBase | |
from random import randint | |
# Initialize EV3 Brick |