Add or remove data table rows dynamically in html view.
This file contains 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
D [0-9] | |
L [a-zA-Z_] | |
H [a-fA-F0-9] | |
E ([Ee][+-]?{D}+) | |
P ([Pp][+-]?{D}+) | |
FS (f|F|l|L) | |
IS ((u|U)|(u|U)?(l|L|ll|LL)|(l|L|ll|LL)(u|U)) | |
%{ | |
#include <stdio.h> |
This file contains 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
func applicationDidFinishLaunching(aNotification: NSNotification) { | |
/* Check if another instance of this app is running. */ | |
let bundleID = Bundle.main.bundleIdentifier! | |
if NSRunningApplication.runningApplications(withBundleIdentifier: bundleID).count > 1 { | |
/* Show alert. */ | |
let alert = NSAlert() | |
alert.addButton(withTitle: "OK") | |
let appName = Bundle.main.object(forInfoDictionaryKey: kCFBundleNameKey as String) as! String | |
alert.messageText = "Another copy of \(appName) is already running." | |
alert.informativeText = "This copy will now quit." |
This file contains 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
use std::net::TcpListener; | |
fn create_app_lock(port: u16) -> TcpListener { | |
match TcpListener::bind(("0.0.0.0", port)) { | |
Ok(socket) => { | |
socket | |
}, | |
Err(_) => { | |
panic!("Couldn't lock port {}: another instance already running?", port); | |
} |
This file contains 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
% A complete graph | |
% Author: Quintin Jean-Noël | |
% <http://moais.imag.fr/membres/jean-noel.quintin/> | |
\documentclass{article} | |
\usepackage{tikz} | |
\usetikzlibrary[topaths] | |
% A counter, since TikZ is not clever enough (yet) to handle | |
% arbitrary angle systems. | |
\newcount\mycount | |
\begin{document} |
This file contains 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
% Spiderweb Diagram | |
% | |
% Author: Dominik Renzel | |
% Date; 2009-11-11 | |
\documentclass{article} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes} | |
\begin{document} |
This file contains 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
// from: https://stackoverflow.com/questions/29963449/golang-like-defer-in-rust | |
// | |
struct ScopeCall<F: FnOnce()> { | |
c: Option<F> | |
} | |
impl<F: FnOnce()> Drop for ScopeCall<F> { | |
fn drop(&mut self) { | |
self.c.take().unwrap()() | |
} | |
} |
This file contains 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
Name | Link | Whitepaper title | |
---|---|---|---|
Achain (previously thinkyoung) | https://www.achain.com/Achain%20Whitepaper%202.0_EN.pdf | Achain Blockchain Whitepaper: build to be boundless | |
Aergo (by blocko) | https://www.aergo.io/paper/ | multiple | |
Aion | https://aion.network/media/en-aion-network-technical-introduction.pdf | Aion: enabling the decentralized Internet | |
Ark | https://ark.io/Whitepaper.pdf | A Platform for Consumer Adoption | |
Avalanche | https://ipfs.io/ipfs/QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV | Snowflake to Avalanche: a novel metastable consensus protocol family for cryptocurrencies | |
Blink | https://blink.network/media/blink-protocol.pdf | Proof-of-stake distrbuted consensus protocol | |
Byteball | https://byteball.org/Byteball.pdf | A Decentralized System for Storage and Transfer of Value | |
Cardano | https://whitepaperdatabase.com/cardano-ada-whitepaper/ | Ouroboros: A provably secure proof-of-stake blockchain protocol | |
Celer Network | https://www.celer.network/doc/CelerNetwork-Whitepaper.pdf | Celer Network: Bring Internet Scale to Every Blockchai |
This file contains 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
# In this example we're sending some test bitcoins from an address we control to a brand new test | |
# address. We'll be sending the coins using the following address, public and private keys (please | |
# don't abuse). | |
# address : mtWg6ccLiZWw2Et7E5UqmHsYgrAi5wqiov | |
# public : 03bb318b00de944086fad67ab78a832eb1bf26916053ecd3b14a3f48f9fbe0821f | |
# private : 1af97b1f428ac89b7d35323ea7a68aba8cad178a04eddbbf591f65671bae48a2 | |
# 1. generate a one-shot dummy address we're going to send money to | |
$ curl -X POST http://api.blockcypher.com/v1/btc/test3/addrs | |
{ |
I hereby claim:
- I am xbee on github.
- I am hfeeki (https://keybase.io/hfeeki) on keybase.
- I have a public key ASBDrB24S_bT5duyk7y5e2GGKVl6AGjV6tf1bMATawyg2Ao
To claim this, I am signing this object:
NewerOlder