Skip to content

Instantly share code, notes, and snippets.

View tex2e's full-sized avatar
🕶️
Ready to engage

Mako tex2e

🕶️
Ready to engage
View GitHub Profile
@asufana
asufana / Java8 StreamAPI入門.markdown
Last active December 14, 2015 02:59
Java8 StreamAPI入門
@mattwilliamson
mattwilliamson / smtplib_custom.py
Created May 8, 2013 21:18
Customized smtplib standard library that allows you to set source host and port on the socket.
#! /usr/bin/env python
'''SMTP/ESMTP client class.
This should follow RFC 821 (SMTP), RFC 1869 (ESMTP), RFC 2554 (SMTP
Authentication) and RFC 2487 (Secure SMTP over TLS).
Notes:
@asufana
asufana / Java8 StreamAPIその2.md
Last active April 10, 2020 05:44
Java8 StreamAPI

Java8 StreamAPI

filter:抽出する

引数:Predicate(引数を1つ取り、戻り値がboolean)

//DX04で文字列が終わる値を抽出する
Arrays.asList("EPS-DX04", "EPS-SX04", "EPS-AP-DX04", "D3-M-DX04-C")
@wakamsha
wakamsha / memo.md
Last active October 11, 2021 01:40
VirtualBox 内のゲスト OS からホスト OS にアクセスしたい

VirtualBox仮想マシンのネットワークはデフォルトでNATとなっている。 VirtualBox の場合、NAT ネットワークアダプタには 10.0.2.0/24 の IP アドレスが割り当てられ、ゲスト OS から見える ホスト OS の IP アドレスには 10.0.2.2 が設定される仕様。

したがってホストOS上に建てたサーバーにゲストOSからアクセスしたい場合は、http://10.0.2.2とアクセスすれば普通に見ることができる。

参考

@joakimk
joakimk / README.md
Last active January 1, 2022 23:21
CircleCI elixir build example

This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.

We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.

It should be generic enough to work on any elixir app using mix.

If you have a elixir_buildpack.config, then enable that section in the build script to keep versions in sync!

2016-08-09: Updated to newer Erlang and Elixir and fixed curl command.

@zkxs
zkxs / map_capslock_to_f13.reg
Created December 22, 2016 18:28
Windows registry patch to use CAPSLOCK as F13
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,64,00,3a,00,00,00,00,00
@asufana
asufana / Java8 ラムダ式入門2.md
Last active February 7, 2023 04:30
Java8 ラムダ式入門2

Java8 ラムダ式入門2

Javaのファーストクラスオブジェクト

Javaのファーストクラスオブジェクトはクラスである。なので引数はクラスかインスタンス(クラスのオブジェクト)で渡す必要がある。

例えばリストの中身を1つずつ取り出して処理するために forEach というメソッドがある。

@japboy
japboy / jade-ftw.md
Last active October 23, 2023 11:18
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

@voluntas
voluntas / naze_erlang.rst
Last active October 31, 2023 03:33
なぜ Erlang/OTP を使い続けるのか
@voluntas
voluntas / loadtest.rst
Last active April 3, 2024 03:25
負荷試験コトハジメ