Skip to content

Instantly share code, notes, and snippets.

View matisiekpl's full-sized avatar

Mateusz Woźniak matisiekpl

  • Akademia Górniczo-Hutnicza w Krakowie
  • Rzeszów, Poland
View GitHub Profile
// My schema for E-learning system for my school
directive @isAuthenticated on FIELD | FIELD_DEFINITION
directive @hasRole(role: String) on FIELD | FIELD_DEFINITION
directive @permit(code: String) on QUERY | FIELD | FIELD_DEFINITION
directive @private on FIELD | FIELD_DEFINITION
enum ContestType {
PRIVATE,
PUBLIC
let imageUrl;
let key;
let uploadImg = player.img;
const newPlayer = {
name: player.name,
settlement: player.settlement,
settlementId: player.settlementId,
extension: player.img === undefined ? "" : player.img.name.slice(player.img.name.lastIndexOf('.'))
};
wget https://raw.githubusercontent.com/enteam/enfunc/master/docker-compose.yml
docker-compose up -d
yarn global add enfunc-cli
const runtime = require('./runtime.js');
module.exports.helloWorld = runtime.functions.onRequest(async (req, res) => {
res.json({
message: 'Hello World!'
})
});
module.exports = {
functions: {
onRequest: (callback) => {
return {
callback: callback
};
},
onApp: (app) => {
return {
callback: app,
# Deploy your app
export ENFUNC_HOST=http://localhost:3000 # without a trailing slash
enfunc deploy --app my-first-app
git clone $REPO_URL app
cd app
git checkout $COMMIT_SHA
wget https://dl.minio.io/client/mc/release/linux-amd64/mc
chmod +x mc
flutter build apk
./mc config host add enbuild $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
./mc cp build/app/outputs/apk/release/app-release.apk enbuild/enbuild/app-release-$BUILD_ID.apk
version: '3'
services:
parse-server:
#build: .
image: yongjhih/parse-server
ports:
- "1337:1337"
environment:
PORT: 1337
DATABASE_URI: $DATABASE_URI