Skip to content

Instantly share code, notes, and snippets.

View Matts's full-sized avatar
✔️
Working

Mata Matts

✔️
Working
View GitHub Profile
@Matts
Matts / Very fancy algorythm
Created September 29, 2016 11:14
Sometimes when you think you are making something easy...
$em = $this->getDoctrine()->getManager();
$zaal = $em->getRepository("CinemaBundle:Zalen")->findOneBy(["id"=>$request->request->all()['viewingid']]);
$stoelenInZaal = json_decode($zaal->getStoelen());
$absoluteStoelnummersInRij = [];
$currentnum = 0;
$stoelenSelected = array_map('str_getcsv',$request->request->all())['selected'];
for($i=0;$i<sizeof($stoelenInZaal);$i++){
@Matts
Matts / make
Created March 26, 2015 21:03
Build executable jar
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
@Matts
Matts / gist:fe4a764a963c1714bd88
Created May 13, 2014 20:24
Simple GitCommiter
@echo off
:a
git add --all
git commit -m "Modjam 15 Min Commit ^MattBot"
git push origin master
timeout 890
goto a