A package manager for Xcode that you can use to manage installation of all subsequent packages.
Create stubs for Javadoc method documentation automatically. Just type "///"!
import "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" | |
import "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/filters" | |
// ... | |
grpc.UnaryInterceptor( | |
otelgrpc.UnaryServerInterceptor( | |
otelgrpc.WithInterceptorFilter( | |
filters.Not( | |
filters.HealthCheck(), |
name: 'Scheduled' | |
on: | |
schedule: | |
- cron: '*/5 * * * *' | |
jobs: | |
scheduled: | |
name: Scheduled Job | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' |
#!/bin/sh | |
# Source and Destination as parameters | |
SRC=$1 | |
DST=$2 | |
# Clone source repo into a working directory | |
git clone $SRC working | |
cd working |
package main | |
import ( | |
"fmt" | |
"github.com/shirou/gopsutil/net" | |
"github.com/shirou/gopsutil/process" | |
) | |
func main() { |
A package manager for Xcode that you can use to manage installation of all subsequent packages.
Create stubs for Javadoc method documentation automatically. Just type "///"!
#import <XCTest/XCTest.h> | |
@interface AsyncTestingPrimer : XCTestCase | |
@end | |
@implementation AsyncTestingPrimer | |
/* | |
* This is how not to test async calls |
// Objective-C | |
view.layer.borderColor = [UIColor redColor].CGColor; | |
view.layer.borderWidth = 3.0f; | |
// Swift | |
view.layer.borderColor = UIColor.redColor().CGColor; | |
view.layer.borderWidth = 3.0f; |
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
// Get your cell here | |
cell.backgroundColor = [UIColor colorWithHue:(float)indexPath.row/[collectionView numberOfItemsInSection:indexPath.section] saturation:0.8 brightness:1 alpha:1]; | |
// Do more stuff here | |
} |