Skip to content

Instantly share code, notes, and snippets.

View MizukiSonoko's full-sized avatar
🍶
sake

MIZUKI Sonoko MizukiSonoko

🍶
sake
View GitHub Profile

Name

Metro

Awaza Ginna
阿波座 銀奈
@yutopp
yutopp / 温泉.md
Last active February 10, 2020 03:28

適当に感想を書くので、ググって行ってどうぞ。 多分全部日帰りで使えるところです。

北海道

名前 感想 行った回数 行った時期 オススメ感
第一滝本館 登別の地獄谷が窓から全部見られる。温泉の種類も多く、露天風呂からは季節によっては紅葉とかも見られそうだった。少し割高なものの、1日中居られそうな気がするくらい充実していると思う。 1 晩夏/昼 95点

会津(若松のほう)

|名前|感想|行った回数|行った時期|オススメ感|

@yociya
yociya / amazon-history.js
Last active June 24, 2023 23:33
Amazonの注文履歴を年毎に集計して出力します 利用額 / 注文件数 / 最高額(1注文での) 使い方はコメントを参照
var historyUrl = 'https://www.amazon.co.jp/gp/css/order-history?orderFilter=year-$year$&startIndex=$index$';
function beforeSendHook(xhr){
xhr.setRequestHeader('X-Requested-With'
, {
toString: function(){
return '';
}
}
);
@bkaradzic
bkaradzic / orthodoxc++.md
Last active April 23, 2024 13:59
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@dant3
dant3 / fun.cpp
Last active March 8, 2024 06:15
Some fun with C++ 11 - fold, map, reduce, mkString for std::vector<T>
#include <iostream>
#include <sstream>
#include <functional>
#include <vector>
template <typename T, typename U>
U foldLeft(const std::vector<T>& data,
const U& initialValue,
const std::function<U(U,T)>& foldFn) {
typedef typename std::vector<T>::const_iterator Iterator;
@ueno-yuhei
ueno-yuhei / tel_mail_webview.java
Created February 1, 2015 06:14
Webview表示中に、mail telリンクを押された時にIntentを投げるようにする
package jp.logiclogic.jikken;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentActivity;
@hidez8891
hidez8891 / tlang.cpp
Created January 31, 2015 15:40
tlang | c like language made from c++ template language
#include <tuple>
namespace tuple
{
// concat
template <typename, typename>
struct concat;
// concat: tuple -> tuple -> tuple
template <typename... Ts1, typename... Ts2>
struct concat<std::tuple<Ts1...>, std::tuple<Ts2...>>
@aphlysia
aphlysia / stfuawsc_itg_advent2014_4_conda.md
Last active June 16, 2023 01:05
conda で python の環境つくり

これは stfuawsc_itg Advent Calendar 2014 4日目の記事です。

プログラミングをしていると、いろいろなバージョンの環境を行ったり来たりしたくなることがあります。たとえば言語処理は python 2 へ nltk を入れてやりたい。シミュレーションは python 3 へ numpy 入れてやりたいとか。
そういうふうに言語やモジュールのバージョンをいろいろ組合せた環境を気軽に切り替えられると便利です。
実際そういうことを可能にするツールはたくさんあります。virtualenv, pyenv など。
ここで紹介する conda というツールもその1つです。
virtualenv などでは、モジュールを入れるときは通常の python の流儀でインストールするのですが、インストールがうまくいかないというのはよくあることです。conda ではあらかじめビルドされたものを入れるので、楽です。もちろん conda に用意されていないモジュールもありますが、そういうのは pip 等通常の方法で入れて共存できます。

ではさっそく conda で python の環境を作る方法です。

@fluffybeing
fluffybeing / subcomands
Created May 13, 2014 10:40
python-cliff subcommands
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Cliff sample app
~~~~~~~~~~~~~~~~
"""
import os
import sys
import logging
@aras-p
aras-p / preprocessor_fun.h
Last active May 8, 2024 06:45
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,