Skip to content

Instantly share code, notes, and snippets.

@freedomcat
freedomcat / forRP.ps1
Created November 24, 2019 14:10
CrowdinXLIFF2txt
$inputfile = Get-ChildItem -Filter *.xliff | Where-Object { $_.LastWriteTime.ToString("yyyy/MM/dd") -eq (Get-Date).ToString("yyyy/MM/dd") } | Get-ChildItem -Name
$outfile = $inputfile.Replace("xliff","txt")
$baseurl = "https://crowdin.com/translate/bible-app-bible-plans/"
function OutFile-ReadingPlanBodys($unit){
$id = $unit.GetAttribute("id")
"`r`n`r`n"+$unit.note+" $baseurl#$id" | Out-File -Encoding utf8 -Append $outfile
"`r`ncode:en" | Out-File -Encoding utf8 -Append $outfile
"`t"+$unit.source | Out-File -Encoding utf8 -Append $outfile
T.closelets([
{title: "PostEver",
fn: function(){
T( 'urlScheme', {
url: 'postever://data/' + encodeURIComponent( T.whole ) ,
option: 'cutWhole'
} )
}}],
function(){
url="http://www.hyuki.com/roba/kuroba.html";
@freedomcat
freedomcat / searchgoogledocs.js
Created April 21, 2012 04:32
MyScripts用 GoogleDocs検索
#IMPORT ecl.js
function convert(src)
{
var dest=src;
var prefix = "https://docs.google.com/fe/m#MobileMainPlace:ALL_ITEMS_FILTER_SPEC&SORT_FILTER_SPEC:7,desc&FULL_TEXT_FILTER_SPEC:";
return prefix+EscapeUTF8(EscapeUTF8(dest));
}
@freedomcat
freedomcat / bookoffonlinesearch.js
Created April 7, 2012 03:38
ブックオフオンライン検索 MyScripts
#IMPORT ecl.js
function convert(src)
{
   var dest=src;
   var prefix = "http://www.bookoffonline.co.jp/display/L001,st=u,q=";
   return prefix+EscapeSJIS(EscapeSJIS(dest));
}
#!/usr/bin/env ruby
# -*- coding: utf-8; -*-
# README http://www.freedomcat.com/wiki.cgi?page=mm2bs
# DATE:2011/08/20 22:04
require 'csv'
require 'amazon/aws'
require 'amazon/aws/search'
include Amazon::AWS
@freedomcat
freedomcat / gist:1095020
Created July 20, 2011 14:08
自分用latex Makefile
#
# Makefile for latex
# Date: 2011/07/20
# Update:2011/07/22
# Authro:shino <shino@freedomcat.com>
#
DOC =talk
FIGDIR =./img
test up!
done!
change.
*アカウント登録
** sign up now
http://github.com/
** Choose the plan that's right for you.
8プランあり。
open sourceならfreeでok.
** Sign up
- username(必須)
-- http://github.com/username
- Email Address(必須)