From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
-
Switch to the main branch, usually 'develop':
git checkout develop -
Get a list of fully merged branches:
From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
Switch to the main branch, usually 'develop':
git checkout develop
Get a list of fully merged branches:
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| .vertical-center { | |
| display: -moz-box; | |
| -moz-box-align: center; | |
| display: -webkit-box; | |
| -webkit-box-align: center; | |
| display: -ms-flexbox; | |
| -ms-flex-align: center; | |
| display: -webkit-flex; | |
| -webkit-align-items: center; | |
| display: flex; |
| ; Inspired by https://twitter.com/gigasquid/status/530699466891067392 ... | |
| ; An implementation of the Fizz Buzz Kata with no conditionals. | |
| (defn fb-gen | |
| [step value] | |
| (into (sorted-map) (zipmap (range step 101 step) (repeat value)))) | |
| (def nums (into (sorted-map) (zipmap (range 1 101) (range 1 101)))) | |
| (def threes (fb-gen 3 "fizz")) | |
| (def fives (fb-gen 5 "buzz")) | |
| (def fifteens (fb-gen 15 "fizzbuzz")) |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
A Pen by Elijah Manor on CodePen.
To use this bot:
ads_bot.py and requirements.txt.pip install -r requirements.txt to install the requirements.| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |