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
| FROM ubuntu:18.04 | |
| RUN set -ex && \ | |
| apt update; \ | |
| apt install -y curl gcc git vim; \ | |
| curl https://sh.rustup.rs -o rust-init; \ | |
| chmod +x rust-init; \ | |
| ./rust-init -y; \ | |
| rm rust-init; \ | |
| echo 'export PATH="$HOME/.cargo/bin:$PATH"' > $HOME/.bashrc |
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
| FROM ubuntu:18.04 | |
| RUN apt update && apt install -y gcc g++ make gdb vim |
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; | |
| fn main() { | |
| println!("Hello, world!"); | |
| let mut formula = String::new(); | |
| io::stdin().read_line(&mut formula).expect("failed to read line"); | |
| formula = formula.trim().to_string(); | |
| let mut stack: Vec<i32> = Vec::new(); | |
| for i in formula.chars() { |
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
| #include <iostream> | |
| #include <algorithm> | |
| #include <vector> | |
| #include <string> | |
| typedef std::pair<int, std::string> P; | |
| bool pairCompare(const P& fc, const P& sc){ | |
| return fc.first < sc.first; | |
| } |
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
| module Main where | |
| import Graphics.Gloss | |
| import Graphics.Gloss.Interface.IO.Game | |
| windowWidth, windowHeight :: Num a => a | |
| windowWidth = 640 | |
| windowHeight = 480 | |
| window :: Display |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/bin/bash | |
| keyboard_id=$(xinput list --id-only "AT Translated Set 2 keyboard") | |
| touchpad_id=$(xinput list --id-only "SynPS/2 Synaptics TouchPad") | |
| xinput disable $keyboard_id | |
| xinput disable $touchpad_id |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| CONSUMER_KEY = "" | |
| CONSUMER_SECRET = "" | |
| ACCESS_KEY = "" | |
| ACCESS_SECRET = "" |
OlderNewer