Skip to content

Instantly share code, notes, and snippets.

View chrisgalvan's full-sized avatar
🇲🇽
Full stack dev

Chris Galvan chrisgalvan

🇲🇽
Full stack dev
View GitHub Profile
@chrisgalvan
chrisgalvan / Popper.js
Created October 11, 2017 15:46 — forked from ebakan/Popper.js
React Component for Popper.js that takes the reference as its first child and the popper as its second child (a la react-tether)
import React, { Component, PropTypes } from 'react';
import popperJS from 'popper.js';
export default class Popper extends Component {
constructor(props) {
super(props);
this.state = {};
this.update = this.update.bind(this);
}
@chrisgalvan
chrisgalvan / handy-git-commands
Last active August 29, 2015 14:25
Useful Git commands
// See wich remote branches contain specific commit
git branch -r --contains COMMIT_HASH
// See a log for only commits unique to a branch
git log --no-merges [branch for log] --not [branches to exclude]
//
git log --first-parent --no-merges
<!-- Redirect to HTTPS -->
<rule name="HTTPS_AlwaysOn" patternSyntax="Wildcard" stopProcessing="false">
<match url="*" />
<serverVariables>
<set name="HTTPS" value="on" />
</serverVariables>
<action type="None" />
<conditions>
<add input="{HTTP_X_FORWARDED_PROTO}" pattern="https" />
</conditions>