Skip to content

Instantly share code, notes, and snippets.

View Piggyback13's full-sized avatar
🛠️
Cooking

Egor Piggyback13

🛠️
Cooking
View GitHub Profile
*Swift*
// Старая документация от Apple — это золото. Но и актуальной не брезгуй.
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/MemoryMgmt.html#//apple_ref/doc/uid/10000011i
https://developer.apple.com/library/archive/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226
// Это вообще Threading Programming Guide, но тут есть о Runloop :)
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/Introduction/Introduction.html#//apple_ref/doc/uid/10000057i-CH1-SW1
// Блог Mike Ash-a набирает в полезности со временем
https://www.mikeash.com/pyblog/friday-qa-2017-09-22-swift-4-weak-references.html
@kentbrew
kentbrew / favicon-interceptor.js
Created January 3, 2011 19:32
How to short-circuit those annoying favicon requests in node.js
// early experiments with node had mysterious double requests
// turned out these were for the stoopid favicon
// here's how to short-circuit those requests
// and stop seeing 404 errors in your client console
var http = require('http');
http.createServer(function (q, r) {
// control for favicon