- What is a Shared Library?
- How do you use symbols from a Shared Library?
- How do you edit/update symbols from a Shared Library?
- How do you link a Shared Library on Abstract to your project file?
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 | |
echo "$(basename "$0")" | |
KEEP_ON_PHONE=false | |
FILE_NAME="screenshot_$(date +"%Y-%m-%d_%H-%M-%S")" | |
TARGET_DIR_PHONE="//sdcard" | |
TARGET_DIR_COMP="$(pwd)" | |
printUsage() { |
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 | |
echo "$(basename $0)" | |
KEEP_ON_PHONE=false | |
FILE_NAME="screen_recording_$(date +"%Y-%m-%d_%H-%M")" | |
TARGET_DIR_PHONE="//sdcard" | |
TARGET_DIR_COMP="$(pwd)" | |
printUsage() { |
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 { readdir, readFileSync, writeFileSync, stat } from 'fs'; | |
import { join, basename } from 'path'; | |
function processJSONFiles(inputFolderPath, outputFolderPath) { | |
readdir(inputFolderPath, (err, files) => { | |
if (err) { | |
console.error('Error reading folder:', err); | |
return; | |
} |
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
javascript:(function()%7B(function()%7Bconst%20oldFocus%3Ddocument.activeElement%3BoldFocus.focus()%3Bnavigator.clipboard.writeText(localStorage.getItem('global_state')).then(function()%7Bconsole.log('copied!')%7D%2Cfunction(e)%7Bconsole.log('failed%20to%20copy...'%2Ce)%7D)%7D)()%3B%7D)()%3B |
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
/** | |
* | |
* @param {HTMLImageElement} rgbImage preferably a JPG | |
* @param {HTMLImageElement} alphaImage preferably a PNG with alpha channel | |
* @param {HTMLCanvasElement} canvas optional | |
*/ | |
export const mergeAlpha = (rgbImage, alphaImage, canvas) => { | |
/* eslint-disable no-param-reassign */ | |
if (!canvas) { | |
canvas = document.createElement('canvas'); |
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
// how might this work outside of the local library? It looks like we may need to auth with and use the REST API todo this the most effcient way. | |
// This possibly means hardcoding the auth key in this plugin. It's private so that might be okay(?). We could ask for it up front but that seems counter productive https://www.figma.com/developers/api#get-file-styles-endpoint | |
const localStyles = figma.getLocalPaintStyles(); | |
const selectedNodes = figma.currentPage.selection; | |
if (selectedNodes.length === 0) { | |
figma.notify("Nothing was selected..."); | |
figma.closePlugin(); | |
} |
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
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Document</title> | |
<link rel="stylesheet" href="build/cog-website-styles.css" /> | |
</head> | |
<body> | |
<section class="relative"> |
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 React from 'react'; | |
import { Formik, Field, Form, ErrorMessage } from 'formik'; | |
import * as Yup from 'yup'; | |
const SignupForm = () => { | |
return ( | |
<Formik | |
initialValues={{ firstName: '', lastName: '', email: '' }} | |
validationSchema={Yup.object({ | |
firstName: Yup.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 * as React from "react" | |
import { | |
addPropertyControls, | |
ControlType, | |
BooleanControlDescription, | |
EnumControlDescription | |
} from "framer" | |
import * as Cog from '../../../dist/framer/' | |
import { BoxProps, BoxTheme } from '../../../dist/Box' |
NewerOlder