and welcome to lissome. I hope you like how simple it is to use! If you have any suggestions for lissome please leave me a note over here
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
| ,(?![\ ||\n]) |
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
| syntax on | |
| "execute pathogen#infect() "optional | |
| set nocompatible | |
| set backspace=2 | |
| set ignorecase | |
| set smartcase | |
| set autoindent | |
| set number "show line numbers | |
| set ruler "show ruler | |
| set relativenumber "show relative line numbers |
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
| git update-index --assume-unchanged |
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
| use std::io; | |
| use std::io::Write; // for stderr | |
| fn main() { | |
| let mut s = String::new(); | |
| io::stdin().read_line(&mut s).unwrap(); // read line into s | |
| let n:Vec<i32> = s.split_whitespace(). | |
| map(|x| x.trim().parse().unwrap()). | |
| collect(); | |
| writeln!(&mut std::io::stderr(), "n|{}", n[0]).unwrap(); |
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
| fn main() { | |
| let mut v:Vec<i32> = vec![2]; | |
| for _ in 0..1000 { | |
| let prime = primes(&v); | |
| if prime == -1 { | |
| break; | |
| } | |
| v.push(prime); | |
| } | |
| 'top:for prime in v.iter().rev() { |
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
| (\()'(.*)'(,(<-)?errs?\)) |
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
| use std::io::{BufReader,BufRead}; | |
| use std::fs::File; // File::open | |
| use std::env; // argv_os | |
| fn main() { | |
| let fd = BufReader::new(File::open(env::args_os().nth(1).unwrap()).unwrap()); | |
| let arr: Vec<Vec<f64>> = fd.lines() | |
| .map(|l| l.unwrap().split(';') | |
| .map(|number| number.parse().unwrap()) | |
| .collect()) |
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
| [package] | |
| name = "rnag" | |
| version = "0.1.0" | |
| [dependencies] | |
| hyper = "0.9" | |
| [[bin]] | |
| name = "rnag" | |
| path = "src/main.rs" |