A list of Git aliases & recipes to Git like a 😎.
# ~/.git/config
[alias]
# List all aliases :)
la = "!git config -l | grep alias | cut -c 7-"Simplest intro to git by github and codeschool - Try Git
[Intro to github]
| if (!window.jsondiffpatch) { | |
| fetch('https://raw.githubusercontent.com/benjamine/jsondiffpatch/master/public/formatters-styles/html.css').then((response) => { | |
| return response.text(); | |
| }).then((styles) => { | |
| var css = document.createElement('style'); | |
| css.innerText = styles; | |
| document.head.appendChild(css); | |
| }); | |
| var script = document.createElement('script'); |
| import _ from 'underscore.global'; | |
| import Marionette from 'backbone.marionette-1.x'; | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| const defaultModelEvents = 'change'; | |
| const defaultCollectionEvents = 'add remove reset'; | |
| function defaultGetProps({model, collection, state = {}} = {}) { | |
| if (model) { |
| { | |
| "rules": { | |
| "no-console": 1, | |
| "no-duplicate-case": 2, | |
| "no-extra-parens": 0, | |
| "accessor-pairs": 0, | |
| "block-scoped-var": 0, | |
| "complexity": 0, | |
| "default-case": 1, | |
| "guard-for-in": 1, |
| /** | |
| * Backbone Computed | |
| * ----------------- | |
| * | |
| * a mixin that enables special kind of computed properties on backbone models | |
| * | |
| * | |
| */ | |
| (function (root, factory) { | |
| if (typeof exports !== 'undefined') { |
| (function($) { | |
| $.fn.stickyHeaders = function({ | |
| headerHeight= 60 | |
| } = {}) { | |
| const $container = this; // i | |
| const $fakeHeader = $container.find('.fake-header'); | |
| $container.on("scroll touchstart touchmove", function() { | |
| const scrollTop = $container.scrollTop(); |
| export default function onRetina() { | |
| if (window.matchMedia) { | |
| var mq = window.matchMedia('only screen and (-webkit-min-device-pixel-ratio: 2),' + | |
| 'only screen and ( min--moz-device-pixel-ratio: 2),' + | |
| 'only screen and ( -o-min-device-pixel-ratio: 2/1),' + | |
| 'only screen and ( min-device-pixel-ratio: 2),' + | |
| 'only screen and ( min-resolution: 192dpi),' + | |
| 'only screen and ( min-resolution: 2dppx)'); | |
| return mq ? mq.matches : false | |
| } |