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 gen | |
import math | |
import numpy | |
import random | |
import statistics as stat | |
def chunk(l, n): | |
''' | |
Splits a list l into a list of n new lists | |
''' |
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 calcPoints(team, event): | |
teamMatches = tba.team_matches(team, event, None, True) | |
draftPoints = 0 | |
rankPoints = 0 | |
elimPoints = 0 | |
if teamMatches != []: | |
try: | |
#Use team status instead of event_district_points since SLFF counts elims and awards points differently... | |
teamStats = tba.team_status(team, event) |
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 <stdlib.h> | |
#include <omp.h> | |
void foo(int rank) | |
{ | |
static int x = 5; | |
x++; | |
printf("%d from %d\n", x, rank); | |
} |
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
The stars at night are big and bright | |
Deep in the heart of Texas | |
The prairie sky is wide and high | |
Deep in the heart of Texas | |
The sage in bloom is like perfume | |
Deep in the heart of Texas | |
Reminds me of the one that I love | |
Deep in the heart of Texas |
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 requests, geocoder | |
import pandas as pd | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
headers = {'X-TBA-App-Id': 'pchild:cdUsers:401'} | |
currentTime = datetime.now().strftime("%Y/%m/%d %H:%M") | |
def getTeamData(teamNumber): | |
print('Getting events for team ' + str(teamNumber)) |
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
module['exports'] = function team(hook) { | |
// hook.io has a range of node modules available - see | |
// https://hook.io/modules. | |
// We use request (https://www.npmjs.com/package/request) for an easy way to | |
// make the HTTP request. | |
var request = require('request-promise'); | |
var cheerio = require('cheerio'); | |
// The parameters passed in via the slash command POST request. |