This file contains hidden or 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
| # 標準出力の文字コードをUTF-8に変更 | |
| $OutputEncoding = [System.Console]::OutputEncoding | |
| # 上を実行してから下のようにUTF8のファイルをクリップボードにコピーすると文字化けしない | |
| cat .\pickup_process.go -Encoding utf8 | clip | |
| #################################################### | |
| # Nameプロパティがtmp.logのテキストファイルのみ出力 | |
| Get-ChildItem . -Recurse | % { if ($_.Name -eq "tmp.log") { echo $_ } } |
This file contains hidden or 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
| @echo off | |
| powershell Set-ExecutionPolicy RemoteSigned | |
| powershell .\out_pkgs.ps1 | |
| powershell Set-ExecutionPolicy Restricted |
This file contains hidden or 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
| // この例ではFileのデータを持つ | |
| listView.cellFactory = Callback<ListView<File>, ListCell<File>> { | |
| object : ListCell<File>() { | |
| override fun updateItem(item: File?, empty: Boolean) { | |
| super.updateItem(item, empty) | |
| if (item != null) text = item.name | |
| } | |
| } | |
| } |
This file contains hidden or 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
| package jiro.app.dao | |
| import org.w3c.dom.Element | |
| import java.io.File | |
| import javax.xml.parsers.DocumentBuilderFactory | |
| data class ConfigModel(val versions: List<VersionModel>) | |
| data class VersionModel(val id: String, val image: ImageModel) | |
| data class ImageModel(val columnCount: Int, val rowCount: Int, val oneTile: OneTileModel) | |
| data class OneTileModel(val width: Int, val height: Int) |
This file contains hidden or 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
| #!/bin/awk | |
| # vim:tw=0 | |
| # 外部から入力する変数(定数) | |
| # const:MAX ループ回数。集計範囲の上限を決定する | |
| # const:BINSIZE 区間 | |
| # 集計の範囲 (BINSIZE=10000の場合) | |
| # 0 < i <= 10000 | |
| # 10000 < i <= 20000 |
This file contains hidden or 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
| (ns clojuretest.core | |
| (:require [clojure.string :as str])) | |
| (defn -main | |
| "description" | |
| [& args] | |
| (let [nums (->> (-> "HOME" | |
| System/getenv | |
| (str "/Documents/access_log") | |
| slurp |
This file contains hidden or 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
| date count date count | |
| ------- --- ------- --- | |
| 2011-11 6 2011 8 | |
| 2011-12 2 2012 46 | |
| 2012-01 2 2013 13 | |
| 2012-02 2 2015 11 | |
| 2012-03 20 2016 88 | |
| 2012-04 8 2017 4 | |
| 2012-05 4 ------- --- | |
| 2012-06 3 total 170 |
This file contains hidden or 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
| #!/bin/bash | |
| # 使い方 | |
| # bash agg_ext.sh . | |
| set -eu | |
| target_dir=$1 | |
| find $target_dir -type f -printf "%TY-%Tm %p\n" | |
This file contains hidden or 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
| #!/bin/bash | |
| set -eu | |
| target_dir=$1 | |
| find $target_dir -type f | | |
| while read -r f | |
| do | |
| nf=`echo $f | nkf -Z | sed -r 's@ - @_@g' | sed -rE 's@ | @_@g'` |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "image/color" | |
| "image/png" | |
| "log" | |
| "math" | |
| "os" |