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
// Space Invaders Project.cpp : Defines the entry point for the application. | |
// Author: | |
// ID: | |
// Version: | |
// Date: 17 Feb 2012 | |
// Description: | |
#include "stdafx.h" | |
#include "gwin.h" |
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 "stdafx.h" | |
#include "gwin.h" | |
class Pacman { | |
public: | |
int x; | |
int y; | |
int Scale; | |
// direction |
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
struct Track { | |
char TrackName[MAXCHARS]; | |
int Genre; | |
int PlayMin; | |
int PlaySec; | |
}; | |
Track MusicTrack[MAXTRACKS] = { //opening the array | |
{"Holst_Mars", 1, 15, 10}, //first struct in the array with each item in the struct | |
{"New_York", 2, 3, 50}, //second |
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
//map global variables with front end class names | |
$globals: ( | |
"text" : $text-color, | |
"bg" : $bg-color, | |
"pg" : $pg-color, | |
"primary" : $primary-color, | |
"secondary" : $secondary-color, | |
"tertiary" : $tertiary-color); | |
// for each vairable |
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 | |
$folder = '/path/to/folder/'; | |
$watermark = '/path/to/Logo.jpg'; | |
$files = scandir($folder); | |
foreach($files as $file) { | |
//do your work here | |
var_dump($folder.$file); | |
// Load the stamp and the photo to apply the watermark to |
NewerOlder