This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery Floating Scrollbar - v0.5 - 09/05/2013 | |
* http://benalman.com/ | |
* | |
* Copyright (c) 2011 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*/ | |
(function($, window){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
tidy = !git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote | xargs -n 1 git remote prune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Serve 1Password anywhere from the Dropbox folder | |
server { | |
listen 80; | |
server_name 1password; | |
root /home/kflorence/Dropbox/1Password.agilekeychain; | |
location / { | |
index 1Password.html; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
# Nicer looking prompt with git branch in it | |
# https://github.com/mbadolato/iTerm2-Color-Schemes | |
export PS1="\[\033[36m\]\u\[\033[m\]:\[\033[33;1m\]\w\[\033[m\]\[\033[35;1m\]\$(parse_git_branch)\[\033[m\]\$ " | |
# ls colors | |
export CLICOLOR=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.solarmosaic.core.service.converter | |
import javax.inject.Inject | |
import org.springframework.beans.factory.annotation.Qualifier | |
import org.springframework.core.convert.{TypeDescriptor, ConversionService} | |
import scala.reflect._ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drop table if exists customer; | |
create table customer( | |
id int auto_increment primary key, | |
first_name varchar(96) not null, | |
last_name varchar(96) not null, | |
address_id int not null | |
); | |
insert into customer (first_name, last_name, address_id) values ('john', 'doe', 1); | |
insert into customer (first_name, last_name, address_id) values ('jane', 'doe', 2); |
I hereby claim:
- I am kflorence on github.
- I am kflo (https://keybase.io/kflo) on keybase.
- I have a public key whose fingerprint is 79E4 56F4 4594 3E67 C69A AFB7 A371 9CEE B95E D236
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This script generates markdown from the output of the `tree` command. | |
# See: https://linux.die.net/man/1/tree | |
# See: https://gist.github.com/kflorence/7f18ad97c65337ef77d37159260a331d | |
set -e | |
# Tree is configured with: | |
# - `-f`: use full paths in output (relative to directory given, in this case '.'). | |
# - `--noreport`: exclude the directories and files report as the last line of output. |