Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
import argparse | |
import json | |
import logging | |
import os | |
import re | |
import shutil | |
from concurrent.futures import ProcessPoolExecutor, as_completed | |
from dataclasses import dataclass | |
from datetime import datetime | |
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple |
# Script to easily set resource allocation for GPUs to be passed through into a Hyper-V VM | |
# | |
# Author: ThioJoe / https://github.com/thiojoe | |
# | |
### Instructions for copying drivers to VM - Will likely need to do this before running this script | |
# NOTE: Instead of manually copying the files, if you have an Nvidia GPU you can use my other script called "Copy-GPU-Drivers-VM.ps1" to do it automatically | |
# 1. Open C:\Windows\System32 on host machine and copy any files beginning with "nv" (Except nvspinfo.exe and NvAgent.dll , which are unrelated) | |
# 2. Place those files into the System32 folder on the VM | |
# 3. On the VM, create the following directory: C:\Windows\System32\HostDriverStore\FileRepository | |
# 4. For Nvidia GPUs, open C:\Windows\System32\DriverStore\FileRepository, copy any folders beginning with "nv_" (The number of folders should match the number of GPUs, or at least number of different models of GPU) |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
Plugboard = Hash[*('A'..'Z').to_a.sample(20)] | |
Plugboard.merge!(Plugboard.invert) | |
Plugboard.default_proc = proc { |_, key| key } | |
def build_a_rotor | |
Hash[('A'..'Z').zip(('A'..'Z').to_a.shuffle)] | |
end | |
ROTOR_1, ROTOR_2, ROTOR_3 = build_a_rotor, build_a_rotor, build_a_rotor |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
// put this in your AppDelegate | |
- (void)changeRootViewController:(UIViewController*)viewController { | |
if (!self.window.rootViewController) { | |
self.window.rootViewController = viewController; | |
return; | |
} | |
UIView *snapShot = [self.window snapshotViewAfterScreenUpdates:YES]; | |
[viewController.view addSubview:snapShot]; | |
self.window.rootViewController = viewController; |
#import "AFHTTPRequestOperationManager+Timeout.h" | |
@implementation AFHTTPRequestOperationManager (TimeoutCategory) | |
- (AFHTTPRequestOperation *)GET:(NSString *)URLString | |
parameters:(NSDictionary *)parameters | |
timeoutInterval:(NSTimeInterval)timeoutInterval | |
success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))success | |
failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))failure | |
{ |
ru: | |
date: | |
abbr_day_names: | |
- Вс | |
- Пн | |
- Вт | |
- Ср | |
- Чт | |
- Пт | |
- Сб |