Skip to content

Instantly share code, notes, and snippets.

View kuju63's full-sized avatar

Jun Kurihara kuju63

  • IBM Japan Digital Services Company
  • Kawasaki, Japan
  • X @kuju3
View GitHub Profile
@kuju63
kuju63 / unattend.xml
Created June 7, 2015 08:13
WIndowsの応答ファイル
<?xml version='1.0' encoding='utf-8'?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<settings pass="offlineServicing">
<component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<ComputerName>nano-sv</ComputerName>
</component>
</settings>
<settings pass="oobeSystem">
@kuju63
kuju63 / Dockerfile
Created November 21, 2019 15:30
Running redmine under the NGINX reverse proxy on Docker.
FROM redmine:4.0.5-alpine
COPY --chown=redmine:redmine config.ru config.ru
@kuju63
kuju63 / Jenkinsfile
Created March 17, 2020 15:51
Docker上のJenkinsからcontainer上でのテストを行う
pipeline {
agent { docker 'python:3.6' }
stages {
stage('setup') {
steps {
sh 'pip install mkdocs'
}
}
stage('build') {
steps {
@kuju63
kuju63 / file0.txt
Last active February 2, 2020 11:26
ML.NETのチュートリアルをやってみた ref: https://qiita.com/KuriharaJun/items/62a664d26342eda2c275
using Microsoft.ML;
using Microsoft.ML.Core.Data;
using Microsoft.ML.Runtime.Api;
using Microsoft.ML.Runtime.Data;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
@kuju63
kuju63 / Hello.tsx
Created March 18, 2018 06:06
TypeScriptでReact & Webpackを使う ref: https://qiita.com/KuriharaJun/items/fcd5527df710c77c8b9b
import * as React from "react";
export interface HelloProps { compiler: string; framework: string; }
export const Hello = (props: HelloProps) => <h1>Hello from {props.compiler} and {props.framework}!</h1>;
@kuju63
kuju63 / webpack.config.js
Last active August 6, 2018 15:27
webpack4 + TypeScript + SCSS構成のwebpack設定(CSSはJSに含めない)
const path = require('path');
mode = process.env.NODE_ENV,
devMode = mode !== 'production',
MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
mode: mode,
entry: {
main: path.resolve(__dirname, './ts/login.ts')
},
@kuju63
kuju63 / tsconfig.json
Created August 6, 2018 15:27
webpack4 + TypeScript + SCSS構成のTypeScriptコンパイル設定
{
"compilerOptions": {
"sourceMap": true,
"target": "es5",
"removeComments": true,
"module": "es2015"
}
}
@kuju63
kuju63 / package.json
Created August 6, 2018 15:24
webpack4 + TypeScript + SCSS構成
{
"name": "shoppingapp",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"webpack:dev": "webpack --mode development",
"webpack:prod": "webpack --mode production"
},
"keywords": [],
@kuju63
kuju63 / DelegateSample.swift
Created January 16, 2018 04:33
Delegateのサンプル
protocol FooDelegate {
func Foo()
}
class FooApi {
var delegate: FooDelegate
func Someone() {
if delegate != nil {
// delegateのFooメソッドが呼ばれる