Skip to content

Instantly share code, notes, and snippets.

View nimbosa's full-sized avatar

nimbosa nimbosa

View GitHub Profile
@itsDanOades
itsDanOades / gist:a0fe5434b7cf5b52f33c
Created July 2, 2014 16:34
Basic tab controls on a Flash Sprite
//Basic tab controls on a Flash Sprite
var myDisplayObject : Sprite = new Sprite();
myDisplayObject.tabEnabled = true;
myDisplayObject.tabIndex = 0;
myDisplayObject.buttonMode = true;
@y-taka-23
y-taka-23 / fibonacci.cob
Created July 27, 2014 04:43
COBOL による Fibonacci 数の計算
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.
@gavinandresen
gavinandresen / BlockPropagation.md
Last active June 28, 2024 08:17
O(1) block propagation

O(1) Block Propagation

The problem

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."

@brianc
brianc / gist:f906bacc17409203aee0
Last active December 22, 2023 00:47
Some thoughts on node-postgres in web applications

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.

Pooling:

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.

@mvalipour
mvalipour / install-hubflow.cmd
Last active September 8, 2018 08:36
Install HubFlow on windows
@echo off
setlocal
rem ===================
rem Set GIT_HOME
rem ===================
rem Read the Git for Windows installation path from the Registry.
:REG_QUERY

Comparison report

  • From: 242ed0b7c0f6a21096f2cc3e1ad1bdb176d02545
  • To: e03bbded2da5332f0628a169559051959076950e

Coverage

  • 870 crates tested: 262 working / 565 broken / 32 regressed / 11 fixed.

Regressions

@ckib16
ckib16 / README with MIT.md
Last active January 12, 2025 18:05
Default README template with the MIT license text.

QuickMarks

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

Installation

@PurpleBooth
PurpleBooth / README-Template.md
Last active April 6, 2025 13:07
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

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;