Skip to content

Instantly share code, notes, and snippets.

@rkrishnasanka
rkrishnasanka / new_gist_file.m
Last active December 21, 2015 22:39 — forked from AhmedKammorah/new_gist_file
Async operations iOS
dispatch_queue_t queue = dispatch_get_global_queue(
DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_async(queue, ^{
//any thing
});
//ref
#include <Servo.h>
Servo servo1;
Servo servo2;
float theta1;
float theta2;
int pot1 = 0;
int pot2 = 1;
void setup() {
int buf = 0;
int xcoordinate = 0;
int ycoordinate = 0;
void setup()
{
// start serial port at 9600 bps and wait for port to open:
Serial.begin(115200);
}
@rkrishnasanka
rkrishnasanka / index.ts
Created April 15, 2023 23:15 — forked from d-nishi/index.ts
EKS RBAC - verbose index.ts
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";
import * as eks from "@pulumi/eks";
import * as k8s from "@pulumi/kubernetes";
/*
* 1) Single step deployment three IAM Roles
*/
// Administrator AWS IAM clusterAdminRole with full access to all AWS resources