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
/* | |
3 ------------------ 4 | |
/ \ | |
/ \ | |
/ \ | |
1 --------------- 2 5 ------------------ 6 | |
| | | |
| Car Demo | | |
| | | |
8 ----------------------------------------------------------------- 7 |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <string.h> | |
#include <GL/glut.h> | |
#define PI 3.14159 | |
#define ESCAPE 27 | |
#define PAUSE 112 | |
#define MANUAL 109 |
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<stdio.h> | |
#include<graphics.h> | |
int driver = DETECT, mode, width, height; | |
void rotateObject(int inAngle); | |
int main(void){ | |
width = getmaxwidth() - 100; | |
height = getmaxheight() - 50; | |
int inAngle; |
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<stdio.h> | |
#include<graphics.h> | |
#include<math.h> | |
int driver = DETECT, mode, width, height; | |
void drawCircle(int scaling_factor); | |
int main() { | |
width = getmaxwidth() - 100; | |
height = getmaxheight() - 50; | |
int scaling_factor; | |
printf("what is your scaling factory (1-9): "); |
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<stdio.h> | |
#include<graphics.h> | |
int driver = DETECT, mode, width, height; | |
void translation(int x, int y); | |
int main(void){ | |
width = getmaxwidth() - 100; | |
height = getmaxheight() - 50; | |
int scaling_factor; |
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
-> Copy graphics.h and winbgim.h files in include folder of your compiler directory | |
-> Copy libbgi.a to lib folder of your compiler directory | |
-> In code::blocks open Settings >> Compiler and debugger >>linker settings ( or, Compiler > General > Linker ( or right side) ) | |
-> Click Add button in link libraries part and browse and select libbgi.a file | |
-> In right part (ie. other linker options) paste commands "-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32" |
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
interface IHttpResponseListener { | |
public void onRemoteCallComplete(int statusCode, String json); | |
} | |
class RequestGet extends AsyncTask<Void, Void, Boolean> { | |
private IHttpResponseListener listener = null; | |
private Context context; | |
private int statusCode = 0; | |
private String json = ""; | |
public RequestGet(Context context, IHttpResponseListener listener){ |
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
package put.your.packageName.here; | |
import android.app.NotificationManager; | |
import android.app.PendingIntent; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.provider.Settings; | |
import android.support.v4.app.NotificationCompat; | |
import com.example.anik.agent.AllComplaintActivity; |
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
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Auth\Guard; | |
use Illuminate\Support\Facades\Auth; | |
class ActivatedUserMiddleware | |
{ |
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
<?php namespace App; | |
# PLACE IN: | |
# PROJECT/app/Application.php - CREATE NEW FILE | |
class Application extends \Illuminate\Foundation\Application { | |
public function publicPath() { | |
return $this->basePath; | |
} | |
} |
OlderNewer