#Symfony book http://symfony.com/doc/current/book/index.html
http://tutorial.symblog.co.uk/ http://sftuts.com/doc/jobeet/en/starting-up-the-project
# Enable mouse support in ~/.tmux.conf | |
setw -g mode-mouse on | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# enable pbcopy pbpaste | |
set-option -g default-command "reattach-to-user-namespace -l bash" |
# Mouse support | |
setw -g mode-mouse on | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# tmux vi mode | |
setw -g mode-keys vi |
const OpenTimestamps = require('javascript-opentimestamps'); | |
var fs = require('fs'); | |
fs.readFile('bitcoin.pdf.ots', 'utf8', (err, contents) => { | |
const fileOts = Buffer.from(contents.toString('utf8')); | |
const detached = OpenTimestamps.DetachedTimestampFile.deserialize(fileOts); | |
const infoResult = OpenTimestamps.info(detached); | |
console.log(infoResult) | |
}); |
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<esi:include src="head.html" alt="not-found.html" onerror="continue"></esi:include> | |
<esi:include src="body.php" alt="not-found.html" onerror="continue"/> | |
<h2>HTML</h2> | |
</esi:include> | |
<esi:include src="footer.html" alt="not-found.html" onerror="continue"/></esi:include> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
const functions = require('firebase-functions') | |
const admin = require('firebase-admin') | |
admin.initializeApp() | |
const db = admin.firestore() | |
const settings = {timestampsInSnapshots: true}; | |
db.settings(settings); | |
#include <math.h> | |
#include <stdio.h> | |
double AttackerSuccessProbability(double q, int z) { | |
double p = 1.0 - q; | |
double lambda = z * (q / p); | |
double sum = 1.0; | |
int i, k; | |
for (k = 0; k <= z; k++) | |
{ |
# Boolean | |
# ------------------ | |
print(True) | |
print(False) | |
print(type(True)) | |
# Integers | |
# ------------------ | |
# Python 3 has no limit for the data size. Aside the memory of course. |
num = 0b000000001 | |
#print(bin(num)) | |
num = 0b000000001 << 1 # 0b10 | |
#print(bin(num)) | |
num = 0b000000001 << 2 # 0b100 | |
#print(bin(num)) | |
num = 0b000000001 >> 1 # 0b0 |