Skip to content

Instantly share code, notes, and snippets.

View devlights's full-sized avatar
🤧
hay fever....

devlights devlights

🤧
hay fever....
View GitHub Profile
@devlights
devlights / hello-apple.md
Created July 1, 2022 10:03 — forked from Linrstudio/hello-apple.md
solutions for window.innerWidth / innerHeight issue in iOS9

iOS9 returns double the value for window.innerWidth & window.innerHeight
The versions that are concerned are: 9.0.0, 9.0.1, 9.0.2

A few people got mad on twitter:

window.innerWidth in iOS 9 Safari returns double the number it did in iOS 8? Is this real life? tell me no — @rachsmithtweets
iOS9 Safari has the most insane bug where window.innerWidth / innerHeight is *sometimes* twice as large as it should be. ughhhh. !? — @mattdesl

iOS9 innerWidth/innerHeight is having a lot of fun these days — @ayamflow

@devlights
devlights / .vimrc
Last active November 26, 2022 04:54 — forked from kazmura11/.vimrc
"---------------------------------------------------------------------------
" 検索の挙動に関する設定:
"
" 検索時に大文字小文字を無視 (noignorecase:無視しない)
set ignorecase
" 大文字小文字の両方が含まれている場合は大文字小文字を区別
set smartcase
" インクリメンタルサーチ
set incsearch
" 検索ハイライト
@devlights
devlights / MainWindow.xaml
Last active August 29, 2015 14:22 — forked from flq/NonTopmostPopup.cs
Draggable, Non Topmost, Click to BringToFront Popup Sample. (ドラッグ可能で状態に応じてTopMostを切り替えるPopup(クリックすると前面に来るよう調整済み))
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:exControls="clr-namespace:NonTopmostPopupSample.ExControls"
xmlns:behaviors="clr-namespace:NonTopmostPopupSample.Behaviors"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
x:Class="NonTopmostPopupSample.MainWindow"
Title="Non Topmost Popup Sample"
Height="426"