Skip to content

Instantly share code, notes, and snippets.

@mountcedar
mountcedar / file0.txt
Last active October 30, 2018 01:41
MarkdownとPandocを用いた簡易Latex環境の構築 ref: https://qiita.com/mountcedar/items/e7603c2eb65661369c3b
$ pandoc readme.md -o readme.tex
@mountcedar
mountcedar / file2.txt
Last active March 20, 2016 08:31
Googleフォームを使った出欠席確認と自動返信、その後の連絡方法まとめ ref: http://qiita.com/mountcedar/items/3454d7aafcf1fd4541ff
Logger.log('hogehoge');
| Left align | Right align | Center align |
|:-----------|------------:|:------------:|
| This | This | This |
| column | column | column |
| will | will | will |
| be | be | be |
| left | right | center |
| aligned | aligned | aligned |
@mountcedar
mountcedar / INSTALL_RECEIPT.json
Last active February 19, 2016 04:37
Homebrewで自作のプロジェクト(ライブラリ)を公開する ref: http://qiita.com/mountcedar/items/f10161d4e483aa8c1283
"HEAD": "",
"built_as_bottle": true,
"compiler": "gcc",
"poured_from_bottle": true,
"stdlib": null,
"tapped_from": “<tap名>”,
"time": 0,
"unused_options": [],
"used_options": []
@mountcedar
mountcedar / file0.txt
Last active January 27, 2016 22:43
mongodbを用いたPythonクラスインスタンスのdumpとrestoreとquery検索 ref: http://qiita.com/mountcedar/items/f63006a6d5d5e14acc93
import numpy
import logging
from datetime import datetime
from dbarchive import Base
class Sample(Base):
def __init__(self, maxval=10):
self.base = "hoge"
self.bin = numpy.arange(maxval)
self.created = datetime.now()
@mountcedar
mountcedar / file0.java
Created January 22, 2014 06:36
Guavaライブラリのconcurrentパッケージの使い方 ref: http://qiita.com/mountcedar/items/e20251b811b491666d48
URL[] topSites = null;
try {
topSites = new URL[] {new URL("http://www.google.com")};
} catch (MalformedURLException e1) {
e1.printStackTrace();
}
logger.debug("in main");
ListeningExecutorService pool = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(10));
for (final URL siteUrl : topSites) {
@mountcedar
mountcedar / file0.txt
Created January 14, 2014 08:55
Pythonの配列処理をJavaで書く ref: http://qiita.com/mountcedar/items/40d82cc52d0db1c2c49b
a = [1,2,3,4,5]
a[-1]
$ brew install mysql
$ unset TMPDIR
$ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
$ mysql.server start
$ /usr/local/Cellar/mysql/5.5.10/bin/mysql_secure_installation
@mountcedar
mountcedar / file0.txt
Created November 20, 2013 09:32
gitolite: ライトユースなリモートgitリポジトリを作る ref: http://qiita.com/mountcedar/items/9d87d793a493295e08f0
$ ssh-keygen -t rsa -f <keyname>
@mountcedar
mountcedar / file0.txt
Last active December 28, 2015 18:09
いまさら聞けないgitの使い方 ref: http://qiita.com/mountcedar/items/682743c95fd3b8fc274b
$ git clone <uri>