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
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 $@ |
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
#define len(a) ((int) (sizeof(a) / sizeof(*a))) |
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 | |
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 |
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 com.matiit.learn; | |
public class NoVariables { | |
public static void main() { | |
System.out.println(10*10); | |
System.out.println(10*10*10); | |
} | |
} |
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 com.matiit.learn; | |
public class Variables { | |
public static void main() { | |
int a; | |
int b; | |
a = 10; | |
b = 10; |
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 | |
$addedRows = 0; | |
(...) | |
// Keep the order | |
// Reset it here, not in the if, so it always! gets resetted. | |
$addedRowsToCurrent = 0; | |
if ($grouped == AdminList::GROUPED_FOR_TAX_RELIEF && $row['tax_allocation_exists'] == 1) { | |
/** |
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 | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Mail Driver | |
|-------------------------------------------------------------------------- | |
| | |
| Laravel supports both SMTP and PHP's "mail" function as drivers for the |
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 | |
public function getDates() | |
{ | |
// In case it returns array of arrays: | |
return [ | |
// You can specify second "element" which would be the name of the column with timezone values | |
['start_date', 'timezone'], | |
// Use default if second "argument" not provided | |
['some_other_date_field'] | |
]; |
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 | |
public function getDates() | |
{ | |
// In case it returns array of arrays: | |
return [ | |
// You can specify second "element" which would be the name of the column with timezone values | |
['start_date', 'timezone'], | |
// Use default if second "argument" not provided | |
['some_other_date_field'] | |
]; |
NewerOlder