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
version: '3.5' | |
services: | |
memcached: | |
image: 'memcached:alpine' | |
networks: | |
- yooble | |
redis: | |
image: 'redis:5.0-alpine' |
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
FROM php:8.1-fpm-alpine | |
RUN apk update \ | |
&& apk add ca-certificates wget \ | |
&& update-ca-certificates | |
COPY --from=composer /usr/bin/composer /usr/bin/ | |
RUN apk add --no-cache mysql-client msmtp perl wget procps shadow libzip libpng libjpeg-turbo libwebp freetype icu |
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
FROM ubuntu:21.04 | |
LABEL maintainer="Taylor Otwell" | |
ARG WWWGROUP | |
ARG NODE_VERSION=16 | |
WORKDIR /var/www/html | |
ENV DEBIAN_FRONTEND noninteractive |
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
Show hidden characters
{ | |
"folders": [ | |
{ | |
"path": "." | |
} | |
], | |
"settings": { | |
"workbench.colorCustomizations": { | |
"titleBar.activeBackground": "#007c27", | |
"titleBar.activeForeground": "#ffffff", |
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
# For more information: https://laravel.com/docs/sail | |
version: '3' | |
volumes: | |
sailredis: | |
driver: local | |
sailmariadb: | |
driver: local | |
services: |
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
import '@testing-library/jest-dom/extend-expect'; | |
import { render, fireEvent, getAllByTestId } from '@testing-library/svelte'; | |
import MovieList from '../components/movies/MovieList'; | |
import { store, INITIAL_STATE } from '../store'; | |
import moviesMock from './mocks/movies.json'; | |
describe("Movie List", () => { | |
it("renders movie list with 2 movies even when the list contains more movies but only 2 of them contain backdrop_path", () => { |
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
regionFrom = (lat, lon, distance) => { | |
distance = distance/2 | |
const circumference = 40075 | |
const oneDegreeOfLatitudeInMeters = 111.32 * 1000 | |
const angularDistance = distance/circumference | |
const latitudeDelta = distance / oneDegreeOfLatitudeInMeters | |
const longitudeDelta = Math.abs(Math.atan2( | |
Math.sin(angularDistance)*Math.cos(lat), | |
Math.cos(angularDistance) - Math.sin(lat) * Math.sin(lat))) |
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
const express = require('express') | |
const route = express.Router() | |
const encRedisClient = require('./cache/setup') | |
const init = connection => { | |
let classification = null | |
route.get('/', async (req, res) => { | |
if (!classification) { | |
const groupsRanking = await encRedisClient.getAsync('groupsRanking', async (err, reply) => { |
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 | |
namespace Backend\Http\Controllers\Api; | |
use Illuminate\Http\Request; | |
use Backend\Http\Controllers\Controller; | |
use Tymon\JWTAuth\Exceptions\JWTException; | |
class AuthController extends Controller | |
{ |
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
/* | |
* SolidGaugeChart Class | |
*/ | |
<?php | |
namespace App\Charts; | |
use ConsoleTVs\Charts\Classes\Highcharts\Chart; | |
class ActivityChart extends Chart |
NewerOlder