Skip to content

Instantly share code, notes, and snippets.

View billshannon's full-sized avatar

Bill Shannon billshannon

  • Rockledge Software
  • Boulder, CO
View GitHub Profile
@billshannon
billshannon / .config_fish
Created March 26, 2018 16:25
Fish Config File reuse Bash
set -g -x fish_greeting ''
# REUSE ALIASES FROM ~/.bash_profile
egrep "^alias " ~/.bash_profile | while read e
set var (echo $e | sed -E "s/^alias ([A-Za-z0-9_-]+)=(.*)\$/\1/")
set value (echo $e | sed -E "s/^alias ([A-Za-z0-9_-]+)=(.*)\$/\2/")
# remove surrounding quotes if existing
set value (echo $value | sed -E "s/^\"(.*)\"\$/\1/")
p, ul, ol, dl, table, blockquote, pre, .wd-Alert, .wd-Alert--info, .notify-msg.info, #block-system-help, .wd-Alert--warning, .notify-msg.warning, .wd-Alert--error, .notify-msg.error, .wd-Alert--success, .notify-msg.success, .notify-msg {
margin-bottom: 10px;
}
a {
font-weight: bold;
}
a:hover {
text-decoration: underline;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Bootstrap 4 Template</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css"
integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
</head>
@billshannon
billshannon / index.html
Last active December 1, 2015 18:01
Angular setup with Bootstrap
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="stylesheets/style.css">
<title>Angular App</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
@billshannon
billshannon / index.html
Created November 15, 2015 03:26
Bootstrap 3 Download Setup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<title>Bootstrap 3 Download Setup</title>
</head>
@billshannon
billshannon / index.html
Last active April 13, 2016 17:01
Bootstrap 3 CDN Setup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 3 CDN</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
class User < ActiveRecord::Base
  validates_format_of :email, :with => /@/
end

Add another line to Readme.md and save

To view the difference between the file now and how it was at your last commit.

$ git diff

Let's add the changed file to the staging area.

$ git add Readme.md

Create a Readme file:

$ echo "Hello" > Readme.md

Then add the file you created to the staging area.

$ git add Readme.md

Finally, let's commit it to the repository with a short description.

@billshannon
billshannon / gist:9804fb3b41a3319e27ee
Last active August 29, 2015 14:07
Git Basics Pt. 1

Make a new directory:

$ mkdir git_practice

To go into that folder:

$ cd git_directory

Create a new Git instance for a project: