Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@j605
j605 / error_log
Created February 21, 2015 11:19
youtube-dl cloudy error log
[Cloudy] d9c438f712b83: Downloading webpage
[Cloudy] Dumping request to http://www.cloudy.ec/embed.php?id=d9c438f712b83
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIj4KPGh0bWw+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9VVRGLTgiPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+aHRtbCxib2R5e2hlaWdodDoxMDAlO3BhZGRpbmc6MDttYXJnaW46MDt9Lm9je2Rpc3BsYXk6dGFibGU7d2lkdGg6MTAwJTtoZWlnaHQ6MTAwJTt9Lmlje2Rpc3BsYXk6dGFibGUtY2VsbDt2ZXJ0aWNhbC1hbGlnbjptaWRkbGU7aGVpZ2h0OjEwMCU7fWRpdi5tc2d7ZGlzcGxheTpibG9jaztib3JkZXI6MXB4IHNvbGlkICMzMGM7cGFkZGluZzowO3dpZHRoOjUwMHB4O2ZvbnQtZmFtaWx5OmhlbHZldGljYSxzYW5zLXNlcmlmO21hcmdpbjoxMHB4IGF1dG87fWgxe2ZvbnQtd2VpZ2h0OmJvbGQ7Y29sb3I6I2ZmZjtmb250LXNpemU6MTRweDttYXJnaW46MDtwYWRkaW5nOjJweDt0ZXh0LWFsaWduOmNlbnRlcjtiYWNrZ3JvdW5kOiAjMzBjO31we2ZvbnQtc2l6ZToxMnB4O21hcmdpbjoxNXB4IGF1dG87d2lkdGg6NzUlO2ZvbnQtZmFtaWx5OmhlbHZldGljYSxzYW5zLXNlcmlmO3RleHQtYWxpZ246bGVmdDt9PC9zdHlsZT48dGl0bGU+VGhlIFVSTCB5b3UgcmVxdWVzdGVkIGhhcyBiZWVuIGJsb2NrZWQ8L3RpdGxlPjwvaGVhZD48
@j605
j605 / k2.py
Created January 23, 2012 09:42
simple coding question
def change_base(n, b):
rem = ''
while n > 0:
rem += str((n % b))
n /= b
return rem[::-1]
def pal_base(n):
base = 2
while 1:
@j605
j605 / p12.py
Created December 30, 2011 09:53
def get_triangle_no():
num = [1, 3]
i = 2
while 1 > 0:
num.append(num[i - 1] + i + 1)
if num[i] > 500000000000000000000 and factors(num[i]) > 500:
return num[i]
i = i + 1
def mark(numbers, p, N):
COOKIELABS
Hack, Design, Innovate
Name:
Programming Languages known:
(List all of them along with the knowledge level as(Beginner/moderate/advanced))
Would like to work on: JAVA/ C#
(Please choose one)
@j605
j605 / error
Created December 19, 2011 17:22
Server Error in '/prm' Application.
ORA-12500: TNS:listener failed to start a dedicated server process
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: ORA-12500: TNS:listener failed to start a dedicated server process
Source Error:
Line 10: If studcn.State Then studcn.Close()
Line 11: On Error GoTo 0
[18:54] fredy ok
[18:56] fredy is this problem only at facebook page?
[18:57] Guest48295 no
[18:57] Guest48295 all pages
[18:57] Guest48295 like picture sharing sites
[18:57] Guest48295 google images
[18:57] Guest48295 and also games pages
[18:58] fredy could you provide a screenshot?
[18:59] fredy you can use http://imgur.com/ for uploading it
[18:59] Guest48295 wait
#! /usr/bin/python2.7
def signature(s):
t = list(s)
t.sort()
t = ''.join(t)
return t
def all_anagrams(filename):
d = {}
#! /usr/bin/python2.7
stream = open("words.txt",'r')
def get_words():
words = []
for word in stream:
words.append(word.strip())
return words
#!/usr/bin/env python
import sys, string, hashlib, getpass
ask_silent = getpass.getpass
def ask_normal(str):
sys.stderr.write(str)
return sys.stdin.readline()[0:-1] # remove the newline