SecureAPI is a simple Firebase Cloud Function that relays insecure http APIs into secured https APIs. This comes in handy when some API providers charge you for https APIs. :wink
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
function parseVideo (url) { | |
// - Supported YouTube URL formats: | |
// - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
// - http://youtu.be/My2FRPA3Gf8 | |
// - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
// - Supported Vimeo URL formats: | |
// - http://vimeo.com/25451551 | |
// - http://player.vimeo.com/video/25451551 | |
// - Also supports relative URLs: | |
// - //player.vimeo.com/video/25451551 |
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
<?php | |
/** | |
* GIT DEPLOYMENT SCRIPT | |
* | |
* Used for automatically deploying websites via github or bitbucket, more deets here: | |
* https://gist.github.com/riodw/71f6e2244534deae652962b32b7454e2 | |
* How To Use: | |
* https://medium.com/riow/deploy-to-production-server-with-git-using-php-ab69b13f78ad | |
*/ | |
// The commands |
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
#include<stdio.h> | |
#include <OpenGL/gl.h> | |
#include <GLUT/glut.h> | |
void myInit (void){ | |
glClearColor(1.0, 1.0, 0.0, 1.0); | |
glColor3f(0.2, 0.5, 0.4); | |
glPointSize(10.0); | |
gluOrtho2D(0, 500, 0, 500); | |
} |
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 java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Iterator; | |
import java.lang.Number; | |
public class MyMathClass<T, V extends Number> { | |
public double Average (HashMap<T, V> hashmp){ | |
double count = 0; | |
double sum = 0; |
I hereby claim:
- I am suvink on github.
- I am suvink (https://keybase.io/suvink) on keybase.
- I have a public key ASDsYLySGfqQFtS2U5egWwxypFOUmh0JN2qvZN4FaHxv_Qo
To claim this, I am signing this object:
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"}]} |
OlderNewer