This file contains hidden or 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
require 'rails_erd/diagram/graphviz' | |
module RailsERD | |
class Diagram | |
module GraphvizFontFix | |
# font name to PostScript name table | |
FONTNAMES = { | |
'Arial' => 'ArialMT', |
This file contains hidden or 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 rackup | |
# encoding: utf-8 | |
# This file can be used to start Padrino, | |
# just execute it from the command line. | |
require File.expand_path("../config/boot.rb", __FILE__) | |
# Bower components を /assets/* で参照できるようにする | |
if File.exists?('.bowerrc') |
This file contains hidden or 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 ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'serialport' | |
class Fplug | |
DEFAULT_PORT = '/dev/tty.fplug' | |
REQ_TEMPLATE = [0x10, 0x81, 0x00, 0x00, 0x0e, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x62, 0x01, 0x00, 0x00] |
This file contains hidden or 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
#!/bin/bash | |
die() { | |
echo "$@" 1>&2 | |
exit 1 | |
} | |
usage() { | |
die "Usage: $(basename $0) <from> [<to>]" | |
} |
This file contains hidden or 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
#!/bin/bash | |
die() { | |
echo "$1" 1>&2 | |
exit 1 | |
} | |
usage() { | |
die "Usage: $(basename $0) [-o outfile] <tree-ish> [<path>...]" | |
} |
This file contains hidden or 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
[core] | |
quotepath = false | |
[alias] | |
st = status | |
ci = commit -a | |
co = checkout | |
up = pull --rebase | |
lg = log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d' | |
lo = log --graph --all --color --pretty='%x09%h %ad %cn%x09%s %Cred%d' --date=short | |
ls = ls-files |
NewerOlder