Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
| function stripAccents(str) { | |
| var reAccents = /[àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ]/g; | |
| var replacements = 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'; | |
| return str.replace(reAccents, function (match) { | |
| return replacements[reAccents.source.indexOf(match)]; | |
| }); | |
| }; |
| <html> | |
| <body style="background: #333"> | |
| <script > | |
| var gui = require('nw.gui'); | |
| var win = gui.Window.get(); | |
| function takeSnapshot() { | |
| win.capturePage(function(img) { | |
| var popWindow = gui.Window.open('popup.html', | |
| {width: 420, height: 300}); | |
| popWindow.on('loaded', function() { |
| #!/bin/sh | |
| git clone git://github.com/ry/node.git | |
| cd node | |
| ./configure --prefix=~/.local/usr | |
| make | |
| make install | |
| export npm_config_prefix=~/.local/usr && curl https://npmjs.org/install.sh | sh |
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
| const { Cc, Ci, Cu } = require('chrome'); | |
| const FaviconService = Cc["@mozilla.org/browser/favicon-service;1"]. | |
| getService(Ci.nsIFaviconService); | |
| const IO = Cc["@mozilla.org/network/io-service;1"]. | |
| getService(Ci.nsIIOService); | |
| const asyncFavicons = FaviconService.QueryInterface(Ci.mozIAsyncFavicons); | |
| let url = IO.newURI('http://www.mozilla.org', null, null); | |
| // PRINT: URI: null len: 0 data: type: | |
| asyncFavicons.getFaviconDataForPage(url, function (aURI, aDataLen, aData, aMimeType) { |
| /// <reference path="./.node-definitions/node.d.ts" /> | |
| /** | |
| * See the node.js TypeScript definition needed for this | |
| * example here: https://github.com/borisyankov/DefinitelyTyped | |
| */ | |
| import Http = module('http'); | |
| class MyServer { |
| { | |
| "ANDROID_VERSION": 1.5, | |
| "APP_VERSION_CODE": 8, | |
| "APP_VERSION_NAME": 1.3, | |
| "AVAILABLE_MEM_SIZE": 181972992, | |
| "BRAND": "generic", | |
| "BUILD": { | |
| "BOARD": "unknown", | |
| "BRAND": "generic", | |
| "DEVICE": "generic", |
| --- | |
| language: objective-c | |
| before_script: | |
| - ./scripts/travis/add-key.sh | |
| after_script: | |
| - ./scripts/travis/remove-key.sh | |
| after_success: | |
| - ./scripts/travis/testflight.sh | |
| env: | |
| global: |
| <?php | |
| // Outputs all POST parameters to a text file. The file name is the date_time of the report reception | |
| $fileName = date('Y-m-d_H-i-s').'.txt'; | |
| $file = fopen($fileName,'w') or die('Could not create report file: ' . $fileName); | |
| foreach($_POST as $key => $value) { | |
| $reportLine = $key." = ".$value."\n"; | |
| fwrite($file, $reportLine) or die ('Could not write to report file ' . $reportLine); | |
| } | |
| fclose($file); | |
| ?> |
Thumbnail sketch: Two-factor (Yubikey or Google Authenticator) protected wallets
Hardware:
Computer. Shared-secret authenticator (Yubikey/Google Authenticator/etc). Server (possibly shared with millions of other users).
Motivating use case setup:
User creates a split (2-of-2 multisig) wallet on the computer and server. Keys must be securely backed up to protect against loss. GUI to be determined, but there will be some type of "Use Authenticator" checkbox specified at setup.