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
# One side, change the address by a digit and reverse the outside ip addresses for the other side | |
auto gre1 | |
iface gre1 inet static | |
address 10.10.10.10 # inside side a address | |
netmask 255.255.255.0 | |
pre-up ip tunnel add gre1 mode gre remote 173.230.145.76 local 173.230.147.224 #remote external ip local external ip | |
post-down ip tunnel del gre1 |
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>name</key> | |
<string>VictorMono</string> | |
<key>settings</key> | |
<array> | |
<dict> | |
<key>settings</key> |
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/bin/env python3 | |
import random, os, sys | |
cardName = { 1: 'Ace', 2: 'Two', 3: 'Three', 4: 'Four', 5: 'Five', 6: 'Six', 7: 'Seven', 8: 'Eight', 9: 'Nine', 10: 'Ten', 11: 'Jack', 12: 'Queen', 13: 'King' } | |
cardSuit = { 'c': 'Clubs', 'h': 'Hearts', 's': 'Spades', 'd': 'Diamonds' } | |
class Card: | |
def __init__(self, rank, suit): |
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
Output without trying to call the Function: | |
1 | |
F1_Init | |
F1 Comming Online | |
(SerenadeMi.Entry) { | |
FnNum: (uint) 1, | |
FnName: (string) (len=5) "hello", | |
SDesc: (string) (len=11) "Print Hello", | |
Ldesc: (string) (len=16) "Test Print Hello", | |
Fn: (func(*interface {}) error) 0x1024b3e30 |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
) | |
var ( | |
HEARTS Suits = Suits{"HEARS", 3} | |
SPADES Suits = Suits{"SPADES", 2} |
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
"Systemic Overload" by the band Revolt Protocol: | |
Verse 1: | |
In the shadows of a broken dream, | |
We rise against the gears of the machine. | |
Their power surges, but we won't be swayed, | |
For justice and freedom, our voices won't fade. | |
Chorus: | |
Systemic overload, it's time to explode, |
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
/* | |
* A day at the race (conditions) -- Using race conditions to our benefit | |
* | |
* This is a proof of concept I intend to later turn into a BBS door game. | |
* This is for a bigger project where I plan to make a 24-bit color 90's BBS like shell, | |
* complete with ANSI animted background screens. The goal is to recreate the 90s BBS experience | |
* and reboot some of the old popular games from the Renegade/Wildcat/PCBoard/MBBS days. | |
* Other things it should have as well: | |
* - WebDAV file upload/download so you can share files | |
* - Games |
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/bin/env python3 | |
# | |
# Wonderful function benchmark | |
# https://stackoverflow.com/questions/311775/create-a-list-with-initial-capacity-in-python | |
# | |
# | |
import time | |
class Timer(object): | |
def __enter__(self): |
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/bin/env python3 | |
# MIT License 2022 -- Stephanie Sunshine | |
# created as an example to my students of an improved binary tree and traverse (sort) | |
class FancyNode: | |
def __init__(self, data = 0, count = 0, left = None, right = None): | |
self.data = data | |
self.count = count | |
self.left = left | |
self.right = right |
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
syntax = "proto3"; | |
option go_package = "github.com/StephanieSunshine/go-auction"; | |
package auction; | |
service Auction { | |
rpc ListAll() returns (Auctions) {} | |
rpc GetAuction(AuctionId) returns (AuctionData) {} | |
rpc StreamUpdates(AuctionId) returns (stream AuctionUpdates) {} |
NewerOlder