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
trait MyTrait {} | |
struct MyStruct; | |
impl MyTrait for MyStruct {} | |
fn compiles1() -> Box<dyn MyTrait> { | |
Box::new(MyStruct) | |
} | |
fn compiles2() -> Box<dyn MyTrait> { |
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
[package] | |
name = "feedexplorer_api" | |
version = "0.1.0" | |
authors = ["Greg Edwards <[email protected]>"] | |
[dependencies] | |
rocket = "=0.2.9" | |
rocket_codegen = "=0.2.9" | |
rocket_contrib = "=0.2.9" | |
serde = "=0.9" |
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
{ | |
pkgs ? ( | |
let | |
pkgs = import <nixpkgs>; | |
pkgs_ = (pkgs {}); | |
rustOverlay = (pkgs_.fetchFromGitHub { | |
owner = "mozilla"; | |
repo = "nixpkgs-mozilla"; | |
rev = "1608d31f7e5b2415fb80b5d76f97c009507bc45f"; | |
sha256 = "0mznf82k7bxpjyvigxvvwpmi6gvg3b30l58z36x192q2xxv47v1k"; |
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
#!/bin/bash | |
if [ "$#" == "0" ]; then | |
echo "You need to supply at least one domain name!" | |
exit 1 | |
fi | |
DOMAINS=( | |
'com' \ | |
'me' \ |
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
# using ubuntu/trusty64 | |
sudo apt-get install fis-gtm -y | |
/usr/lib/fis-gtm/V6.0-003_x86_64/gtm -direct | |
sudo ln -s /usr/lib/fis-gtm/V6.0-003_x86_64/libgtmshr.so /usr/local/lib/libgtmshr.so | |
sudo ldconfig | |
sudo apt-get install npm -y | |
sudo apt-get install nodejs -y | |
# npm init | |
npm install -S nodem |
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
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew update | |
brew doctor | |
brew update |