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
| From fcb7e94b6c0adf7427326aa50e7f8a9267b1e5f6 Mon Sep 17 00:00:00 2001 | |
| From: Aniruddha Adhikary <[email protected]> | |
| Date: Tue, 26 May 2015 09:36:42 +0600 | |
| Subject: [PATCH 1/1] telephony: add mediatek mt65x2 support | |
| Change-Id: I8866ca89bb933bc1e57e5316c8579cf7b23294cb | |
| --- | |
| src/java/com/android/internal/telephony/RIL.java | 2 +- | |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
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
| from bottle import run, route | |
| import json | |
| list_of_movies = ['The King of Pythons', "The Lord of the Horns"] | |
| @route('/movies') | |
| def get_movies(): | |
| return json.dumps(list_of_movies) | |
| run(host='localhost', port=8080) |
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 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 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 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 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 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 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 random | |
| letters = (("ই", "ঈ"), ("দ",), (" ",), ("মো", "মু"), ("বা",), ("র", "রা", "রো"), ("ক",)) | |
| greetings = "".join([letter_group[random.randrange(len(letter_group))] for letter_group in letters]) | |
| print(greetings) |
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
| 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 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
| 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 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 {LinearClient} from '@linear/sdk' | |
| if (!process.env.LINEAR_API_KEY) { | |
| throw new Error('Linear API key is required, set LINEAR_API_KEY environment variable') | |
| } | |
| const client = new LinearClient({ | |
| apiKey: process.env.LINEAR_API_KEY | |
| }) |
OlderNewer