Skip to content

Instantly share code, notes, and snippets.

View deepslam's full-sized avatar
🏠
Working from home

Ivanov Dmitry deepslam

🏠
Working from home
View GitHub Profile
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'MyApp' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for HelloEnglish
<html>
<head>
<title>Test app</title>
<meta name="csrf-token" content="{{ csrf_token() }}">
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
</head>
<body>
<div id="container" class="container-fluid">
<div id="app">
<?php
if (!function_exists('ssr')) {
function ssr(string $ident = '', $element): string {
$path = storage_path('prerendered/'.$ident.'.json');
if (file_exists($path)) {
$content = file_get_contents($path);
$json = json_decode($content);
if ($json && isset($json->$element)) {
return $json->$element;
}
require('dotenv').config();
const puppeteer = require('puppeteer');
const colors = require('colors');
const path = require('path');
const terminalLink = require('terminal-link');
const createIfNotExist = require("create-if-not-exist");
const fsExtra = require('fs-extra');
const settings = {
host: process.env.APP_URL || ``, // Url to visit