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 bpy | |
import os | |
# Set the directory where you want to save the exported files | |
export_dir = "C:/path/to/export/directory" | |
# Ensure the directory exists | |
if not os.path.exists(export_dir): | |
os.makedirs(export_dir) |
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 bpy | |
import os | |
# Set the directory where you want to save the exported files | |
export_dir = "/Users/csuaznabar/Documents/Blender/assets" | |
# Ensure the directory exists | |
if not os.path.exists(export_dir): | |
os.makedirs(export_dir) |
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
export function memorySizeOf(obj) { | |
var bytes = 0 | |
function sizeOf(obj) { | |
if (obj !== null && obj !== undefined) { | |
switch (typeof obj) { | |
case 'number': | |
bytes += 8 | |
break | |
case 'string': |
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 { useState } from 'react' | |
const useApi = (apiFunction: any) => { | |
const [data, setData] = useState() | |
const [error, setError] = useState(false) | |
const [loading, setLoading] = useState(false) | |
const request = async (...args: any[]) => { | |
try { |
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
<?php | |
$this->registerJsFile( 'https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest' ); | |
$this->registerJsFile( 'https://cdn.jsdelivr.net/npm/@editorjs/header@latest' ); | |
$this->registerJsFile( 'https://cdn.jsdelivr.net/npm/@editorjs/paragraph@latest' ); | |
$this->registerJsFile( 'https://cdn.jsdelivr.net/npm/@editorjs/image@latest' ); | |
$this->registerJsFile( 'https://cdn.jsdelivr.net/npm/@editorjs/link@latest' ); | |
$this->registerJsFile( 'https://cdn.jsdelivr.net/npm/@editorjs/embed@latest' ); | |
$this->registerJsFile( 'https://cdn.jsdelivr.net/npm/@editorjs/personality@latest' ); | |
$this->registerJsFile( 'https://cdn.jsdelivr.net/npm/@editorjs/table@latest' ); |
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
chown -R apache:apache <dir> | |
chmod -R 755 <dir> | |
chcon -R -t httpd_sys_rw_content_t <dir> |
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
<!-- Base application theme. --> | |
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | |
<item name="android:actionBarStyle">@style/ActionBar</item> | |
<item name="actionBarStyle">@style/ActionBar</item> | |
</style> | |
<!-- Actionbar Theme --> | |
<style name="ActionBar" parent="Widget.AppCompat.Light.ActionBar.Solid.Inverse"> | |
<item name="android:background">@color/verde_header</item> | |
<item name="background">@color/verde_header</item> | |
</style> |
NewerOlder