This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quickly matches strings which might be URLs | |
matches all valid IRI (URL) with slash (e.g. schema:/path but not | |
schema:path) because matching schema:path would cause to many false | |
positives. | |
Not all matched strings are valid URIs. | |
It also matches these strings: | |
www.example.com or ftp.example.com or example.com/q | |
they require to manually add prefix http:// or ftp:// | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.2; | |
contract owned { | |
address public owner; | |
function owned() { | |
owner = msg.sender; | |
} | |
modifier onlyOwner { | |
if (msg.sender != owner) throw; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.8; | |
contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); } | |
contract MyToken { | |
/* Public variables of the token */ | |
string public standard = 'Token 0.1'; | |
string public name; | |
string public symbol; | |
uint8 public decimals; | |
uint256 public totalSupply; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xa852Dc0D236C26E5aE431838B6D6ae9639e437d4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Generátor QR kódu pro inicializaci HOTP pro datové schránky</title> | |
<meta name="copyright" content="Bedřich Košata, Laboratoře CZ.NIC" /> | |
<meta name="original-source" content="http://blog.nic.cz/2011/10/10/kouzlo-standardizovaneho-reseni/" /> | |
</head> | |
<body> | |
<h1>Generátor QR kódu pro inicializaci HOTP pro datové schránky</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from __future__ import print_function | |
import base64 | |
import commands | |
import json | |
import sys | |
import uuid | |
import xmltodict |