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
const axios = require("axios"); | |
exports.handler = async (event) => { | |
const jwksUrls = [ | |
'https://foo.au.auth0.com/.well-known/jwks.json', | |
'https://bar.au.auth0.com/.well-known/jwks.json', | |
'https://baz.au.auth0.com/.well-known/jwks.json', | |
]; | |
const responses = await Promise.all(jwksUrls.map((url) => axios.get(url))); |
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
district | voterTurnout | ||
---|---|---|---|
0 | Bagerhat | 78.7725 | |
1 | Bandarban | 58.16 | |
2 | Barguna | 64.92 | |
3 | Barisal | 65.51714285714284 | |
4 | Bhola | 56.775000000000006 | |
5 | Bogra | 80.89857142857143 | |
6 | Brahmanbaria | 71.33166666666666 | |
7 | Chandpur | 65.06500000000001 | |
8 | Chittagong | 70.97533333333334 |
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 python | |
import urllib2 | |
import json | |
import os | |
from datetime import datetime | |
import re | |
params = { |
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 random | |
letters = (("ই", "ঈ"), ("দ",), (" ",), ("মো", "মু"), ("বা",), ("র", "রা", "রো"), ("ক",)) | |
greetings = "".join([letter_group[random.randrange(len(letter_group))] for letter_group in letters]) | |
print(greetings) |
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 | |
from BeautifulSoup import BeautifulSoup as BS | |
import re | |
def get_dl_page(package_id): | |
get_request = requests.get('https://apkpure.com/search?q=' + package_id) | |
page = BS(get_request.text) | |
# it is assumed that the first search result is the thing we are looking for | |
link_ps = page.findAll('p', {'class': 'search-title'}) | |
page_link = link_ps[0].a.get('href') |
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 python | |
# -*- coding: utf-8 -*- | |
import urllib | |
import json | |
version = "15.10" | |
arch = "i386" # i386 or amd64 | |
mirrorlist = ["http://ubuntu.mirror.mendoza-conicet.gob.ar/", "http://releases.ubuntu.unc.edu.ar/", "http://ftp.iinet.net.au/pub/ubuntu-releases/", "http://mirror.aarnet.edu.au/pub/ubuntu/releases/", "http://mirror.netspace.net.au/pub/ubuntu-releases/", "http://ubuntu.mirror.serversaustralia.com.au/ubuntu-releases/", "http://ubuntu.mirror.uber.com.au/releases/", "http://mirror.internode.on.net/pub/ubuntu/releases/", "http://ubuntu.lagis.at/releases/", "http://mirrors.ispros.com.bd/ubuntu-release/", "http://by.releases.ubuntu.com/", "http://ubuntu-releases.mirror.nucleus.be/", "http://ubuntu.mirrors.skynet.be/pub/ubuntu.com/releases/", "http://bw.releases.ubuntu.com/", "http://ubuntu.c3sl.ufpr.br/releases/", "http://mirror.globo.com/ubuntu/releases/", "http://mirror.pop-sc.rnp.br/mirror/ubuntu/", "http://ubuntu.mirror.pop-sc.rnp.br/mirror/ubuntu-releases/", "http://mirror.unesp.br/ubuntu |
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 base_n_to_decimal(number, base, \ | |
symbolarray = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']): | |
if(base > len(symbolarray)): | |
raise ValueError | |
result = 0 | |
number = str(number) | |
for i in range(0, len(number)): |
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 decimal_to_base_n(number, base, \ | |
symbolarray = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']): | |
if(base > len(symbolarray)): | |
raise ValueError | |
result = '' | |
number = int(number) | |
i = 0 |
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 urllib2 | |
from BeautifulSoup import BeautifulSoup | |
def get_html(exam, year, board, roll): | |
"""Get the result page HTML output directly. | |
get_html(exam, year, board, roll)""" | |
base_url = "http://www.educationboardresults.gov.bd/regular" | |
base_index = 'index.php' |
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
var colors = ["#27ae60", "#3498db", "#9b59b6", "#34495e", "#d35400", "#D35400"]; //le flatui colors | |
var randomInt = function(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
}; | |
$(document).ready(function(){ | |
var colorint = randomInt(0,5); | |
$("body").css("background-color", colors[colorint]); | |
$(".btn-home-menu").css("color", colors[colorint]); |
NewerOlder