Skip to content

Instantly share code, notes, and snippets.

@gdavis
gdavis / xcode-vim.markdown
Last active June 30, 2024 14:18
Notes for working with Xcode VIM mode

Xcode VIM

Learning VIM in Xcode comes with its own set of challenges and limitations, but there is enough there for you to give your mousing hand a break and master the keyboard.

A limited set of commands are available in Xcode, and this document attempts help ease the learning curve of using VIM in Xcode by providing a handy reference as well as what I find works for me in practice.

NOTE: Commands are case-sensitive. A command of N means pressing shift + n on the keyboard.

This document is a work in progress! Leave a comment if you would like to see a change.

@dotproto
dotproto / background.js
Created January 11, 2021 23:37
Basic example of requesting optional broad host permissions
// Copyright 2019 Google LLC.
// SPDX-License-Identifier: Apache-2.0
chrome.runtime.onInstalled.addListener(({reason}) => {
console.log(reason);
console.log(chrome.runtime.OnInstalledReason.UPDATE);
if (reason === chrome.runtime.OnInstalledReason.INSTALL ||
reason === chrome.runtime.OnInstalledReason.UPDATE) {
chrome.tabs.create({url: 'popup.html'});
@abeyuya
abeyuya / scraping_client.rb
Created May 23, 2015 09:58
nokogiriでプロキシ経由でスクレイピングしたメモ
class ScrapingClient
require 'open-uri'
def get_proxy_host_list
doc = self.get_nokogiri_obj("http://lab.magicvox.net/proxy/")
host_port_list = []
doc_list = doc.css("tr")
@hashrock
hashrock / vuejs.md
Last active October 5, 2023 23:42
Vue.js資料まとめ(古いので注意)

#まず見るべき

以下のURLは、常に更新されているコンテンツです。

@shinyaohira
shinyaohira / App States and Multitasking.md
Last active October 5, 2023 07:57
アプリケーションの状態とマルチタスキング

全体的に簡略化し、必要と思われる部分を抜粋しました。

  • Not running

    アプリは起動されていないか、実行されていたけれどもシステムによって終了されています。

  • Inactive