Skip to content

Instantly share code, notes, and snippets.

View kazumalab's full-sized avatar
🦁
I may be slow to respond.

Kazuma kazumalab

🦁
I may be slow to respond.
View GitHub Profile
@mao-test-h
mao-test-h / UITraitCollectionBridge.cs
Last active May 7, 2021 20:16
Unity上からiOS端末のダークモード判定を行う
using System.Runtime.InteropServices;
namespace iOSNative
{
/// <summary>
/// `UITraitCollection`のBridge
/// </summary>
/// <remarks>
/// - https://developer.apple.com/documentation/uikit/uitraitcollection
/// </remarks>
@voluntas
voluntas / loadtest.rst
Last active April 3, 2024 03:25
負荷試験コトハジメ
@Code-Hex
Code-Hex / knapsack.cpp
Last active July 23, 2019 18:03
Knapsack problem with cpp
#include <iostream>
#include <bitset>
#include <algorithm>
#include <string>
#include <math.h>
#include <string.h>
#include <pthread.h>
#define N 8
@Lax
Lax / ipaddr_demo.rb
Created January 13, 2014 08:25
Ruby IPAddr class, inet_aton and inet_ntoa equivalence.
require 'ipaddr'
IPAddr.new("192.168.0.1").to_i
=> 3232235521
IPAddr.new(3232235521, Socket::AF_INET).to_s
=> "192.168.0.1"
@tomas-stefano
tomas-stefano / Capybara.md
Last active May 2, 2024 05:16
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above