Skip to content

Instantly share code, notes, and snippets.

View thomasdegry's full-sized avatar
🍾
Popping off

Thomas Degry thomasdegry

🍾
Popping off
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swipe</title>
<style>
html, body {
width: 100%;
height: 100%;
<?php
if(!empty($_POST) || !empty($_FILES)) {
# toegestane extensies voor foto
$allowed_extensions = array('jpeg', 'jpg', 'png');
# name converten naar array adhv explode functie, hier op een punt
$temp_name = explode(".", $_FILES['file']['name']);
$extension = end($temp_name);
# eerst checken op mime type, dan op file size en ten slotte op extension als alles passed in de if
<?php
if(!empty($_SESSION["isAdmin"])):
?>
<a href="addProduct.php">Add Product</a>
<?
endif;
?>
----
$this->autoRender = false;
$content = $this->request->data['editor'];
$title = 'Newsletter R.T.S';
$name = 'R.T.S. Ieper';
$from_address = 'noreply@rts.be';
// $to = '';
// $subscribers = $this->Newsletter->find('all');
// foreach ($subscribers as $key => $subscriber) {
var CollisionDetection = (function() {
function CollisionDetection() {
}
CollisionDetection.checkCollision = function(shapeA, shapeB) {
var vX = (shapeA.x + (shapeA.width/2)) - (shapeB.x + (shapeB.width / 2));
var vY = (shapeA.y + (shapeA.height/2)) - (shapeB.y + (shapeB.height / 2));
<script>
//<![CDATA[
$(document).ready(function() {
var timer;
var timeOut = 300; // delay after last keypress to execute filter
var testing = true;
var catalogue = null;
var previousValue = '';
/* line 1, ../sass/modules/_console.scss */
#graphic-output {
-webkit-transition-property: all;
-moz-transition-property: all;
-o-transition-property: all;
transition-property: all;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
transition-duration: 0.3s;
/* line 1, ../sass/modules/_console.scss */
#graphic-output {
-webkit-transition-property: all;
-moz-transition-property: all;
-o-transition-property: all;
transition-property: all;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
-o-transition-duration: 0.3s;
/* globals Rating */
/* globals Settings */
var Gallery = (function () {
var Gallery = function (options) {
_.bindAll(this);
this.options = {
gallery: '.gallery',
item: '.gallery-item',
- (void)setPaidOnServer
{
[KGStatusBar showWithStatus: @"Validating your order"];
AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:@"http://student.howest.be"]];
NSMutableURLRequest *request = [httpClient requestWithMethod:@"GET"
path:[NSString stringWithFormat:@"thomas.degry/20122013/MAIV/FOOD/api/creations/pay/%@/%@", self.userID, self.burgerID]
parameters:nil];
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
[httpClient registerHTTPOperationClass:[AFHTTPRequestOperation class]];
[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {