Skip to content

Instantly share code, notes, and snippets.

@spentak
spentak / game_manager.verse
Created March 24, 2023 16:43
This code is a UEFN Fortnite "Device" for managing a Gun Game feature where players fight online and get a new weapon after each elimination
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Fortnite.com/Teams }
using { /Fortnite.com/Game }
using { /Fortnite.com/Characters }
using { /UnrealEngine.com/Temporary/Diagnostics }
# This code is a UEFN Fortnite "Device" for managing a Gun Game feature
# where players fight online and get a new weapon after each elimination
@spentak
spentak / SimpleWallet.cs
Last active October 2, 2018 17:01
Code for creating a SimpleWallet on the NEM blockchain in C#
/// Created by Jacob Luetzow
/// Copyright Blockstart 2018
using System;
using System.Text;
using System.Security.Cryptography;
using Org.BouncyCastle.Crypto.Digests;
using io.blockstart.sdk.Core.Crypto;
using io.blockstart.sdk.Core.Crypto.Chaso.NaCl;
using io.blockstart.sdk.Model.Blockchain;
using io.blockstart.sdk.Model.Accounts;
@spentak
spentak / is_installed.sh
Created January 9, 2018 21:52 — forked from JamieMason/is_installed.sh
Check if a program exists from a bash script.Thanks to twitter.com/joshnesbitt and twitter.com/mheap for the help with detecting npm packages.
#!/bin/bash
# Functions ==============================================
# return 1 if global command line program installed, else 0
# example
# echo "node: $(program_is_installed node)"
function program_is_installed {
# set to 1 initially
local return_=1
export const NOTIF_WISHLIST_CHANGED = "notif_wishlist_changed";
let instance = null;
var observers = {};
class NotificationService {
constructor() {
if (!instance) {
import UIKit
/** extension to UIColor to allow setting the color
value by hex value */
extension UIColor {
convenience init(red: Int, green: Int, blue: Int) {
/** Verify that we have valid values */
assert(red >= 0 && red <= 255, "Invalid red component")
assert(green >= 0 && green <= 255, "Invalid green component")
assert(blue >= 0 && blue <= 255, "Invalid blue component")
import UIKit
private var materialKey = false
extension UIView {
@IBInspectable var materialDesign: Bool {
get {
return materialKey
}