книга Джулия Дональдсон «ЗОГ 2 часть»- «Сказки дядюшки Римуса»
- «Кошкин дом» с иллюстрациями Васнецова
«Красная Шапочка»- «Сказки для самых маленьких»
- Мальчики в костюмах магнитная игра Janod
Трактор Брудер- Сандалии Zara Home: вариант 1, вариант 2
- [Банный халат Zara Home](https://www.zarahome.com/ru/для-детей/ванная-комната/банные-халаты/халат-для-младенца,-из-хлопка-с-рисунком-«звездочки»-c1020116709p300479957.html?colorId=406&par
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Assuming the route handler is attached to `http://localhost:8080/import-data` you can test the implementation with this request (cURL): | |
``` | |
curl -X "POST" "http://localhost:8080/import-data" \ | |
-H 'Content-Type: application/json; charset=utf-8' \ | |
-d $'{ "values": ["first", "foo", "bar", "last"] }' | |
``` | |
Prints: | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
let data = Data([0, 0, 0, 0, 0, 0x11, 0x22, 0x33, 0x44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) | |
data.count | |
extension UnsafeRawBufferPointer { | |
func loadUnaligned<T>(fromByteOffset offset: Int, as: T.Type) -> T { | |
// Allocate correctly aligned memory and copy bytes there | |
let alignedPointer = UnsafeMutableRawPointer.allocate(byteCount: MemoryLayout<T>.stride, alignment: MemoryLayout<T>.alignment) | |
defer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* filesize.m | |
* Description: Multiple ways to calculate the size of a file's resource fork | |
* Author: Chad Armstrong | |
* Date: 14 April 2018 (Updated 28 October 2022) | |
* To compile: gcc -w -framework Cocoa filesize.m -o filesize | |
* To run: ./filesize path/to/file | |
*/ | |
/* References: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/swift | |
import Foundation | |
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath) | |
let data = try! NSData(contentsOf: path) as Data | |
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary | |
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary | |
for (key, value) in mutableDictionary { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As of iOS 11/macOS High Sierra, and only including ones in Foundation and CoreFoundation | |
Strings: | |
_NSCFString - a CFStringRef or CFMutableStringRef. This is the most common type of string object currently. | |
- May have 8 bit (ASCII) or 16 bit (UTF-16) backing store | |
_NSCFConstantString - a compile time constant CFStringRef, like you'd get with @"foo" | |
- May also be generated by dynamic string creation if matches a string in a pre-baked table of common strings called the StringROM | |
NSBigMutableString - an NSString backed by a CFStorage (https://github.com/opensource-apple/CF/blob/master/CFStorage.h) for faster handling of very large strings | |
NSCheapMutableString - a very limited NSMutableString that allows for zero-copy initialization. Used in NSFileManager for temporarily wrapping stack buffers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
func disable_gdb() { | |
let PT_DENY_ATTACH: CInt = 31 | |
let handle = dlopen("/usr/lib/libc.dylib", RTLD_NOW) | |
let sym = dlsym(handle, "ptrace") | |
typealias PtraceAlias = @convention(c) (CInt, pid_t, CInt, CInt) -> CInt | |
let ptrace = unsafeBitCast(sym, to: PtraceAlias.self) | |
_ = ptrace(PT_DENY_ATTACH, 0, 0, 0) | |
dlclose(handle) |
- с утра посвизлил - весь день свободен
- украл, посвиззлил - в тюрьму
- волков бояться - в лесу не свиззлить
- не все золото что свиззлит
- свиззлинг - всему голова
- и рыбку съесть, и посвиззлить
- в большой семье свиззлом не щелкают
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgres: | |
image: postgres:9.4 | |
volumes: | |
- ./init.sql:/docker-entrypoint-initdb.d/init.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
/// Fast, concrete text storage intended to be subclassed. | |
class BaseTextStorage: NSTextStorage { | |
// MARK: - Properties | |
private let storage = NSMutableAttributedString() | |
// MARK: - NSTextStorage |
NewerOlder