This file contains 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
#!/usr/bin/env python | |
import socket | |
import binascii | |
import threading | |
import time | |
import json | |
reconnect_flag = 0 |
This file contains 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
######################################################################################## | |
## ezTD_mobuSetup.py | |
## version: 2.0 | |
## Author: Jason Barnidge | |
## jbarnidge [at] OmniZed.com | |
## www.OmniZed.com | |
## Description: | |
## Easily setup & maintain a standardized pipeline for Animators in MotionBuilder | |
## Also helpful when/if a MotionBuilder bug resets the config files | |
######################################################################################## |
This file contains 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> | |
#include <stdlib.h> | |
#include <conio.h> | |
using namespace std; | |
enum eDirection { STOP, UP, LEFT, RIGHT, DOWN }; | |
eDirection dir; | |
bool gameOver; | |
const int width = 20; | |
const int height = 20; | |
int x, y, fruitX, fruitY, score; |
This file contains 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> | |
#include <string> | |
using namespace std; | |
/* * | |
* <program> ::= <program-header> <block> '.' | |
* <program-header> ::= PROGRAM <ident> | |
* <block> ::= <declarations> <statements> | |
* */ |
This file contains 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> | |
#include <vector> | |
#include <iostream> | |
using namespace std; | |
char Look; | |
typedef string Symbol; | |
typedef vector<Symbol> SymTab; | |
typedef SymTab* TabPtr; |
This file contains 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> | |
using namespace std; | |
class Car { | |
public: | |
Car(int num, const string& engineer) : m_nWheel(num), m_strEngineer(engineer) {} | |
void display(Car& car); | |
private: | |
void joke(){} |
This file contains 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> | |
// 从左到右计算简单四则表达式,除数为0的话返回false | |
bool calc_exp(const char* exp, float& result); | |
int main() { | |
float result; | |
char exp[]="4-3+2*5+7/3"; | |
std::cout << "表达式: " << exp << std::endl; |