Skip to content

Instantly share code, notes, and snippets.

View muryoimpl's full-sized avatar
🏠
Working from home

Ken Muryoi muryoimpl

🏠
Working from home
View GitHub Profile
@muryoimpl
muryoimpl / daily-memo.sh
Created August 27, 2020 02:17
Mega 管理下のディレクトリに yyyymmdd.md を作成するスクリプト。既にあればそれを vim で開く
#!/bin/bash
today=$(date "+%Y%m%d")
year=$(date "+%Y")
basedir=~/local/MEGAsync/memo
mkdir -p $basedir/$year
if [[ ! -e $basedir/$year/$today.md ]]; then
cat - << EOS > "$basedir/$year/$today.md"
@muryoimpl
muryoimpl / xunit.rb
Created January 30, 2020 10:36
『テスト駆動開発』の第Ⅱ章の Ruby 版
class TestCase
attr_reader :wasRun, :name, :wasSetUp
def initialize(name)
@wasRun = nil
@name = name
end
def setUp
true
@muryoimpl
muryoimpl / gist:bbffb14632dcf8dad2252ef0cb2fd712
Created January 19, 2020 04:21
Kanazawa.js 自己紹介(仮)
## Personal
- Name :
- むりょうい けん
- HN :
- muryoimpl
- Twitter :
- muryoimpl
## Work
@muryoimpl
muryoimpl / muryoimpl_position_paper.md
Created September 29, 2018 12:01
My position paper for Kanazawa.rb

Personal

  • Name :
    • 無量井 健
  • HN :
    • muryoimpl
  • Twitter :
    • muryoimpl
  • Facebook :
    • muryoimpl
@muryoimpl
muryoimpl / 0_reuse_code.js
Created September 25, 2016 16:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@muryoimpl
muryoimpl / showHome.e2e.js
Created January 6, 2016 16:36
e2e test(using protractor)
/*global element, by*/
const assert = require('power-assert');
describe('show Home', () => {
it('should show "こんにちは"', () => {
element(by.className('title')).getText().then((title) => {
assert.equal(title, 'こんにちは');
});
});
});
@muryoimpl
muryoimpl / conf.js
Last active August 5, 2020 04:39
A configuration file of protractor for my Electron App
/*global browser*/
require('babel-register')({
presets: ['es2015', 'stage-0', 'stage-1', 'react'],
plugins: ['babel-plugin-espower'],
only: /e2e/,
extensions: ['.js']
});
exports.config = {
chromeDriver: './node_modules/protractor/selenium/chromedriver',
var webpack = require('webpack');
var path = require('path');
var assetsPath = path.join(__dirname, 'app', 'assets', 'client');
module.exports = {
// the base path which will be used to resolve entry points
context: __dirname,
// the main entry point for our application's frontend js
entry: {
[2013/02/21 22:45]% brew install https://raw.github.com/mroonga/homebrew/master/mroonga.rb --use-homebrew-mysql
######################################################################## 100.0%
==> Installing mroonga dependency: mysql
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.6.10.mountain_lion.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/mysql-5.6.10.mountain_lion.bottle.tar.gz
==> Pouring mysql-5.6.10.mountain_lion.bottle.tar.gz
==> Caveats
Set up databases to run AS YOUR USER ACCOUNT with:
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
@muryoimpl
muryoimpl / config.log
Created February 21, 2013 13:36
mroonga を homebrew で install. % brew install https://raw.github.com/mroonga/homebrew/master/mroonga.rb --use-homebrew-mysql
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by mroonga configure 3.00, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/mroonga/3.00 --with-mysql-source=/private/tmp/mysql-xRjd/mysql-5.6.10 --with-mysql-config=/usr/local/Cellar/mysql/5.6.10/bin/mysql_config
## --------- ##
## Platform. ##