state.a = 2 # assignations do not flush
state.update({'a': 1, 'b': 0}) # updates do not flush
state.dirty("c") # `dirty()` does not flush
state.flush() # flush happens here
with state:
state.d = 3
state.e = "lion"
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
from trame.app import get_server | |
from trame.widgets import vuetify, html, client | |
from trame.ui.vuetify import SinglePageWithDrawerLayout | |
# ----------------------------------------------------------------------------- | |
# Trame setup | |
# ----------------------------------------------------------------------------- | |
VAR_NAMES = set(["a123", "a456", "a789"]) | |
server = get_server(client_type="vue2") |
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
import asyncio | |
from trame.app import get_server | |
from trame.widgets import vuetify, html | |
from trame.ui.vuetify import SinglePageWithDrawerLayout | |
# ----------------------------------------------------------------------------- | |
# Trame setup | |
# ----------------------------------------------------------------------------- | |
server = get_server(client_type="vue2", |
This file has been truncated, but you can view the full file.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="google" value="notranslate"> | |
<title>ParaView Glance</title> | |
<meta name="description" content="Data Viewer in a browser"> | |
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAD2NJREFUeAHtnetu3MYVx4fc+8qKJFttHN+vcVzbBZqilxSJ7aov0FfpOxR9gX4r0A/92E95gsZKmgAt2qApYsdu7diWr41V62Z5b9pd9pyzu+SIy13OGfEwQjEDrJbmDskfzxzOmRnO/K2US84CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAs4CzgLOAlMs4Cv1W/g5yOMz4/urU1DGf/LzY/NrRR6b8nOzm1esrkI5yaS+Utdlzjx+1tf9/ofje6fs6efH1m92eWyqf30KeaY/Bd3Wh8VMzxidbBE2L5U9L/jDuYteyZPxs18/eai+aGzjVT+KLp26RWxe0Q/O/ua6B9+pB9hkePq7f6jGnZd4KJtN+cXg6NKvPM8v2Fw69ZjVz/+o2i8fEJvM3Su1BGf3LtZmxAq/FwTqTrOBIQbTx4Mvo7/EVjszL1b4Qa+vmvc3rNkqC8fECj/o91Vn40nIJukA6nJ9xqhEbDLdbTVUK+h7cOx |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template name="newline"><xsl:text> </xsl:text></xsl:template> | |
<xsl:template match="/executable"> | |
<xsl:text>:'''Title:''' </xsl:text><xsl:value-of select="title"/><xsl:call-template name="newline"/> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:transform version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" indent="yes" encoding="UTF-8"/> | |
<xsl:template name="newline"><xsl:text> </xsl:text></xsl:template> | |
<xsl:template match="/executable"> | |
<xsl:for-each select="parameters"> |
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
(modify-frame-parameters nil '((wait-for-wm . nil))) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(column-number-mode 1) | |
'(gdb-max-frames 200) | |
'(indent-tabs-mode nil) | |
'(inhibit-default-init t) |
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/local/bin/cmake -P | |
message("Upload packages") | |
set(PROJECT_NAME "CTKAppLauncher") | |
set(MIDAS_URL "http://packages.kitware.com") | |
set(MIDAS_USER "[email protected]") | |
set(MIDAS_API_KEY YOUR_KEY_HERE) | |
set(FOLDER_ID 65) # CTK/Public/AppLauncher | |
set(APPLICATION_ID 10) # AppLauncher |