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
using System; | |
using System.Collections.Generic; | |
namespace System.Reactive | |
{ | |
public static class Observable | |
{ | |
/// <summary> | |
/// Creates an observable sequence object from the specified subscription function. | |
/// </summary> |
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
using System; | |
using System.Collections.Generic; | |
namespace System.Reactive | |
{ | |
public static class Observable | |
{ | |
/// <summary> | |
/// Creates an observable sequence object from the specified subscription function. | |
/// </summary> |
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
Bitcoin Redlist Attack | |
====================== | |
Consider the following scenario: | |
Miners are split in two groups: A and B. | |
A has adopted redlist Ra, whereas B has adopted redlist Rb. | |
Let A be the strongest group, meaning that if A and B chase each-other for the longest chain, A will | |
win. |
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
autoload colors && colors | |
# history settings | |
export HISTSIZE=10000 | |
export HISTFILE="$HOME/.history" | |
export SAVEHIST=$HISTSIZE | |
setopt hist_ignore_all_dups | |
setopt inc_append_history | |
setopt share_history |
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
autoload colors && colors | |
# history settings | |
export HISTSIZE=10000 | |
export HISTFILE="$HOME/.history" | |
export SAVEHIST=$HISTSIZE | |
setopt hist_ignore_all_dups | |
setopt inc_append_history | |
setopt share_history |
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
pageno = int( request.GET.get( 'page' )) - 1 | |
page = pbatches[ PBATCH_PAGE_SIZE*pageno : PBATCH_PAGE_SIZE*(pageno+1) ] | |
has_next = len( pbatches ) >= PBATCH_PAGE_SIZE*(pageno+1) | |
has_prev= pageno > 0 |
NewerOlder