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 / 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 / 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 / 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 / tsconfig.json
Created August 6, 2018 15:27
webpack4 + TypeScript + SCSS構成のTypeScriptコンパイル設定
{
"compilerOptions": {
"sourceMap": true,
"target": "es5",
"removeComments": true,
"module": "es2015"
}
}
@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 / 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 / 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 / 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メソッドが呼ばれる
@kuju63
kuju63 / SampleController.cs
Last active January 12, 2018 11:32
ASP.NET MVCでのセッションへの格納・取得
using System.Web.Mvc;
namespace WebApplication1.Controllers
{
/// <summary>
/// セッションに格納するデータ
/// </summary>
[Serializable]
public class Foo
{