Skip to content

Instantly share code, notes, and snippets.

diff -r 76ef82ec80a7 Lib/idlelib/ToolTip.py
--- a/Lib/idlelib/ToolTip.py Sat Oct 25 05:42:30 2014 +0300
+++ b/Lib/idlelib/ToolTip.py Sat Oct 25 18:38:25 2014 +0530
@@ -7,8 +7,9 @@
class ToolTipBase:
- def __init__(self, button):
+ def __init__(self, button, delay_ms=1500):
self.button = button
import os
import sys
from subprocess import Popen
def get_files(path=''):
print("## EXTRACTING FILE LIST ##")
files = []
for ext in ('.java', '.txt'):
files += [os.path.join(path, f) for f in os.listdir(path) if
public class distanceCalculator
{
public static final double R = 6372.8;
public static Information getInformation(double lat1, double long1,
double lat2, double long2)
{
double distance = haversine(lat1, long1, lat2, long2);
String bearing = headingToString2(bearing(lat1, long1, lat2, long2));
return new Information(distance, bearing);
hg import http://bugs.python.org/file36840/cfg-ext-34.diff --no-commit
applying http://bugs.python.org/file36840/cfg-ext-34.diff
patching file Lib/idlelib/Bindings.py
Hunk #1 FAILED at 77
1 out of 1 hunks FAILED -- saving rejects to file Lib/idlelib/Bindings.py.rej
patching file Lib/idlelib/EditorWindow.py
Hunk #1 FAILED at 188
Hunk #2 FAILED at 543
2 out of 2 hunks FAILED -- saving rejects to file Lib/idlelib/EditorWindow.py.rej
patching file Lib/idlelib/configDialog.py
@sahutd
sahutd / gist:8765901
Created February 2, 2014 10:15
Gist created using YAGC - Yet Another Gist CLI . Visit https://github.com/sahutd/YAGC-Yet-Another-Gist-CLI to for the Repo.
"""
@author : saimadhav heblikar
usage: python compr.py [-c | -d] <input file> <output file>
Call -c for compress
Call -d for decompress
Make sure to escape the input file and output with with double quotes if you
are on a NT System!!!
Purpose:Given a input file,a compressed output file is generated along with the
overhead required to decompress it.