Skip to content

Instantly share code, notes, and snippets.

Samuel Champagne astraloverflow

Block or report user

Report or block astraloverflow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View match.js
/*! */
const match = x => {
const matched = y => ({
on: () => matched(y),
otherwise: () => y
return ({
on: (pred, fn) => (pred(x) ? matched(fn(x)) : match(x)),
otherwise: fn => fn(x)
astraloverflow / _display.scss
Created Feb 1, 2019
Responsive display classes for Bootstrap
View _display.scss
// Needs Bootstrap Variables, Functions, & Mixins
// @import "../../node_modules/bootstrap/scss/functions";
// @import "../../node_modules/bootstrap/scss/variables";
// @import "../../node_modules/bootstrap/scss/mixins";
@mixin display-1 {
font-size: $display1-size;
font-weight: $display1-weight;
line-height: $display-line-height;
astraloverflow / getUnixTime.js
Created Dec 15, 2018
One-liner function to get current Unix time (seconds since 1970-01-01 0:00 UTC)
View getUnixTime.js
const getUnixTime = () => ~~( / 1000)
View cursor-blink.css

Keybase proof

I hereby claim:

  • I am astraloverflow on github.
  • I am samuelchampagne ( on keybase.
  • I have a public key whose fingerprint is F81D 602F EA5B 7FD4 AE89 78FA D556 03F4 F961 5A4F

To claim this, I am signing this object:

astraloverflow / LICENSE
Created Feb 28, 2017
CC0 1.0 Universal
CC0 1.0 Universal
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator and
subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for the
View humans.txt
/* TEAM */
name: Your Name
role: Your Title
contact: Your Email, Website, or Twitter Username
location: City, Country
name: Contributor's Name
astraloverflow / _button.scss
Created May 26, 2016
For Personal Reference
View _button.scss
&__this {
padding: 1em;
background-color: #ddd;
astraloverflow /
Created May 6, 2016 — forked from cobyism/
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

You can’t perform that action at this time.