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 "CCSprite.h" | |
@interface SoftBubble : CCSprite | |
@end |
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
--- CCDevice.mm (revision 6) | |
+++ CCDevice.mm (working copy) | |
@@ -102,11 +102,12 @@ | |
- (void)accelerometer:(CMAccelerometerData *)accelerometerData | |
{ | |
- _acceleration->x = accelerometerData.acceleration.x; | |
- _acceleration->y = accelerometerData.acceleration.y; | |
- _acceleration->z = accelerometerData.acceleration.z; | |
- _acceleration->timestamp = accelerometerData.timestamp; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define MAX_FILENAME 256 | |
typedef struct { | |
char magic[4]; // CLU | |
int version; // 2 | |
int header_size; | |
int count; |
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
/** | |
* WiFi handshake sniffer v 0.5b | |
* | |
* Author: Dimitar T. Dimitrov | |
* Sofia, Bulgaria 2016 | |
* Under MIT License | |
* | |
* gcc sniff.c -lpcap -o sniff | |
* | |
*/ |
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
// | |
// unet_udp.c | |
// Unity Transport UDP Layer basic echo server | |
// | |
// Created by Dimitar Dimitrov on 12/27/15. | |
// Copyright © 2015 Dimitar Dimitrov. All rights reserved. | |
// | |
#include <stdlib.h> | |
#include <stdio.h> |
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
/* | |
* bash_fun.c | |
* | |
* Dimitar T. Dimitrov | |
* 15.06.2016 | |
* | |
*/ | |
#include <sys/ioctl.h> | |
#include <unistd.h> | |
#include <stdio.h> |
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
#ifndef TOTO_EDITIONS_DIMITAR_TDIMITROV | |
#define TOTO_EDITIONS_DIMITAR_TDIMITROV 1 | |
#include <vector> | |
struct Edition { | |
float year; | |
float index; | |
int numbers[6]; |
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
// Dimitar T. Dimitrov 2017 | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <math.h> | |
const int width = 64; | |
const int height = 64; | |
char screen[width * height]; |
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
#include <stdio.h> | |
#include <string.h> | |
const int publicKey = 42; | |
const int privateKey = 256 - publicKey; | |
const int m = publicKey + privateKey; | |
void scramble(char* s, int key) { | |
for (size_t i = 0; i < strlen(s);i++) | |
s[i] = (s[i] + key) % m; |
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
#include <stdio.h> | |
#include <math.h> | |
float kyp(float t, float kypLength) { | |
return fabs( sin(t * 9.45) * ((t > 0.33 && t < 0.66)? kypLength : 1) ); | |
} | |
float easeIn(float t, float strength) { | |
return pow(t, strength); | |
} |
OlderNewer