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
flatpak install flathub org.freedesktop.Sdk.Extension.golang | |
flatpak install flathub org.freedesktop.Sdk.Extension.node14 | |
flatpak override --env FLATPAK_ENABLE_SDK_EXT=golang,node14 com.vscodium.codium |
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
package dollyn.sak | |
import javafx.application.Application | |
import javafx.event.ActionEvent | |
import javafx.event.EventHandler | |
import javafx.stage.Stage | |
import javafx.scene.Scene | |
import javafx.scene.control.Button | |
import javafx.scene.layout.StackPane |
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
Information from https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file : | |
Use any character in the current code page for a name, including Unicode | |
characters and characters in the extended character set (128–255), except | |
for the following: | |
- The following reserved characters: | |
< (less than) | |
> (greater than) |
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
REM read more about assetPools here: http://docs.brightsign.biz/display/DOC/roAssetPool | |
REM read more about syncspecs here: http://docs.brightsign.biz/display/DOC/roSyncSpec | |
REM Sha1's should be calculated on the server and placed into an entry of the sync spec like so: | |
REM <download> | |
REM <name>autoplay-Project 1.xml</name> | |
REM <hash method="SHA1">a8e24dcfb83a694da58bafb3ab763c07ca842baf</hash> | |
REM <size>7962</size> | |
REM <link>pool/a/f/sha1-a8e24dcfb83a694da58bafb3ab763c07ca842baf</link> | |
REM </download> |
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
msqPort = createObject("roMessagePort") | |
'Defer the watchdog because the system may be tied up for a little while as the transfer commences | |
msgPort.DeferWatchdog(120) | |
newSync = createObject("roSyncSpec") | |
newSync.readFromFile("path/to/newSyncSpec.xml") | |
assetCollection = newSync.GetAssets("download") | |
path$ ="/fwUpdate/path/to/pool" |
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
# To use this, you need to implement some class with a read() method, eg. | |
# | |
# class MyReader(object): | |
# def __init__(self, path): | |
# self.path = path | |
# | |
# def read(self): | |
# with open(self.path, 'r') as f: | |
# return f.read() | |
# ... |
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
REM | |
REM | |
REM This code demonstrates how to detect a network configuration. | |
REM Read more: http://docs.brightsign.biz/display/DOC/roNetworkHotplug | |
REM | |
Sub Main() | |
networkAvailable = false | |
'Check ethernet | |
nc = CreateObject("roNetworkConfiguration", 0) | |
if type(nc) = "roNetworkConfiguration" then |
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
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' | |
' Delay is in ms. Message will be displayed for this length of time. | |
' Specify 0 to return immediately, and rely on the parent message loop. | |
' Specify -1 for infinite display with a local message loop. | |
Sub Notify(message As String, delay As Integer) | |
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' | |
print message | |
gaa = GetGlobalAA() | |
If gaa.tw = invalid Then | |
videoMode = CreateObject("roVideoMode") |
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 { h, Component } from 'preact'; | |
/** Creates a new store, which is a tiny evented state container. | |
* @example | |
* let store = createStore(); | |
* store.subscribe( state => console.log(state) ); | |
* store.setState({ a: 'b' }); // logs { a: 'b' } | |
* store.setState({ c: 'd' }); // logs { c: 'd' } | |
*/ |
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 -e | |
# Creates a systemd-nspawn container with Alpine | |
MIRROR=http://dl-cdn.alpinelinux.org/alpine | |
VERSION=${VERSION:-v3.21} | |
APKTOOLS_VERSION=2.14.6-r3 | |
wget_or_curl () { | |
if command -v wget >/dev/null; then |
NewerOlder