brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| import React, { useState, useEffect, useContext, FC } from "react"; | |
| import createAuth0Client from "@auth0/auth0-spa-js"; | |
| interface Auth0ProviderProps { | |
| children: JSX.Element; | |
| auth0Options: Auth0ClientOptions; | |
| onRedirectCallback: Function; | |
| } | |
| export interface Auth0ContextType { |
| #! /bin/bash | |
| # | |
| # create_instances.sh | |
| # Copyright (C) 2016 dhilipsiva <[email protected]> | |
| # | |
| # Distributed under terms of the MIT license. | |
| # | |
| INSTANCES=3 | |
| PREFIX_APP="deisdemo-" |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| # Auto detect text files and perform LF normalization | |
| * text=auto | |
| # Custom for Visual Studio | |
| *.cs diff=csharp |
| <?php | |
| class Casey { | |
| public $hair = 'brown'; | |
| public $eyes = 'brown'; | |
| public $loves = array('monkeys', 'SciFi', 'texas', 'music'); | |
| } | |
| $human = new Casey(); | |
| $human->birthday('2015-02-02'); | |
| $human->fingers = 10; |
| git log --name-only | grep php --exclude=trunk | sort | uniq -c | sort -nr | head -n 25 > churn.txt | |
| This one looks like an odd ball but what it does is: | |
| - looks at the git log file, retrieving just the filenames; | |
| - greps to extract those filenames, excluding anything from the old SVN /trunk structure; | |
| - sorts the list of files to get the duplicates together; | |
| - eliminates the duplicates but keeps a count of them; | |
| - resorts the file names by that count; and |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
| git shortlog -e -s -n |
| (function(wndw) { | |
| var Browsers, OS, Platform, Versions, browser_name, browser_version, os, platform; | |
| Versions = { | |
| Firefox: /firefox\/([\d\w\.\-]+)/i, | |
| IE: /msie\s([\d\.]+[\d])/i, | |
| Chrome: /chrome\/([\d\w\.\-]+)/i, | |
| Safari: /version\/([\d\w\.\-]+)/i, | |
| Ps3: /([\d\w\.\-]+)\)\s*$/i, | |
| Psp: /([\d\w\.\-]+)\)?\s*$/i | |
| }; |