Skip to content

Instantly share code, notes, and snippets.

View yasuflatland-lf's full-sized avatar
🏄‍♂️
Skating

Yasuyuki Takeo yasuflatland-lf

🏄‍♂️
Skating
View GitHub Profile
#!/bin/bash
exec "/mnt/c/Program Files/Google/Chrome/Application/chrome.exe" $(wslpath -w ${1})
@yasuflatland-lf
yasuflatland-lf / pdffile_cleanup.sh
Last active June 20, 2023 04:54
PDF File clean up
#!/bin/sh -xe
cat $1 | tr '\n' ' ' | sed -e "s/■ /\n■ /g" > out.txt
{
"context": "query",
"occur": "filter",
"query": {
"range": {
"createDate": {
"include_lower": true,
"include_upper": true,
"from": "${time.current_date|modifier=-30d,date_format=yyyyMMddhhmmss}"
}
Japanese Search Improvement with Dismax Query for Liferay 7.4
Japanese Search Synonym Default Settings for Liferay 7.4
@yasuflatland-lf
yasuflatland-lf / japanese_payment_process.md
Last active April 18, 2022 06:28
Japanese Payment Process
sequenceDiagram

    actor Customer
    participant Sales as Sales
    participant Accounting as Accounting
    participant Finance as Finance
    participant System as System
    participant Report as Report Files<br/>紙の伝票
    participant Procurement as Procurement
[#assign assetEntry = "" /]
[#assign sn = "" /]
[#assign infoListDisplayObject = (request.getAttribute("INFO_LIST_DISPLAY_OBJECT"))! /]
[#assign liferaySharedLayoutAssetEntry = (request.getAttribute("LIFERAY_SHARED_LAYOUT_ASSET_ENTRY"))! /]
[#if infoListDisplayObject?has_content]
[#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /]
[#assign modelClassName = infoListDisplayObject.modelClassName! /]
[#assign black_list = ["class", "request", "getreader", "getinputstream", "writer"] /]
[#macro dump key data]
[#if data?is_enumerable]
enumerable:<b>${key}</b>
[@printList data,[] /]
[#elseif data?is_hash_ex]
hash_ex:<b>${key}</b>
[@printHashEx data,[] /]
[#else]
@yasuflatland-lf
yasuflatland-lf / exec.rb
Last active October 7, 2021 02:14
Get rid of duplication from 2 files
input = []
File.foreach("input.txt"){|line|
input << line.chomp
}
output = []
File.foreach("output.txt"){|line|
output << line.chomp
}
// Remove duplicated entries in input from output
@yasuflatland-lf
yasuflatland-lf / movie_review_image_web_content_template.ftl
Last active June 1, 2021 07:53
Qiita Movie Review List Snippets
<#--
Web content templates are used to lay out the fields defined in a web
content structure.
Please use the left panel to quickly add commonly used variables.
Autocomplete is also available and can be invoked by typing "${".
-->
${DocumentsAndMedia2wx2.getData()}