What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-13 02:51:03
get family type revit api
public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements ) { UIApplication uiapp = commandData.Application; Document doc = uiapp.ActiveUIDocument.Document; Stopwatch ... Add solution -
Other 2021-09-12 19:43:01
_pickle.unpicklingerror: invalid load key,
pickling is recursive, not sequential. Thus, to pickle a list, pickle will start to pickle the containing list, then pickle the first element… diving into the first element and pickling dependencies and sub-elements until the first element is ser... Add solution -
Other 2021-09-12 13:38:03
biggest accomplishment
Using Scenario Outline & Examples in framework: When I started to work in my last company we were in 5th Sprint of the project. I started the work and understand the application and framework. After 2 sprints, I figured out that almost nobody was us... Add solution -
Java 2021-09-12 10:53:03
salesforce publish platform event apex
List<Low_Ink__e> inkEvents = new List<Low_Ink__e>(); inkEvents.add(new Low_Ink__e(Printer_Model__c='XZO-5', Serial_Number__c='12345', Ink_Percentage__c=0.2)); inkEvents.add(new Low_Ink__e(Printer_Model__c='MN-123', Serial_Number... Add solution -
Javascript 2021-09-10 22:27:03
reactjs context api
DEFINITION:::::: Context provide a way to pass data through the component tree without having to pass down manually at every level HOW TO USE:::::: DECLARATION::: const MyContext = React.createContext() Creating a new Context for each unique piece of d... Add solution -
Other 2021-09-10 05:03:01
linked list head and tail
import java.util.Iterator; // Custom Linked List class using Generics class List<T> implements Iterable<T> { Node<T> head, tail; // add new Element at tail of the linked list in O(1) public void add(T data) { Node<T>... Add solution -
SQL 2021-09-10 02:15:03
trigger insert
-- SQL Server (update my_table2 after insert on my_table1) CREATE TRIGGER trigger_name ON my_table1 FOR INSERT AS BEGIN UPDATE my_table2 SET my_col_date = getdate() FROM my_table1 END -- Oracle (insert into log table after update on my_table) CREATE ... Add solution