Bitcoin miners want their newly-found blocks to propagate across the network as quickly as possible, because every millisecond of delay increases the chances that another block, found at about the same time, wins the "block race."
//Basic tab controls on a Flash Sprite | |
var myDisplayObject : Sprite = new Sprite(); | |
myDisplayObject.tabEnabled = true; | |
myDisplayObject.tabIndex = 0; | |
myDisplayObject.buttonMode = true; |
IDENTIFICATION DIVISION. | |
PROGRAM-ID. FIBONACCI. | |
DATA DIVISION. | |
WORKING-STORAGE SECTION. | |
01 ARGUMENT PIC 9(2). | |
01 RETURN-VALUE PIC 9(25). | |
01 RESULT PIC Z(25). | |
01 DP-TABLE. | |
03 VALS PIC 9(25) OCCURS 99. |
Some thoughts on using node-postgres in a web application
This is the approach I've been using for the past year or so. I'm sure I'll change and it will change as I grow & am exposed to more ideas, but it's worked alright for me so far.
I would definitely use a single pool of clients throughout the application. node-postgres ships with a pool implementation that has always met my needs, but it's also fine to just use the require('pg').Client
prototype and implement your own pool if you know what you're doing & have some custom requirements on the pool.
@echo off | |
setlocal | |
rem =================== | |
rem Set GIT_HOME | |
rem =================== | |
rem Read the Git for Windows installation path from the Registry. | |
:REG_QUERY |
QuickMarks is an analytics app for web projects. It helps you track events on your websites. It is built using Rails, Devise, and a few charting libraries.
Quickmarks analytics offers a few key features:
- A client-side JavaScript snippet that allows a user to track events on their website
- A server-side API that captures and saves those events to a database
- A Rails application that displays the captured event data for a user
if (true) { | |
var iframeContEl = document.getElementById('tgme_frame_cont') || document.body; | |
var iframeEl = document.createElement('iframe'); | |
iframeContEl.appendChild(iframeEl); | |
var pageHidden = false; | |
window.addEventListener('pagehide', function () { | |
pageHidden = true; | |
}, false); | |
window.addEventListener('blur', function () { | |
pageHidden = true; |