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 input(int *i, int *j); | |
int solveIJ3NPlus1MaxCycleLengthProblem(int i, int j); | |
int solve3NPLus1Problem(int n); | |
int main() | |
{ | |
while(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
#include <stdio.h> | |
int main() | |
{ | |
printf("hello\n"); | |
printf("world\n"); | |
return 0; | |
} |
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
scanf("%d %d", &x_size, &y_size); | |
for(x=0;x<x_size;x++) | |
{ | |
for(y=0;y<y_size;y++) | |
{ | |
int value; | |
scanf("%d", &value); | |
mapArray[y][x] = value; | |
} | |
} |
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
int strcmp(const char* s1, const char* s2) | |
{ | |
while(1) | |
{ | |
if(*s1>*s2) | |
{ | |
return 1; | |
}else if(*s1<*s2) | |
{ | |
return -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
<?xml version="1.0" encoding="utf-8" ?> | |
<androidstation> | |
<phone> | |
<phoneid>1</phoneid> | |
<name>Desire 200 </name> | |
<brand>HTC</brand> | |
<CPU>單核心1.0Ghz</CPU> | |
<RAM>512</RAM> | |
<screenSize>3.5</screenSize> | |
<memory>4</memory> |
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
<!DOCTYPE html> | |
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<script src="scripts/jquery-2.0.2.min.js"></script> | |
<script> | |
var phonesXml = null; | |
var url = "phones.xml"; |
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
@model IEnumerable<MvcApplication1.Models.UnitCounter> | |
@{ | |
ViewBag.Title = "公部門函轉統計資料庫"; | |
} | |
@section Scripts{ | |
@Scripts.Render("~/bundles/jqueryui") | |
@Styles.Render("~/Content/themes/base/css", "~/Content/css") | |
<script type="text/javascript"> |
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
public ActionResult SignUp(string email, string password, string name, string nickname, string description) | |
{ | |
member member = new member(); | |
member.email = email; | |
member.password = password; | |
member.name = name; | |
member.nickname = nickname; | |
member.description = description; | |
UMSModel umsModel = new UMSModel(); |
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
private void sweepDeadBodies() { | |
Array<Body> bodies = new Array<Body>(); | |
world.getBodies(bodies); | |
for (Body body : bodies) { | |
if (body != null) { | |
BodyData bodyData = (BodyData) body.getUserData(); | |
if (bodyData.isDead()) { | |
body.setUserData(null); | |
world.destroyBody(body); | |
body = null; |
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
ShapeRenderer shapeRenderer = new ShapeRenderer(); | |
shapeRenderer.setProjectionMatrix(camera.combined); | |
shapeRenderer.begin(ShapeType.Line); | |
shapeRenderer.setColor(1, 0, 0, 1); | |
shapeRenderer.rect(earthSprite.getX(), earthSprite.getY(), | |
earthSprite.getWidth(), earthSprite.getHeight()); | |
shapeRenderer.circle(0, 0, earthSprite.getWidth()); | |
shapeRenderer.end(); |