Skip to content

Instantly share code, notes, and snippets.

View matiit's full-sized avatar
:octocat:

Mateusz Tracz matiit

:octocat:
View GitHub Profile
package com.matiit.learn;
public class Variables {
public static void main() {
int a;
int b;
a = 10;
b = 10;
package com.matiit.learn;
public class NoVariables {
public static void main() {
System.out.println(10*10);
System.out.println(10*10*10);
}
}
<?php
use Doctrine\ORM\Tools\DisconnectedClassMetadataFactory;
include './vendor/autoload.php';
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__);
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__);
$classLoader->register();
// config
#define len(a) ((int) (sizeof(a) / sizeof(*a)))
@matiit
matiit / Makefile
Created May 13, 2019 22:25
Example makefile
all: check test
VIRTUAL_ENV := $(shell poetry config settings.virtualenvs.path|tr -d \")/websecmap-py3.6
export PATH := ${VIRTUAL_ENV}/bin:${PATH}
setup: ${VIRTUAL_ENV}/bin/websecmap
${VIRTUAL_ENV}/bin/websecmap: poetry.lock | ${poetry}
poetry install --develop=websecmap
test -f $@ && touch $@