Skip to content

Instantly share code, notes, and snippets.

View roana0229's full-sized avatar

Tsutsumin / Kaoru Tsutsumishita roana0229

  • Japan
View GitHub Profile
@gfx
gfx / 001-wifi-routers-v2.md
Last active September 27, 2024 16:23
Wi-Fiルーターおすすめ by 妻

概要

  • ネットーワーク機器のマーケ担当をしてる妻から聞いた、Wi-Fiルータのオススメ(「同僚のメーカー担当ごとに己の”最強”を選んでもらった」とのこと)です
  • 「ルーターにはWi-Fiルータだけじゃなく他にもいろいろあるんだよ!これはWi-Fiルータのことね」と言われたのでタイトルを変えました
  • 「AXほにゃらら」は規格(AX = Wi-Fi 6)+速度の参考値とのことです
  • もともとの文脈: 家庭内の雑談をツイートしたところ( https://twitter.com/__gfx__/status/1464084908091920387 )知人が反応したので妻に「ルータのおすすめ教えてと知人がいってるのでなんか教えて」といって教えてもらったのが元です
  • 下にあるv1.md が最初のやつ(2021/11/26)で、このv2.md がホッテントリ入りしたあとの改訂版(2021/11/27)です

追記(2022/05/24):

  • TP-Linkはちょいちょいやらかしがあります
@po-miyasaka
po-miyasaka / .lldbinit
Last active September 2, 2018 06:26
please put into HOME Directory 
command regex pc 's/(.*)?-op(.*)/ exp -l objc %2 -- %1/' 's/(.*)/ exp -l objc -- %1/'
command regex poc 's/(.*)?-op(.*)/ exp -l objc -O %2 -- %1/' 's/(.*)/ exp -l objc -O -- %1/'
command regex ps 's/(.*)?-op(.*)/ exp -l swift %2 -- %1/' 's/(.*)/ exp -l swift -- %1/'
command regex pos 's/(.*)?-op(.*)/ exp -l swift -O %2 -- %1/' 's/(.*)/ exp -l swift -O -- %1/'
command regex vinfo 's/\(\((\w+)\.([a-zA-Z_0-9]+)\s\*\)(\w+?)\)/exp -l swift -- unsafeBitCast(%3,to:%1.%2.self);/' 's/\(\(([a-zA-Z_0-9]+)\s\*\)(\w+?)\)/exp -l objc++ -- *(%1 *)%2/'
import UIKit
final class KeepingContentOffsetCollectionViewLayout : UICollectionViewFlowLayout {
private var oldOffset: CGFloat?
typealias Completion = () -> Void
/// Perform passed closure with keeping current contentOffset.
///
@lattner
lattner / TaskConcurrencyManifesto.md
Last active April 25, 2025 14:54
Swift Concurrency Manifesto
@brennanMKE
brennanMKE / EventEmitter.swift
Last active March 19, 2025 05:42
React Native Event Emitter for RCTEventEmitter in Objective-C and Swift
class EventEmitter
/// Shared Instance.
public static var sharedInstance = EventEmitter()
// ReactNativeEventEmitter is instantiated by React Native with the bridge.
private static var eventEmitter: ReactNativeEventEmitter!
private init() {}
@MightyPork
MightyPork / usb_hid_keys.h
Last active April 24, 2025 23:20
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@cesarferreira
cesarferreira / RxJava.md
Last active March 30, 2025 00:28
Party tricks with RxJava, RxAndroid & Retrolambda

View Click

Instead of the verbose setOnClickListener:

RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));

Filter even numbers

Observable
    .just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
@yonat
yonat / Badge.swift
Last active December 22, 2022 09:40
Rounded UILabel and UIButton, Badged UIBarButtonItem
//
// Badge.swift
// Extensions for Rounded UILabel and UIButton, Badged UIBarButtonItem.
//
// Usage:
// let label = UILabel(badgeText: "Rounded Label");
// let button = UIButton(type: .System); button.rounded = true
// let barButton = UIBarButtonItem(badge: "42", title: "How Many Roads", target: self, action: "answer")
//
// Created by Yonat Sharon on 06.04.2015.
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: