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
// ==UserScript== | |
// @name NoBroker Google Maps | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-09 | |
// @description Adds a google maps search link beside apartment complex listings when you open them on map view | |
// @author Bibhas D | |
// @match https://www.nobroker.in/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=nobroker.in | |
// @grant none | |
// ==/UserScript== |
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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
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
<TaskerData sr="" dvi="1" tv="5.8.3"> | |
<Profile sr="prof2" ve="2"> | |
<cdate>1565066300570</cdate> | |
<edate>1567394645768</edate> | |
<id>2</id> | |
<mid0>3</mid0> | |
<nme>Bank SMS Forward</nme> | |
<Event sr="con0" ve="2"> | |
<code>7</code> | |
<pri>0</pri> |
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 | |
# Generated by BigMap 2. Permalink: http://bigmap.osmz.ru/bigmap.php?xmin=12200&xmax=12231&ymin=7120&ymax=7143&zoom=14&scale=256&tiles=mapnik | |
import io, urllib2, datetime, time, re, random | |
from PIL import Image, ImageDraw | |
# ^^^^^^ install "python-pillow" package | pip install Pillow | easy_install Pillow | |
(zoom, xmin, ymin, xmax, ymax) = (14, 12200, 7120, 12231, 7143) | |
layers = ["http://tile.openstreetmap.org/!z/!x/!y.png"] | |
attribution = 'Map data (c) OpenStreetMap' |
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
Abbr. | Name | UTC offset | offset | offset_seconds | |
---|---|---|---|---|---|
ACDT | Australian Central Daylight Savings Time | UTC+10:30 | 10.5 | 37800 | |
ACST | Australian Central Standard Time | UTC+09:30 | 9.5 | 34200 | |
ACT | ASEAN Common Time | UTC+08 | 8 | 28800 | |
ADT | Atlantic Daylight Time | UTC−03 | -3 | -10800 | |
AEDT | Australian Eastern Daylight Savings Time | UTC+11 | 11 | 39600 | |
AEST | Australian Eastern Standard Time | UTC+10 | 10 | 36000 | |
AFT | Afghanistan Time | UTC+04:30 | 4.5 | 16200 | |
AKDT | Alaska Daylight Time | UTC−08 | -8 | -28800 | |
AKST | Alaska Standard Time | UTC−09 | -9 | -32400 |
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
<a href="http://t.co/acgTzWKR" class="twitter-timeline-link" target="_blank" data-expanded-url="http://tcrn.ch/NTr6S8" title="http://tcrn.ch/NTr6S8" dir="ltr" wotsearchprocessed="true"> | |
<span class="invisible">http://</span> | |
<span class="js-display-url">tcrn.ch/NTr6S8</span> | |
<span class="invisible"></span> | |
<span class="tco-ellipsis"> | |
<span class="invisible"> </span> | |
</span> | |
</a> |
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
#!/bin/sh | |
SRC_DIR=$1 | |
DEST_DIR=$2 | |
for _file in `find $SRC_DIR -type f`; | |
do | |
DATE=`date -r $_file +%F` | |
DIR="$DEST_DIR$DATE" | |
echo "$_file -> $DIR" |
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
// ==UserScript== | |
// @name Tweetdeck T.co bypass | |
// @namespace http://userscripts.org/users/192333 | |
// @version 1 | |
// @include http*://*twitter.com/* | |
// @grant GM_deleteValue | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @grant GM_info | |
// ==/UserScript== |
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 django.core.files import File | |
from django.core.files.temp import NamedTemporaryFile | |
def save_image_from_url(model, url): | |
r = requests.get(url) | |
img_temp = NamedTemporaryFile(delete=True) |
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 pstats | |
import re | |
import sys | |
from io import StringIO | |
""" | |
E.g. | |
python pstats-chain.py GET.foobar.com.testurl.46689ms.1597427246.prof 'time.sleep' 10 |
NewerOlder