Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
...

Ladislas de Toldi ladislas

💭
...
View GitHub Profile
@maelvls
maelvls / How-to-automate-build-bottles-your-homebrew-tap.md
Last active Apr 12, 2021
Automate build workflow for Homebrew tap bottles (Linux and macOS)
View How-to-automate-build-bottles-your-homebrew-tap.md

How to automate the build of bottles on your Homebrew tap

Note on Oct 4, 2018: due to a change in Homebrew's brew test-bot behaviour, the user must set HOMEBREW_TRAVIS_CI and HOMEBREW_TRAVIS_SUDO appropriately (it was previously using Travis-CI-provided TRAVIS and TRAVIS_SUDO).

This tutorial is a follow-up to the discussion we had on https://github.com/davidchall/homebrew-hep/pull/114. It relies on a fork of the test-bot provided by davidchall; you can get it with brew tap maelvalais/test-bot. First:

  1. the Github project must be of the form https://github.com/<user>/homebrew-<tap> with the following tree
View Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@twhitacre
twhitacre / instructions.md
Last active Sep 29, 2018
How to use Bourbon, Neat, Bitters and Refills in a Yeoman app with Bower.
View instructions.md

Your bower_components folder should be outside of your /app folder. Otherwise you'll need to modify the paths below.

  • Scaffold your Yeoman App
  • Install Bourbon, Neat & Bitters
    • bower install bourbon
    • bower install neat
    • bower install bitters
  • In your app/stylesheets/main.scss include the assets in this order
@import '../../bower_components/bourbon/dist/bourbon';
@BrettBukowski
BrettBukowski / gist:3bed4b58276e5596e74f
Created Jul 2, 2014
Perfect vertical+horizontal centering (in SCSS + Bourbon)
View gist:3bed4b58276e5596e74f
// Perfect vertical+horizontal centering.
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
@include prefixer(box-align, center, webkit moz ms spec);
-ms-flex-align: center;
@include prefixer(align-items, center, webkit spec);
@atenni
atenni / README.md
Last active Apr 14, 2021
How to permalink to a gist's raw file
View README.md

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]