Skip to content

Instantly share code, notes, and snippets.

View nithinshiriya's full-sized avatar

Nitheen Rao T nithinshiriya

View GitHub Profile
@nithinshiriya
nithinshiriya / unmanaged-constructed-types.cs
Created December 26, 2022 15:32
An unmanaged constructed type is a data type that is generated at runtime in .NET programming and is not monitored by the garbage collector. These types are often used in situations where the type is only needed within a single method or block of code and has a limited lifespan. The System.Reflection.Emit namespace is used to create these types …
using System;
public struct Coords<T>
{
public T X;
public T Y;
}
public class UnmanagedTypes
{
@nithinshiriya
nithinshiriya / Content control basics (1).WORD.yaml
Last active August 27, 2021 17:28
Inserts, updates, and retrieves content controls.
name: Content control basics (1)
description: 'Inserts, updates, and retrieves content controls.'
host: WORD
api_set: {}
script:
content: >
$("#insert-controls").click(() => tryCatch(insertContentControls));
$("#change-controls").click(() => tryCatch(modifyContentControls));
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-profile.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@nithinshiriya
nithinshiriya / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../topeka-elements/avatars.html">
<polymer-element name="my-element">
<template>
<style>
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>