- Document objects are mixed with other attributes in
App.ActiveDocument
. I would suggest to usedoc
instead ofApp.ActiveDocument
and e.g.objs.Box
instead ofApp.ActiveDocument.Box
.doc.Objects
would continue to be the list of children. App.Rotation
takes angle(s) in degrees as input butRotation.Angle
is in radians.App.Quantity.getValueAs
returns a unit-less quantity instead of a floatgetGlobalPlacement
does not return the global placement.App.GuiUp
is not available at the start of FreeCAD.- FreeCAD has it's own
PySide
but not under a different name. - There are several way to import FreeCAD (
import FreeCAD as App
andimport freecad as App
) but they are not equivalent.
Discover gists
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# PowerShell script to add Windows Defender exclusions for WSL2 and JetBrains IDE performance issues | |
# | |
# For context please read this thread: | |
# https://github.com/microsoft/WSL/issues/8995 | |
# | |
# How to use? | |
# - Save the Script: Open a text editor like Notepad and paste the PowerShell script into it. | |
# - Save the file with a .ps1 extension, for example, Add_WindowsDefender_Exclusions.ps1. | |
# - Run PowerShell as Administrator: Search for "PowerShell" in the Start menu, right-click on it, and choose "Run as administrator". | |
# - Navigate to the Script's Location: Use the cd command to navigate to the directory where you saved the .ps1 file. |
#Users
- User object
{
id: integer
username: string
email: string
created_at: datetime(iso 8601)
updated_at: datetime(iso 8601)
}
This file contains 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
#!/usr/bin/env bash | |
# run this on the remote terminal machine, as auser with sudo powers, probably through a remote ssh shell | |
# this will overwrite all the settings it touches | |
# the name of the user to run these commands as | |
TARGET_USER=jane | |
# we need an inlocked desktop session. we can either start a new autologin one or unlock an existing one |
This file contains 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
let championByIdCache = {}; | |
let championJson = {}; | |
async function getLatestChampionDDragon(language = "en_US") { | |
if (championJson[language]) | |
return championJson[language]; | |
let response; | |
let versionIndex = 0; |
List of freely available resources to study computer graphics programming.
This article describes how to shoot a video from JavaScript using the MediaStream Recording API. The related resources are shown below.
This file contains 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
-- gct: get chrome tabs | |
-- save FRONTMOST WINDOW of Chrome (or safari, but definitely not firefox) tabs into a file | |
-- optionally (by uncommenting) CLOSE the window | |
-- modified from http://www.leancrew.com/all-this/2012/10/saving-browser-tab-sets/ | |
-- ------------------------------------------------------------ | |
-- cce | |
-- 2012 nov- rev 0.2 | |
-- - why do i punish myself with applescript? | |
-- | |
-- ------------------------------------------------------------ |
This file contains 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
// | |
// AdvancedToolbarWindow.swift | |
// | |
// Created by Stephan Casas on 3/17/23. | |
// | |
import SwiftUI; | |
import AppKit; | |
class AdvancedToolbarWindow<MainContent: View, ToolbarContent: View, TitleToolbarContent: View>: NSWindow, NSToolbarDelegate { |
NewerOlder