A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| FROM crystallang/crystal:0.27.2 | |
| WORKDIR /opt/src | |
| # Install nodejs | |
| COPY bin ./bin | |
| RUN bin/nodesource_11.x | |
| RUN apt-get update && apt-get install -y nodejs | |
| # npm install |
| We develop locally on MacOS. Due to some issues with cross compilation, we build the crystal binary on docker locally, | |
| then zip that up and ship that along with the docker stuff to elasticbeanstalk. |
| # And, to activate, you need to tell Rails to load it up: | |
| # config/application.rb | |
| config.middleware.insert_before 0, Rack::Attack |
| gource -1280x720 -s 0.01 --max-file-lag 0.1 --auto-skip-seconds 0.25 --user-image-dir ./avatar --hide progress,filenames,dirnames,mouse --date-format "%Y-%m-%d" --multi-sampling --bloom-multiplier 0.4 --bloom-intensity 0.8 --user-scale 1 --max-user-speed 50 --file-idle-time 0 --key --font-size 25 --title "Cell Commits" --font-colour FF0000 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 8 -bf 0 gource_cell_commits.mp4 |
| module Shopify.Product.Model where | |
| type alias Product = | |
| { created_at : String, | |
| id : Int, | |
| product_type : String, | |
| published_at : String, | |
| published_scope : String, | |
| title : String, | |
| updated_at : String, |
This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).
Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.
Switch to the master branch and make sure you are up to date:
| # ## Docs setup | |
| # ### On Github | |
| # Fork api-docs repo on github to your account. | |
| # Any change you make you should push to your repo first ( into a branch preferably) and then create a pull-request to trailblazer | |
| # | |
| # ## Locally | |
| # Create a local folder like ~/projects/trailblazer/docs ( or whatever) | |
| # Where you are going to keep local copies of the gems. | |
| # | |
| # cd into the said directory |
| build_package_patched() { | |
| # These three patches are included when RVM builds REE | |
| cd source | |
| wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/tcmalloc.patch' | |
| wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/stdout-rouge-fix.patch' | |
| wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/no_sslv2.diff' | |
| patch -p1 < tcmalloc.patch | |
| patch -p1 < stdout-rouge-fix.patch | |
| patch -p1 < no_sslv2.diff | |
| cd .. |
| # Install system libraries. | |
| sudo apt-get install zlib1g-dev openssl libssl-dev libreadline-dev git-core | |
| # Install rbenv. | |
| git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
| # Setup bash. | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
| echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
| exec $SHELL |