View faucet.config.js
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
module.exports = { | |
manifest: { | |
webRoot: "./dist" | |
}, | |
middleware: [ | |
(req, res, next) => { | |
// an amazing logger middleware. wow. | |
console.log(`${req.method} ${req.url}`) | |
next() | |
} |
View faucet.config.js
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 strict"; | |
module.exports = { | |
js: [{ | |
source: "./index.js", | |
target: "./dist/bundle.js" | |
}] | |
}; |
View SassMeister-input-HTML.html
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
<div class="foo">Hello</div> | |
<div class="bar">Hello</div> |
View faucet.config.js
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
let path = require("path"); | |
module.exports = { | |
sass: [{ | |
source: "./src/app.scss", | |
target: "./dist/app.css" | |
}], | |
nunjucks: [{ | |
source: "./src/index.njk", |
View faucet.config.js
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
module.exports = { | |
sass: [{ | |
source: "./index.scss", | |
target: "./dist/bootstrap.css" | |
}] | |
}; |
View Dockerfile
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
FROM ruby:2.4 | |
RUN useradd -m app && \ | |
mkdir /app | |
WORKDIR /app | |
USER app | |
CMD ["bash"] |
View inline_bundler.rb
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
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "mote", "~> 1.3.0" | |
end | |
example = Mote.parse("Hello {{name}}", self, [:name]) | |
puts example.call(name: "World") |
View Gemfile
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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "rspec" |
View infinity.rb
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
x = [200, 100, 300].reduce(Float::INFINITY) do |smallest, current| | |
if current < smallest | |
current | |
else | |
smallest | |
end | |
end | |
p x |
View main.rs
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() { | |
println!("Hello, world!"); | |
} | |
fn make_guess(_g: Game, _c: char) -> Game { | |
unimplemented!() | |
} | |
#[derive(Debug, PartialEq, Eq)] | |
struct Game { |
NewerOlder