Skip to content

Instantly share code, notes, and snippets.

// -*- mode: javascript; coding: utf-8 -*-
//
// Copyright 2009, 2010, 2011 Andrej A Antonov <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
@polymorphm
polymorphm / new_my_test_generator.html
Created July 22, 2011 08:39
new_my_test_generator(n)
<!-- пример для http://htmledit.squarefree.com/ -->
<script>/*<[CDATA[*/(function() {'use strict'
function new_my_test_generator(n) {
var iter = {}
iter.next = function() {
var r = 'первое значение!'
@polymorphm
polymorphm / new_my_test_generator.html
Created July 22, 2011 08:48
new_my_test_generator(n)
<!-- пример для http://htmledit.squarefree.com/ -->
<script>/*<[CDATA[*/(function() {'use strict'
function new_my_test_generator(n) {
var iter = {}
iter.next = function() {
var r = 'первое значение!'
// -*- mode: javascript; coding: utf-8 -*-
//
// Copyright 2009, 2010, 2011 Andrej A Antonov <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
'McClenagha': ["<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>"]
'Cochranedozi': ["<Fault 100: 'Invalid username'>", "<Fault 100: 'Invalid username'>", "<Fault 100: 'Invalid username'>"]
'Higginsone': ["<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>"]
'Archambaul': ["<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>"]
'Packari': ["<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>"]
'Bainbrudge': ["<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>", "<Fault 101: 'Invalid password'>"]
'Fritzkisy': ["<Fault Server: 'Account not validated.'>", "<Fault Server: 'Account not validated.'>", "<Fault Server: 'Account not validated.'>"]
'Xenosbuh': ["<Fault Server: 'Account not validated.'>", "<Fault Server: 'Account not validated.'>", "<Fault Server: 'Account not validated.'>"]
'Rhoadsazy': [
From d9c8edec62506ab83cde0c0285445ad8c375f709 Mon Sep 17 00:00:00 2001
From: Andrej A Antonov <[email protected]>
Date: Wed, 7 Sep 2011 14:07:51 +0400
Subject: [PATCH] browserid/static/include.js: if message is not in JSON-string format
---
browserid/static/include.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/browserid/static/include.js b/browserid/static/include.js
#!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
#
# Copyright 2011 Andrej A Antonov <[email protected]>
from __future__ import absolute_import, print_function
assert str is not unicode, "Required python version 2 (not version 3)"
import argparse, sys, os, os.path
// -*- mode: javascript; coding: utf-8 -*-
//
// Copyright 2009, 2010, 2011 Andrej A Antonov <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// -*- mode: javascript; coding: utf-8 -*-
//
// Copyright 2009, 2010, 2011 Andrej A Antonov <[email protected]>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// -*- mode: javascript; coding: utf-8 -*-
//
// Copyright 2011 Andrej A Antonov <[email protected]>.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,