Skip to content

Instantly share code, notes, and snippets.

View Livijn's full-sized avatar

Fredrik Livijn

  • Livijn Labs AB
  • Stockholm
View GitHub Profile
const { withProjectBuildGradle } = require('@expo/config-plugins');
const kotlinClassPath =
'org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion';
function withKotlinGradle(config, version) {
return withProjectBuildGradle(config, (config) => {
console.log(
`[config-plugins/detox] Setting Kotlin version to: ${version}. This could lead to Android build issues.`
);
import PIL
import tensorflow as tf
import hashlib
import io
import os
import untangle
from object_detection.utils import dataset_util
def xml_to_tf_example(xml_obj, data_dir):
<?php
namespace App\Library;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Http\Resources\Json\ResourceCollection;
use Illuminate\Pagination\LengthAwarePaginator;
use JsonSerializable;
class ResourcePaginator implements JsonSerializable, Arrayable
{
<?php
namespace App\Traits;
use App;
use Cache;
trait ForceAsynchronousJob
{
private $injectedFunction;
cd ./vendor/laravel/nova
mv webpack.mix.js.dist webpack.mix.js
npm i
npm run dev
rm -rf node_modules
cd -
php artisan nova:publish