Skip to content

Instantly share code, notes, and snippets.

View JimDennis's full-sized avatar

Jim Dennis JimDennis

View GitHub Profile
@JimDennis
JimDennis / mystery_code.py
Last active August 10, 2017 20:21 — forked from anonymous/mystery_code.py
Mystery Python code from G+
#/usr/bin/env python
from __future__ import print_function
import random
list1 = list('abc') # We can expand strings into lists with this:
list2 = list1[:] # Makes a (shallow) copy of the list
letter_counts = dict()
@JimDennis
JimDennis / bignums.js
Last active July 9, 2017 07:51 — forked from anonymous/bignums.ps
Sample JS Code for bigNums Exercise
/*
7. Iterate over the "bigNums" array.
If any number is less than 10, replace it with "x".
Return "bigNums"
HINT: You will need to "loop" over the array and check "if" the numbers are "less than" 10
Answer: This function should return ["x", 12, "x", 56, 19, "x", "x", "x", 14, 10, "x"]
*/
let bigNums = [3, 12, 7, 56, 19, 9, 1, 5, 14, 10, 2];
@JimDennis
JimDennis / JMalert.md
Last active September 11, 2016 23:24 — forked from chris-belcher/JMalert.md
JoinMarket's privacy is degraded until further notice

JoinMarket's privacy is degraded (for a while)

09/06/2016

Summary

JoinMarket is a young project, there are some possible vulnerabilities which could be exploited to spy on every user.

Recently people have noticed that one such attack seems to actually be happening. The attack has the possibility of degrading the privacy of all JoinMarket coinjoins.