日時: | 2025-05-13 |
---|---|
作: | 時雨堂 |
バージョン: | 2025.3 |
URL: | https://shiguredo.jp/ |
言語
日時: | 2025-05-13 |
---|---|
作: | 時雨堂 |
バージョン: | 2025.3 |
URL: | https://shiguredo.jp/ |
言語
#! /usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
### Settings | |
# 1. To use SocketIO, type the following: | |
# $ gem install socketio-client | |
require "SocketIO" | |
# 2. Tune to your channel | |
# Ex. http://screenx.tv/#{channel} |
This is one way to pass some data (API tokens, etc.) to your Jekyll templates without putting it in your _config.yml
file (which is likely to be committed in your GitHub repository).
Copy the environment_variables.rb
plugin to your _plugins
folder, and add any environment variable you wish to have available on the site.config
object.
In a Liquid template, that information will be available through the site
object. For example, _layouts/default.html
could contain:
miyagawa naoyaさん、最近は結構ブログが活発になってきている感じですね。
naoya はいはい、そうですよね。
miyagawa なんか、心境の変化があったんですか。
naoya 心境の変化(笑)
miyagawa (笑)
naoya いやずっとドラクエしかしてなかったんですけど(笑)
ScreenX TV is a web service that lets you broadcast your terminal to the world. It is often used for a hackathon, lecture, and opensource activity. And this gist explains how to broacdcast your terminal using it.
To install screenxtv
command, you can broadcast your terminal anytime, and there are two ways, Ruby and GCC. In both ways, you need to use screen before installing screenxtv
command.
diff --git a/lib/stripe.rb b/lib/stripe.rb | |
index fb4a6a6..7e77804 100644 | |
--- a/lib/stripe.rb | |
+++ b/lib/stripe.rb | |
@@ -46,7 +46,7 @@ require 'stripe/errors/authentication_error' | |
module Stripe | |
@@ssl_bundle_path = File.join(File.dirname(__FILE__), 'data/ca-certificates.crt') | |
@@api_key = nil | |
- @@api_base = 'https://api.stripe.com/v1' | |
+ @@api_base = 'https://api.webpay.jp/v1' |
#! /bin/sh | |
# | |
# parsrc.sh | |
# CSV(Excel形式(RFC 4180):ダブルクォーテーションのエスケープは"")から | |
# 行番号列番号インデックス付き値(line field indexed value)テキストへの正規化 | |
# (例) | |
# aaa,"b""bb","c | |
# cc",d d | |
# "f,f" | |
# ↓ |