#!/bin/bash | |
# | |
# tmux helper script to get current transfer rates | |
# Contributors: Prurigro, inhies | |
# License: MIT (included in footer) | |
TIMESPAN=1 # Timespan in seconds to measure over | |
USE_BC=true # Use bc to get a more accurate number | |
PREC="2" # If using bc, to what precision do you want the results |
" | |
" While editing a Markdown document in Vim, preview it in the | |
" default browser. | |
" | |
" Author: Nate Silva | |
" | |
" To install: Place markdown.vim in ~/.vim/ftplugin or | |
" %USERPROFILE%\vimfiles\ftplugin. | |
" | |
" To use: While editing a Markdown file, press ',p' (comma p) |
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
package main | |
import ( | |
"code.google.com/p/go.crypto/curve25519" | |
"crypto/rand" | |
"crypto/sha512" | |
"encoding/json" | |
"fmt" | |
mathrand "math/rand" | |
"runtime" |
From bdfb8228f5a8ddd541ddc401d7e5b87a7b43234b Mon Sep 17 00:00:00 2001 | |
From: inhies | |
Date: Thu, 7 Mar 2013 08:43:24 +0000 | |
Subject: [PATCH] Add option to prevent building of recovery image with OTA .zip | |
Change-Id: I604ddaaa79442465ff821b74259b947da23ae98a | |
--- | |
core/Makefile | 7 +++++++ | |
tools/releasetools/ota_from_target_files | 28 +++++++++++++++++++++------- | |
2 files changed, 28 insertions(+), 7 deletions(-) |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
package main | |
import ( | |
"fmt" | |
"github.com/inhies/go-bitcoin" | |
"github.com/kylelemons/godebug/pretty" | |
) | |
var Conn bitcoin.Client | |
// Package trade provides generic interfaces and helper functions for working | |
// with assets. | |
package trade | |
import ( | |
"time" | |
) | |
// A single order that has been placed, with timestamp if available | |
type Order struct { |
func MaxFloat64(v ...float64) (max float64) { | |
for _, x := range v { | |
if x > max { | |
max = x | |
} | |
} | |
return | |
} |