This file contains hidden or 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/Foundation.h> | |
BOOL shouldKeepRunning = YES; | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com/"]]; | |
NSURLSession *session = [NSURLSession sharedSession]; | |
NSURLSessionDataTask* task = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { |
This file contains hidden or 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 zmq | |
import sys | |
import time | |
cxt = zmq.Context() | |
receiver = cxt.socket(zmq.PULL) | |
receiver.connect("tcp://127.0.0.1:5555") | |
sum = 0 | |
while True: |
This file contains hidden or 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
ifneq ($(KERNELRELEASE),) | |
obj-m := my_vfs.o | |
my_vfs-objs := my_vfs_module.o | |
else | |
KVER = $(shell uname -r) | |
KDIR = /lib/modules/$(KVER)/build | |
modules:: | |
$(MAKE) -C $(KDIR) M=$(shell pwd) modules |