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
license: gpl-3.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
license: gpl-3.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
license: gpl-3.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
license: gpl-3.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
''' A faithful Python plug for party-time.js | |
developed by @HarryStevens at HindustanTimesLabs | |
https://github.com/HindustanTimesLabs/party-time/ | |
import party as pt | |
pt.convert("BJP") | |
# "Bharatiya Janata Party" | |
pt.convert("BJP", { "greedy": False }) | |
# { abbr: "BJP", name: "Bharatiya Janata Party" } |
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 | Sno | Assembly | Asno | Address | Status | |
---|---|---|---|---|---|---|
North | 1 | NARELA | 1 | Sant Kirpal Singh Public Trust,811,GT Road Alipur,Delhi 36 | Functioning | |
North | 2 | NARELA | 1 | Hno.246,Tyagi mohalla ,Narela,Delhi 36 | Functioning | |
Central | 3 | Burari | 2 | PO Building ,Near Takia Chowk,Burari | Functioning | |
Central | 4 | Burari | 2 | Mohalla Clinic Nathupura: - Budh Bazar Road,Nathupura,Burari,Delhi | Functioning | |
Central | 5 | Timarpur | 3 | Khasara No -120,Gali No-17 ,Main Road,Wazirabad | Functioning | |
North | 6 | Adarsh Nagar | 4 | H.No.467 D Near Budh Mandir,Village Azadpur | Functioning | |
North | 7 | Badli | 5 | A-215,Bhalaswa Dairy Near Police Station | Functioning | |
North West | 8 | Rithala | 6 | H.No. 231-32,Kh. No.28/ 19,Mange Ram Park,Budh,Vihar Phase-2,Deihi-86 | Functioning | |
North West | 9 | Rithala | 6 | F4/6,Sector 16 Rohini,Delhi 85 | Functioning |
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
{ | |
"width": 400, | |
"height": 200, | |
"padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, | |
"data": [ | |
{ | |
"name": "table", | |
"values": [ | |
{"x": 1, "y": 28}, {"x": 2, "y": 55}, | |
{"x": 3, "y": 43}, {"x": 4, "y": 91}, |
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
var script= document.createElement('script'); | |
script.type= 'text/javascript'; | |
script.src= 'script.js'; | |
document.head.appendChild(script); |
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
alias gst='git status' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff | mate' | |
alias gau='git add --update' | |
alias gc='git commit -v' | |
alias gca='git commit -v -a' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias gco='git checkout' |
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
''' | |
Benchmarking pandas order vs algos.kth_smallest | |
''' | |
import pandas as pd | |
s = pd.Series(np.random.randint(100000,size=100000)) | |
def fast_order(x, n): | |
v = pd.algos.kth_smallest(x.values.astype(float),n) | |
return x[x<=v] |
NewerOlder