Workaround to have a version controlled project in another where git submodule is not allowed. This toggles the git files.
**/hide.git
**/hide.gitignore
| import Cocoa | |
| @NSApplicationMain | |
| class AppDelegate: NSObject, NSApplicationDelegate { | |
| var statusItem:NSStatusItem! | |
| var timer:NSTimer! | |
| func applicationDidFinishLaunching(aNotification: NSNotification) { | |
| let statusBar = NSStatusBar.systemStatusBar() |
| import random | |
| import Journey | |
| import copy | |
| __pool_size__ = 90 | |
| __survival_limit__ = 30 | |
| __mutation_rate__ = 5 | |
| class Player(): | |
| def __init__(self): pass | |
| def move(self, player_bit, game_map, evaluator): pass | |
| class STDIOPlayer(Player): | |
| def move(self, player_bit, game_map, evaluator): | |
| idx = input('Your step (0-9): ') | |
| game_map[int(idx)] = player_bit |
| package main | |
| import ( | |
| "log" | |
| "math/rand" | |
| ) | |
| const MOVE_VERTICALLY = true | |
| const MOVE_HORIZONTALLY = !MOVE_VERTICALLY | |
| const MOVE_UPLEFT = -1 |
| package main | |
| import ( | |
| "errors" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "regexp" | |
| "strconv" |
Get a broken image replacement, such as this placeholder and save it to your webserver (available on the same domain).
Add the following entry to Apache (virtual host or .htaccess file):
<IfModule mod_rewrite.c>
RewriteEngine on
| use std::fs::File; | |
| use std::io::Read; | |
| use rand::Rng; | |
| extern crate rand; | |
| fn main() { | |
| let mut f = File::open("/Users/itarato/Documents/Rust/240.in").unwrap(); | |
| let mut content: String = String::new(); | |
| f.read_to_string(&mut content).ok().expect("Cannot read input"); |
| use std::fmt; | |
| struct Plant { | |
| age: u32, | |
| } | |
| struct Garden { | |
| plants: Vec<Plant>, | |
| fruit: u32, | |
| } |
| use std::fs::File; | |
| use std::io::Read; | |
| use std::rc::Rc; | |
| use std::cell::RefCell; | |
| use std::collections::HashMap; | |
| use std::default::Default; | |
| use std::string::String; | |
| use std::fmt; | |
| #[derive(Debug)] |