Skip to content

Instantly share code, notes, and snippets.

View jordanthomas's full-sized avatar
✌️
v chill

Jordan Thomas jordanthomas

✌️
v chill
View GitHub Profile
@jordanthomas
jordanthomas / fish_prompt.fish
Created April 19, 2023 17:40
A prompt w/ git status for fish shell
function fish_prompt --description 'Write out the prompt'
set -l branch (git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\1/')
set -l dirty_count 0
printf '\n%s' (set_color --bold)(prompt_pwd)(set_color normal)
if [ $branch ]
printf ' on %s' (set_color --bold)$branch(set_color normal)
set -l dirty_count (git status --porcelain | wc -l | sed "s/ //g")
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<style>
body {
@jordanthomas
jordanthomas / SassMeister-input-HTML.html
Created February 18, 2016 21:52
Generated by SassMeister.com.
<div class="title">remaining <br> title</div>
<div class="carousel">carousel</div>
<div class="remaining">remaining</div>
<div class="bid">bid<br>sharing</div>
<div class="details">details</div>
<div class="shipping">shipping</div>
@jordanthomas
jordanthomas / SassMeister-input-HTML.html
Created February 2, 2016 14:44
Generated by SassMeister.com.
<div class="container">
<div class="main"><img src="http://placehold.it/818x770"></div>
<div class="sub">
<div><img src="http://placehold.it/400x380"></div>
<div><img src="http://placehold.it/400x380"></div>
<div><img src="http://placehold.it/400x380"></div>
</div>
</div>
@jordanthomas
jordanthomas / newbs.js
Created August 6, 2015 20:19 — forked from overwine/newbs.js
Scroll up and scroll down detection + animation
var lastScrollTop = $(window).scrollTop();
$(window).scroll(function(event){
var currentScrollTop = $(window).scrollTop();
var scrollingUp = currentScrollTop > lastScrollTop;
var $filter = $('.top-filter');
if (scrollingUp) {
animating = true;
@jordanthomas
jordanthomas / nested_attrib_test.rb
Last active August 29, 2015 14:23
Association is nil when model accepts_nested_attributes
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
# Activate the gem you are reporting the issue against.
@jordanthomas
jordanthomas / SassMeister-input-HTML.html
Created July 9, 2014 18:13
Generated by SassMeister.com.
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
@jordanthomas
jordanthomas / SassMeister-input-HTML.html
Created June 20, 2014 04:33
Generated by SassMeister.com.
<span class="t active" data-key="hello world">Hello</span> and some additional words.
@jordanthomas
jordanthomas / SassMeister-input-HTML.html
Created June 6, 2014 03:23
Generated by SassMeister.com.
<div>
<div class="module">
a
</div>
</div>
<div>
<div class="module">
b
</div>
</div>
@jordanthomas
jordanthomas / SassMeister-input-HTML.html
Created May 28, 2014 15:00
Generated by SassMeister.com.
<div class="one">&nbsp;</div>
<div class="two">&nbsp;</div>