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
| #!/usr/bin/env python | |
| # Usage: | |
| # s3-presign-url path/to/object | |
| # | |
| # 1) Install boto3: | |
| # pip install boto3 | |
| # 2) Configure aws: | |
| # aws configure | |
| # 3) Change the bucket name in this script (below) |
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
| // Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core? | |
| L.TileLayer.Common = L.TileLayer.extend({ | |
| initialize: function (options) { | |
| L.TileLayer.prototype.initialize.call(this, this.url, options); | |
| } | |
| }); | |
| (function () { | |
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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| python_3_email_with_attachment.py | |
| Created by Robert Dempsey on 12/6/14. | |
| Copyright (c) 2014 Robert Dempsey. Use at your own peril. | |
| This script works with Python 3.x | |
| NOTE: replace values in ALL CAPS with your own values |
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
| #!/bin/bash | |
| # rename TMS tiles to the XYZ schema | |
| # no quoting, since all files have simple numeric names | |
| # do not run this anywhere else than INSIDE your tiles directory | |
| # run it like this: find . -name "*.png" -exec ./tms2xyz.sh {} \; | |
| filename=$1 | |
| tmp=${filename#*/} # remove to first / |
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
| <?php | |
| //set up pods::find parameters to limit to 5 items | |
| $param = array( | |
| 'limit' => 5, | |
| ); | |
| //create pods object | |
| $pods = pods('pod_name', $params ); | |
| //check that total values (given limit) returned is greater than zero | |
| if ( $pods->total() > 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
| { | |
| "name": "flare", | |
| "children": [ | |
| { | |
| "name": "analytics", | |
| "children": [ | |
| { | |
| "name": "cluster", | |
| "children": [ | |
| {"name": "AgglomerativeCluster", "size": 3938}, |
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 urllib | |
| import json | |
| from bs4 import BeautifulSoup | |
| from collections import namedtuple | |
| Video = namedtuple("Video", "video_id title duration views thumbnail") | |
| def parse_video_div(div): | |
| video_id = div.get("data-context-item-id", "") | |
| title = div.find("a", "yt-uix-tile-link").text |
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
| /********************* | |
| Contact Form 7 Styles - | |
| If you want to leave these colours as they are, then do so, | |
| otherwise, wap grey and green for your brand colours in your MIXINS file | |
| *********************/ | |
| $dark: rgb(50,50,50); | |
| $green: rgb(0,200,100); | |
| div.wpcf7 { | |
| margin: 0; |