Skip to content

Instantly share code, notes, and snippets.

View spasovski's full-sized avatar

Davor Spasovski spasovski

View GitHub Profile
function getNum(num) {
if (num < 11) return num + '';
const digits = (num + '').split('');
const zdigits = [...digits];
for (let i = 1; i < zdigits.length; i++) {
zdigits[i] = '0';
}
let res = zdigits.join('');
digits.shift();
return `${res} + ${getNum(parseInt(digits.join(''), 10))}`;

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Dependencies:
1. Python 2.7
2. Redis
3. PostgreSQL
4. Node.js
Create virtualenv then:
pip install -r requirements.txt
pip install -r requirements_dev.txt
@spasovski
spasovski / gist:7792013
Created December 4, 2013 17:38
stats tracker bugs
The tracker itself:
https://bugzilla.mozilla.org/showdependencytree.cgi?id=857635&hide_resolved=1
https://bugzilla.mozilla.org/show_bug.cgi?id=858298 (total ratings)
https://bugzilla.mozilla.org/show_bug.cgi?id=858297 (average rating)
https://bugzilla.mozilla.org/show_bug.cgi?id=858299 (abuse reports)
https://bugzilla.mozilla.org/show_bug.cgi?id=858254 (transactions)
https://bugzilla.mozilla.org/show_bug.cgi?id=858256 (top apps tables)
https://bugzilla.mozilla.org/show_bug.cgi?id=858258 (unique registered users)
1. Update your OS X to the latest version. (Top-Left Apple icon > Software Update).
2. Install Xcode (App store).
3. Install Command Line Tools (Xcode > Preferences > Downloads)
4. Install homebrew. In terminal: ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
5. In terminal: brew install npm
6. In terminal: npm install -g commonplace
7. You're ready! In terminal: damper
{
"paid": [
{
"count": 6533.0,
"date": "2013-03-11"
},
{
"count": 6666.0,
"date": "2013-03-12"
},
<!DOCUMENT html>
<html>
<head>
<title>Form Display Test</title>
</head>
<body>
<form>
<h4>Text Input</h4>
# If this is true all new webapps go into an approval queue. If it's false then
# they go public immediately.
WEBAPPS_RESTRICTED = True
# The verification URL, the addon id will be appended to this. This will
# have to be altered to the right domain for each server, eg:
# https://receiptcheck.addons.mozilla.org/verify/
WEBAPPS_RECEIPT_URL = '%s/verify/' % SITE_URL
# The key we'll use to sign webapp receipts.
WEBAPPS_RECEIPT_KEY = ''
# If True, only allow one webapp per domain.