Skip to content

Instantly share code, notes, and snippets.

@donabrams
donabrams / InstallCinnamonCrouton
Last active July 18, 2016 15:03 — forked from sohjsolwin/InstallCinnamonCrouton
Steps to install and setup a cinnamon flavored crouton on a Chromebook Pixel
# 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
@donabrams
donabrams / SUCESS.rs
Last active December 22, 2015 18:06 — forked from anonymous/playground.rs
Shared via Rust Playground
fn main() {
let mut p = get_mut();
while let Some(x) = p.pop() {
print!("{} ", x);
}
println!("");
}
fn get_mut<'s>() -> Vec<i16> {
@donabrams
donabrams / SUCESS.rs
Last active December 22, 2015 18:12 — forked from anonymous/playground.rs
Shared via Rust Playground
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();
@donabrams
donabrams / playground.rs
Created December 22, 2015 16:55 — forked from anonymous/playground.rs
Shared via Rust Playground
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>;
@donabrams
donabrams / playground.rs
Last active December 22, 2015 16:33 — forked from anonymous/playground.rs
Shared via Rust Playground
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>;
(function($){
$.widget("ui.mywidget", {
options: {
autoOpen: true
},
_create: function(){
// by default, consider this thing closed.