Skip to content

Instantly share code, notes, and snippets.

javascript: ( function () { var BASE_URL = AJS.params.baseURL; function getUrlPath(username, password) { return BASE_URL + "/login.jsp?os_username=" + username + "&os_password=" + password + "&os_destination=" + encodeURIComponent(location.href); } var username = 'admin'; var password = 'admin'; location.href = getUrlPath(username, password); } )();
@koara-local
koara-local / excel-clear-junk-style.vbs
Created April 28, 2017 02:18 — forked from hkuno9000/excel-clear-junk-style.vbs
[Excel]excelシートの書式をすべて削除するマクロ
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
For Each strFname In WScript.Arguments
Set objDoc = objExcel.Workbooks.Open(strFname)
' clear all names (comment out)
For Each N In objDoc.Names
'' N.Delete
Next
' clear all user style
@koara-local
koara-local / egl_usage.wsd
Last active March 7, 2017 10:02
EGLの使い方(PlantUML)
// Copyright 2017 Kohei Arao
// https://opensource.org/licenses/MIT
@startuml
title EGLの使い方
| バックエンド |
start
:初期化処理;
note right
@koara-local
koara-local / keras_nn.ipynb
Last active March 6, 2017 05:05
Kerasでニューラルネットワーク構築
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koara-local
koara-local / wayland-scanner-output.sh
Last active October 17, 2016 09:42
wayland-scanner genarate script
#!/bin/bash -eu
# The MIT License (MIT)
# Copyright (c) 2016 Kohei Arao
# https://opensource.org/licenses/MIT
FILEPATH=$1
# validate
FILENAME=$(basename ${FILEPATH})
#!/bin/bash -eu
if [ ! -e ~/.ssh/id_rsa_gitlab ]; then
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa_gitlab
fi
if [ ! -e ~/.ssh/config ] || [ $(cat ~/.ssh/config | grep github | wc -l) == 0 ]; then
cat << EOS >> ~/.ssh/config
Host github github.com
User git
@koara-local
koara-local / file0.c
Created March 5, 2016 03:59
コンパイルオプションの条件次第でエラーもしくは警告を出力する ref: http://qiita.com/koara-local/items/948f9371b04b092785d1
#ifdef ERROR_DEFINED
#error "error macro defined"
#endif
#ifdef WARNING_DEFINED
#warning "warning macro defined"
#endif
int main(int argc, char const* argv[])
{
@koara-local
koara-local / file0.html
Last active April 3, 2017 03:48
[Vue.js 1.x] 最低限のMarkdown Editor作成 ( Vue.js + Marked.js + Highlight.js ) ref: http://qiita.com/koara-local/items/ee65916c46a89b055948
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/0.12.5/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.2/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/solarized_light.min.css">
<style type="text/css">
html, body, #editor {
margin: 0;
height: 100%;
font-family: 'Helvetica Neue', Arial, sans-serif;