Mutt E-mail Client
How to set up multiple accounts withThanks to this article by Christoph Berg
Instructions
Directories and files
~/
// Primitive hash function that for a string returns a positive 32 bit int | |
// Do not use in production, use murmur3 or fnv1 | |
// You can improve this by changing 5 to 31 | |
Object.defineProperty(String.prototype, 'hashCode', { | |
value: function() { | |
var hash = 0, i, chr; | |
for (i = 0; i < this.length; i++) { | |
chr = this.charCodeAt(i); | |
hash = ((hash << 5) - hash) + chr; | |
hash |= 0; // Convert to 32bit integer |
package main | |
import ( | |
"fmt" | |
"github.com/karrick/godirwalk" | |
"io/ioutil" | |
) | |
func main() { | |
godirwalk.Walk("./", &godirwalk.Options{ |
extern crate walkdir; | |
use walkdir::WalkDir; | |
use std::fs::File; | |
use std::io::Read; | |
fn main() { | |
let nul = 0; | |
let mut bytes_count: i32; |
Thanks to this article by Christoph Berg
Directories and files
~/
import java.io.IOException; | |
import java.nio.file.*; | |
import java.nio.file.attribute.BasicFileAttributes; | |
import java.util.EnumSet; | |
public class Main { | |
public static void main(String argv[]) { | |
Main main = new Main(); |
>>>>>>> gcc/COPYING GPL-2.0 | |
>>>>>>> gcc/COPYING GPL-2.0 | |
>>>>>>> gcc/COPYING GPL-1.0 | |
>>>>>>> gcc/COPYING GPL-1.0 | |
>>>>>>> gcc/COPYING.LIB LGPL-2.1 | |
>>>>>>> gcc/COPYING3 GPL-3.0 | |
>>>>>>> gcc/COPYING3 GPL-3.0 | |
>>>>>>> gcc/COPYING3 GPL-2.0 | |
>>>>>>> gcc/COPYING3 GPL-2.0 |
import java.io.IOException; | |
import java.nio.file.*; | |
import java.nio.file.attribute.BasicFileAttributes; | |
import java.util.EnumSet; | |
public class Main { | |
public static void main(String argv[]) { | |
Main main = new Main(); |
/* | |
Three people are playing the following betting game. | |
Every five minutes, a turn takes place in which a random player rests and the other two bet | |
against one another with all of their money. | |
The player with the smaller amount of money always wins, | |
doubling his money by taking it from the loser. | |
For example, if the initial amounts of money are 1, 4, and 6, | |
then the result of the first turn can be either | |
2,3,6 (1 wins against 4); | |
1,8,2 (4 wins against 6); or |
# Three people are playing the following betting game. | |
# Every five minutes, a turn takes place in which a random player rests and the other two bet | |
# against one another with all of their money. | |
# The player with the smaller amount of money always wins, | |
# doubling his money by taking it from the loser. | |
# For example, if the initial amounts of money are 1, 4, and 6, | |
# then the result of the first turn can be either | |
# 2,3,6 (1 wins against 4); | |
# 1,8,2 (4 wins against 6); or | |
# 2,4,5 (1 wins against 6). |