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 "functions.h" | |
FILE * open_input_file (void) | |
{ | |
FILE * input = NULL; | |
input = fopen("input.dat", 'r'); | |
return input; | |
} |
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 <string.h> | |
#include <stdio.h> | |
#define STRING 1 | |
#define DOUBLE 2 | |
typedef struct _my_data | |
{ | |
int myDataType; | |
double myDouble; |
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 <iostream> | |
class Test { | |
public: | |
int a,b,c; | |
Test() { a=b=c=10; } | |
}; | |
int main() { | |
Test *t; |
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
// High Frequency Timer | |
// | |
// This is a simple timer for windows. | |
// | |
// QueryPerformanceCounter | |
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms644904(v=vs.85).aspx | |
// | |
// QueryPerformanceFrequency | |
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms644905(v=vs.85).aspx | |
// |
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> | |
#define to ; i <= | |
#define DO(range) for(int range; i++) | |
int main() | |
{ | |
int arr[10]; | |
DO(i = 0 to 9) |
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
// Requires -std=c99 | |
#include <stdio.h> | |
#define divisible % | |
#define by | |
#define to ; i <= | |
#define when(mod, msg) \ | |
if((i mod) == 0) \ | |
{ \ | |
printf(#msg); \ |
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> | |
#include <time.h> | |
int main () | |
{ | |
int mynums[3]; | |
int i =0; | |
/* | |
mynums[0] = 5; |
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> | |
void roll(int dice[5]) | |
{ | |
int i =0; | |
for ( i = 0; i < 5; i++ ) | |
{ | |
dice[i] = rand() % 6 + 1; | |
} |
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
PubSub = require('../lib/pubsub/pubsub') | |
TwilioClient = require('twilio').Client | |
Twiml = require('twilio').Twiml | |
var creds = { | |
sid: 'xxxxxxxxxxxxxxxxxxxxxxxx', | |
authToken: 'xxxxxxxxxxxxxxxxxxxxxxx', | |
incoming: '+xxxxxxxxxxxx', | |
outgoing: '+xxxxxxxxxxxx', | |
hostname: 'xxxxxxxxxxx' |
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
typedef enum FuckBoolean | |
{ | |
FUCK_NO, FUCK_YEAH | |
} FuckBoolean; |