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
| import * as sass from 'sass'; | |
| let result = sass.compile('style/index.scss'); | |
| console.log(result); |
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.exports = { | |
| manifest: { | |
| webRoot: "./dist" | |
| }, | |
| middleware: [ | |
| (req, res, next) => { | |
| // an amazing logger middleware. wow. | |
| console.log(`${req.method} ${req.url}`) | |
| next() | |
| } |
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 strict"; | |
| module.exports = { | |
| js: [{ | |
| source: "./index.js", | |
| target: "./dist/bundle.js" | |
| }] | |
| }; |
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
| <div class="foo">Hello</div> | |
| <div class="bar">Hello</div> |
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
| let path = require("path"); | |
| module.exports = { | |
| sass: [{ | |
| source: "./src/app.scss", | |
| target: "./dist/app.css" | |
| }], | |
| nunjucks: [{ | |
| source: "./src/index.njk", |
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.exports = { | |
| sass: [{ | |
| source: "./index.scss", | |
| target: "./dist/bootstrap.css" | |
| }] | |
| }; |
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 ruby:2.4 | |
| RUN useradd -m app && \ | |
| mkdir /app | |
| WORKDIR /app | |
| USER app | |
| CMD ["bash"] |
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
| 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") |
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
| # frozen_string_literal: true | |
| source "https://rubygems.org" | |
| gem "rspec" |
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
| x = [200, 100, 300].reduce(Float::INFINITY) do |smallest, current| | |
| if current < smallest | |
| current | |
| else | |
| smallest | |
| end | |
| end | |
| p x |
NewerOlder