Bootstrap 4 Mixins | Compiled into |
---|---|
@include media-breakpoint-up(xs) | @media (min-width: 0px) |
@include media-breakpoint-up(sm) | @media (min-width: 576px) |
@include media-breakpoint-up(md) | @media (min-width: 768px) |
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
# Rename this file to env.sh, it will be kept out of Git. | |
# So suitable for adding secret keys and such | |
NODE_ENV="${NODE_ENV:-development}" | |
DEPLOY_ENV="${DEPLOY_ENV:-production}" | |
DEBUG="frey:*" | |
FREY_DOMAIN="localost:3020" | |
# FREY_ENCRYPTION_SECRET="***" | |
UPPYSERVER_PORT=3020 | |
UPPY_ENDPOINT="localhost" |
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
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Uppy test</title> | |
<link href="https://transloadit.edgly.net/releases/uppy/v0.25.2/dist/uppy.min.css" rel="stylesheet"> | |
</head> | |
<body> | |
<div id="drag-drop-area"></div> |
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 | |
/* | |
* Chunk through result set and output as CSV file in browser. | |
*/ | |
function outputCSV($columns, $query, $chunkSize = 200) { | |
header("Content-type: text/csv"); | |
header("Content-Disposition: attachment; filename='export-" . date("YmdHis") . ".csv"); | |
header("Pragma: no-cache"); | |
header("Expires: 0"); | |
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 | |
/* | |
* Chunk through result set and output as CSV file in browser. | |
*/ | |
function outputCSV($columns, $query, $chunkSize = 200) { | |
header("Content-type: text/csv"); | |
header("Content-Disposition: attachment; filename='export-" . date("YmdHis") . ".csv"); | |
header("Pragma: no-cache"); | |
header("Expires: 0"); | |
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
// Greek Tax Registration Number Validation (AFM) | |
// Αλγόριθμος ορθότητας ΑΦΜ | |
function validateAFM(afm) { | |
if (!afm.match(/^\d{9}$/) || afm == '000000000') | |
return false; | |
var m = 1, sum = 0; | |
for (var i = 7; i >= 0; i--) { | |
m *= 2; | |
sum += afm.charAt(i) * m; |
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
var waitForEl = function(selector, callback) { | |
if (jQuery(selector).length) { | |
callback(); | |
} else { | |
setTimeout(function() { | |
waitForEl(selector, callback); | |
}, 100); | |
} | |
}; |
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
# Ask for the user password | |
# Script only works if sudo caches the password for a few minutes | |
sudo true | |
# Install kernel extra's to enable docker aufs support | |
# sudo apt-get -y install linux-image-extra-$(uname -r) | |
# Add Docker PPA and install latest version | |
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |