This file contains hidden or 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
| name: Server Build & Push | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'server/**' | |
| - 'shared/**' | |
| - docker-compose.prod.yml | |
| - Dockerfile |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| #!/bin/bash | |
| ORGANIZATION=$ORGANIZATION | |
| ACCESS_TOKEN=$ACCESS_TOKEN | |
| REG_TOKEN=$(curl -sX POST -H "Authorization: token ${ACCESS_TOKEN}" https://api.github.com/orgs/${ORGANIZATION}/actions/runners/registration-token | jq .token --raw-output) | |
| cd /home/docker/actions-runner | |
| ./config.sh --url https://github.com/${ORGANIZATION} --token ${REG_TOKEN} |
This file contains hidden or 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' | |
| services: | |
| mysql: | |
| image: mysql:5 | |
| container_name: mysql | |
| environment: | |
| - MYSQL_DATABASE=wpdb | |
| - MYSQL_USER=wpuser |
This file contains hidden or 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 cv2 | |
| vidcap = cv2.VideoCapture('video.mp4') | |
| success, image = vidcap.read() | |
| count = 1 | |
| while success: | |
| cv2.imwrite("output/image_%d.jpg" % count, image) | |
| success, image = vidcap.read() | |
| print('Saved ', count) | |
| count += 1 |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Microsoft.AspNetCore; | |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.Logging; |
This file contains hidden or 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:7.1.2-apache | |
| RUN docker-php-ext-install mysqli |
This file contains hidden or 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
| //Copied From https://gist.github.com/unity3dcollege/b43888d4d17bef0c21369d6cc32352dd | |
| using UnityEngine; | |
| public class BallBouncer : MonoBehaviour | |
| { | |
| [SerializeField] | |
| [Tooltip("Just for debugging, adds some velocity during OnEnable")] | |
| private Vector3 initialVelocity; | |
| [SerializeField] |