Skip to content

Instantly share code, notes, and snippets.

View J08nY's full-sized avatar
🎯
Focusing

Ján Jančár J08nY

🎯
Focusing
View GitHub Profile
r.WebSocket = function (e) {
this._url = e,
this._connectionAttempts = 0,
this.on({
"message:refresh": this._onRefresh
}, this)
},
_.extend(r.WebSocket.prototype, Backbone.Events, {
_backoffTime: 2e3,
_maximumRetries: 9,
@J08nY
J08nY / gist:099ddf8f6f86cf836684
Created April 6, 2015 17:12
Code as of 2:00:46 Mar 28, 2015 (WITH the button)
/*
FILE ARCHIVED ON 2:00:46 Mar 28, 2015 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 17:11:26 Apr 6, 2015.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
try {
jQuery.cookie = function(e, t, n) {
@J08nY
J08nY / gist:6abaa80f1bbbeeeca624
Created April 6, 2015 17:14
Code as of 20:47:04 Mar 27, 2015
/*
FILE ARCHIVED ON 20:47:04 Mar 27, 2015 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 17:13:50 Apr 6, 2015.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
try {
jQuery.cookie = function(e, t, n) {
@J08nY
J08nY / ButtonBot.py
Last active February 4, 2018 11:09
ButtonBot.py v2.3
#!/usr/bin/env python
#-----ButtonBot.py-----#
# #
# made by /u/J08nY #
# v2.3 #
# #
#----------------------#
from urllib import urlencode
import httplib
@J08nY
J08nY / pages.py
Last active March 8, 2017 21:25
PDF page counter
#!/usr/bin/env python
from PyPDF2 import PdfFileReader
from PyPDF2.utils import PdfReadError
import re
import argparse
from os import walk, path
import magic
import hashlib

Keybase proof

I hereby claim:

  • I am j08ny on github.
  • I am j08ny (https://keybase.io/j08ny) on keybase.
  • I have a public key ASB6LOPsvmi5VmUmA_sq8oaMr_K_sp6uXn2xKwPEGU_etwo

To claim this, I am signing this object:

======================================================================
FAIL: /home/johny/dev/psf/mailman/mailmanclient/src/mailmanclient/docs/using.rst
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/doctest.py", line 2190, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for using.rst
File "/home/johny/dev/psf/mailman/mailmanclient/src/mailmanclient/docs/using.rst", line 0
----------------------------------------------------------------------
def _can_revoke(revoker, target_primary):
for self_sig in target_primary.self_signatures:
for rk in self_sig.revocation_key:
if rk.algorithm == revoker.key_algorithm and rk.fingerprint == revoker.fingerprint:
return True
return False
hash_algo = prefs.pop('hash', None)
sig_type = None
if isinstance(target, PGPUID):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.