Skip to content

Instantly share code, notes, and snippets.

We couldn’t find that file to show.
@mi-yo
mi-yo / redmine_gantts_show_linenumber.patch
Last active August 29, 2015 14:02
Redmine 2.5.1 gantts show line number.
--- app/views/gantts/show.html.erb.org 2014-03-30 01:56:38 +0900
+++ app/views/gantts/show.html.erb 2014-06-23 17:42:45 +0900
@@ -116,6 +116,58 @@
<table style="width:100%; border:0; border-collapse: collapse;">
<tr>
+<%
+ line_number_width = @gantt.number_of_rows.to_s.length * 8 + 8
+%>
+<td style="width:<%= line_number_width %>px; padding:0px;">
@mi-yo
mi-yo / redmine_issues_show_linenumber.patch
Last active August 29, 2015 14:02
Redmine 2.5.1 issues show line number.
--- app/views/issues/_list.html.erb.org 2014-03-30 01:56:38 +0900
+++ app/views/issues/_list.html.erb 2014-06-23 17:44:49 +0900
@@ -4,6 +4,9 @@
<table class="list issues">
<thead>
<tr>
+ <th>
+ <%= raw("LN") %>
+ </th>
<th class="checkbox hide-when-print">
@mi-yo
mi-yo / redmine_gantts_show_assignee.patch
Last active August 29, 2015 14:03
Redmine 2.5.1 gantts show assignee.
--- app/views/gantts/show.html.erb.org 2014-03-30 01:56:38 +0900
+++ app/views/gantts/show.html.erb 2014-06-29 22:41:28 +0900
@@ -146,6 +146,61 @@
<% end %>
<% end %>
</td>
+<%
+ assignee_width = 80
+%>
+<td style="width:<%= assignee_width %>px; padding:0px;">
--- stylesheets/application.css.org 2014-04-09 06:36:20 +0900
+++ stylesheets/application.css 2014-06-30 00:32:13 +0900
@@ -221,7 +221,9 @@
div.wiki ul.toc { padding: 10px; }
div.wiki img { max-width: 100%; }
div.wiki table img { width: 100%; }
+div.wiki code { background-color: #f8f8f8; border: 1px solid #ddd; white-space: nowrap; padding: 1px 4px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
div.wiki pre { margin: 15px 0; background-color: #f8f8f8; border: 1px solid #ddd; font-size: 13px; line-height: 19px; overflow: auto; padding: 6px 10px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
+div.wiki pre code { background: none; border: none; padding: 0; white-space: pre-wrap; }
--- stylesheets/application.css.org 2014-06-13 00:37:48 +0900
+++ stylesheets/application.css 2014-07-05 18:09:00 +0900
@@ -321,6 +321,16 @@
/***** Wiki *****/
+div.wiki code {
+ background-color: #f8f8f8;
+ border: 1px solid #ddd;
+ white-space: nowrap;
We couldn’t find that file to show.
We couldn’t find that file to show.
@mi-yo
mi-yo / markdown2html.rb
Created September 7, 2014 06:54
markdown2html
require 'redcarpet'
require 'rouge'
require 'pathname'
HEADER = <<-EOS
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<style type="text/css">
@mi-yo
mi-yo / CppUTest_sample.md
Created March 1, 2015 23:29
CppUTest_sample

C++開発環境

msysGit

Git for Windows https://msysgit.github.io/

Git fo Windowsがあればgitは使えるが、その開発環境一式であるmsysGitを入れれば