Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
<body> | |
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : 'YOUR_APP_ID', // App ID | |
status : true, // check login status | |
}); | |
// check if the view has registered an "after facebook load callback" | |
if(typeof window.appSpecificFbAsyncInit == 'function') { |
_ __(_)___ ____ ___ __(_)____/ /_______/ /_____ ______/ /_ | |
| | / / / __ \ / __ `/ / / / / ___/ //_/ ___/ __/ __ `/ ___/ __/ | |
| |/ / / /_/ / / /_/ / /_/ / / /__/ ,< (__ ) /_/ /_/ / / / /_ | |
|___/_/ .___/ \__, /\__,_/_/\___/_/|_/____/\__/\__,_/_/ \__/ | |
/_/ /_/ | |
================================== |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
$stderr.write 'Press enter to continue' | |
$stdin.gets |
// store.js | |
import React, {createContext, useReducer} from 'react'; | |
const initialState = {}; | |
const store = createContext(initialState); | |
const { Provider } = store; | |
const StateProvider = ( { children } ) => { | |
const [state, dispatch] = useReducer((state, action) => { | |
switch(action.type) { |
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |