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
diff --git a/bib/i/res/styles/bibi.css b/bib/i/res/styles/bibi.css | |
index 907a536..06f1751 100644 | |
--- a/bib/i/res/styles/bibi.css | |
+++ b/bib/i/res/styles/bibi.css | |
@@ -5,7 +5,7 @@ | |
* - Copyright (c) 2009 Christopher M. Eppstein | |
* - Released under a slightly modified MIT license. - https://github.com/Compass/compass/blob/stable/LICENSE.markdown | |
* | |
- */html.spread-ltr div#epub-asides,html.spread-ttb div#epub-asides{right:0;bottom:0}div#checker,html.page-rtl div#bibi-panel-navigation-item{-moz-writing-mode:vertical-rl;writing-mode:vertical-rl;-ms-writing-mode:vertical-rl}p#bibi-cartain-catcher,p#bibi-cartain-playbutton{cursor:pointer}div#checker,html.page-rtl div#bibi-panel-navigation-item{-webkit-writing-mode:vertical-rl;-epub-writing-mode:vertical-rl}.bibi-icon,.bibi-icon *,.bibi-icon:after,.bibi-icon:before,div#bibi-cartain,div#bibi-cartain-cover,div#bibi-panel,div#bibi-panel-menu,div#bibi-panel-misc,div#bibi-panel-navigation,div#bibi-panel-navigation-item,div#bibi-panel-navigation-item-box,div#epub-conten |
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
var http = require("http"); | |
var connect = require("connect"); | |
var serveStatic = require("serve-static"); | |
var basicAuth = require("basic-auth-connect"); | |
connect() | |
.use(basicAuth(process.env.BASIC_AUTH_USER, process.env.BASIC_AUTH_PASSWORD)) | |
.use(serveStatic("dest", {index: ["index.html"]})) | |
.listen(process.env.PORT || 3000); |
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
require 'pathname' | |
require 'sinatra' | |
require 'sass' | |
require 'babel/transpiler' | |
Sass.load_paths << File.expand_path('bower_components/bibi/bibi-dev/res/styles/src', __dir__) | |
configure do | |
set :app_file, File.expand_path('.') | |
end |
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
var gulp = require("gulp"); | |
var browserSync = require("browser-sync"); | |
var reload = browserSync.reload; | |
var plumber = require("gulp-plumber"); | |
var notify = require("gulp-notify"); | |
var sourcemaps = require("gulp-sourcemaps"); | |
var sass = require("gulp-sass"); | |
gulp.task("sass", function() { | |
return gulp.src("./public/res/styles/*.scss") |
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
Encoding.default_external = 'UTF-8' | |
Encoding.default_internal = 'UTF-8' | |
require 'poppler' | |
path = ARGV.shift | |
unless path | |
$stderr.puts 'Specify PDF file' | |
abort |
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
# Start server: | |
# | |
# $ shotgun -s Puma -o 127.0.0.1 -p 9393 server.rb | |
# | |
# You can load ES 6 file like this: | |
# | |
# <style> | |
# <%=js '/src/my-custom-element.js' %> | |
# </style> | |
require 'sinatra' |
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
<!doctype html> | |
<button onclick="removeInput()">Remove input</button> | |
<button onclick="insertInput()">Insert input</button> | |
<label for="input">label</label> | |
<input id="input"> | |
<script> | |
inputs = document.getElementsByTagName("input"); | |
function removeInput() { |
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() { | |
var id = "funeral-rite"; | |
var frameId = "funeral-rite-frame"; | |
[id, frameId].forEach(function(id) { | |
var old = document.getElementById(id); | |
if (old) { | |
old.remove(); | |
} | |
}); | |
var body = document.body; |
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 adaptImage(image, width, height) { | |
// 作業場所としてのCanvasを作成 | |
var canvas = document.createElement("canvas"); | |
canvas.width = width; | |
canvas.height = height; | |
var workspace = new Stage(canvas); | |
var bitmap = new Bitmap(image); | |
// フィットさせたいコンテナ(?)と、画像の「横長ぐあい」を計算 | |
var aspectRatio = width / height; |
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
$ knife solo data bag show mysql root --secret-file=./data_bag_key |