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
# The next command will install a [raring] based ubuntu | |
# chroot, named [cinnamon] into the default directory | |
# with the targets [core], [cli-extra], [touch], and [keyboard] | |
sudo crouton -n cinnamon -r xenial -t core,cli-extra,touch,keyboard | |
# Supply your new username and password like normal, and | |
# once that finishes, enter the chroot with: | |
sudo enter-chroot -n cinnamon |
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
fn main() { | |
let mut p = get_mut(); | |
while let Some(x) = p.pop() { | |
print!("{} ", x); | |
} | |
println!(""); | |
} | |
fn get_mut<'s>() -> Vec<i16> { |
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::io; | |
use std::io::prelude::*; | |
use std::io::BufReader; | |
use std::fs::File; | |
fn main(){ | |
match get_line_vec("yay.txt") { | |
Ok(vec) => { | |
let mut mut_vec = vec; | |
let a = mut_vec.pop().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
use std::collections::HashMap; | |
use std::io; | |
use std::io::prelude::*; | |
use std::io::BufReader; | |
use std::fs::File; | |
use std::error::Error; | |
use std::mem; | |
use std::str; | |
type Something = HashMap<String, String>; |
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::collections::HashMap; | |
use std::io; | |
use std::io::prelude::*; | |
use std::io::BufReader; | |
use std::fs::File; | |
use std::error::Error; | |
use std::mem; | |
use std::str; | |
type Something<'a> = HashMap<&'a str, &'a str>; |
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
(function($){ | |
$.widget("ui.mywidget", { | |
options: { | |
autoOpen: true | |
}, | |
_create: function(){ | |
// by default, consider this thing closed. |