Skip to content

Instantly share code, notes, and snippets.

saturday06 saturday06

Block or report user

Report or block saturday06

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:93f55cc5e46cf5de3c2262b6c78d19bc
diff -uprN cairo-1.14.6.orig/src/cairo-ft-font.c cairo-1.14.6/src/cairo-ft-font.c
--- cairo-1.14.6.orig/src/cairo-ft-font.c 2016-09-24 22:45:56.000000000 +0900
+++ cairo-1.14.6/src/cairo-ft-font.c 2016-09-24 22:51:12.000000000 +0900
@@ -2258,7 +2258,7 @@ _cairo_ft_scaled_glyph_init (void *abs
* Moreover, none of our backends and compositors currently support
* color glyphs. As such, this is currently disabled.
*/
- /* load_flags |= FT_LOAD_COLOR; */
+ load_flags |= FT_LOAD_COLOR;
#endif
@saturday06
saturday06 / w3c_html_validator.rb
Created Nov 17, 2012
w3c html validation for each cucumber scenario step
View w3c_html_validator.rb
# -*- coding: utf-8 -*-
AfterStep do |scenario|
unless $html_validator
FileUtils.rm_rf W3cHtmlValidator::BASE_TMP_DIR
FileUtils.mkdir_p W3cHtmlValidator::BASE_TMP_DIR
FileUtils.touch File.join(W3cHtmlValidator::BASE_TMP_DIR, "dummy.txt")
$html_validator = W3cHtmlValidator.new
end
$html_validator.validate page.html, current_url
@saturday06
saturday06 / selenium_grid.rb
Created Nov 17, 2012
Rails3 configuration example for using selenium grid
View selenium_grid.rb
# -*- coding: utf-8 -*-
require 'spork'
require 'socket'
Spork.prefork do
require 'cucumber/rails'
# read environment variables
desired_capabilities = {
browserName: (ENV['SELENIUM_DESIRED_BROWSER_NAME'] or "firefox"),
View gist:3663564
#!/bin/sh
# -*- coding: utf-8 -*-
# チケット番号付加フック。bleis-hookのパクり
#
# レポジトリの.git/hooks/commit-msgにコピって、chmod 755 .git/hooks/commit-msg としてください
#
# ticket/チケット番号
#
# とか
#
View gist:3663511
#!/bin/sh
# -*- coding: utf-8 -*-
# ブランチ名に、ここで指定した文字が含まれる場合、この文字に続く数値がチケット番号であるとする
# 例えば PREFIX=ticket- とし、 ticket-123 というブランチで作業した場合、123がチケット番号とする
PREFIX=ticket/
commit_msg_path=$1
# ブランチ名を取得
You can’t perform that action at this time.