test gist
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
| conf t | |
| spanning-tree vlan 1 root primary | |
| vlan 468 | |
| name Carpentry | |
| exit | |
| int vlan 468 | |
| no ip address | |
| exit |
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
| require 'gosu' | |
| class GosuWindow < Gosu::Window | |
| def initialize | |
| super 640, 480, false | |
| self.caption = "gosu" | |
| @font = Gosu::Font.new(self, Gosu::default_font_name, 20) | |
| end |
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
| sudo rsync -aAXv --delete --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* --exclude=/run/* --exclude=/mnt/* --exclude=/media/* --exclude="swapfile" --exclude="lost+found" --exclude=".cache" --exclude="Downloads" --exclude=".ecryptfs" /source /destination |
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
| window.onload = function() { | |
| console.log('loaded'); | |
| const url = './file.txt'; | |
| // make a new 'request'. | |
| // request is an object so we use the keyword 'new' to make an instance of the XMLHttpRequest object | |
| var request = new XMLHttpRequest(); | |
| // GET data from a location | |
| request.open('GET', url); | |
| // prevent caching so when you reload it gets the data again |
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
| #!/usr/bin/python3 | |
| import os | |
| import json | |
| __author__ = "Roland" | |
| __version__ = "1.0.1" | |
| def main(): | |
| # where to look for stats files |
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
| public Rectangle() : base(10, 10, 10, 10, SwinGame.ColorAliceBlue()) | |
| { | |
| } | |
| public Rectangle(Color color) : this(10, 10, 10, 10, color) | |
| { | |
| Rectangle otherrect = new Rectangle(); | |
| } |
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
| void encode4PlusDigits(int value) | |
| { | |
| // slices an int number. eg. | |
| // a[1,2,3] = a[1] = 2 | |
| int valueLen = to_string(value).length(); | |
| int sliced[valueLen]; | |
| for (int i = 0; i < valueLen; i++) | |
| { | |
| sliced[i] = value % 10; | |
| value /= 10; |
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
| #include <iostream> | |
| #include <iomanip> | |
| #include <string> | |
| #include <array> | |
| #include <algorithm> | |
| #include <vector> | |
| using namespace std; | |
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
| #include <iostream> | |
| #include <map> | |
| using namespace std; | |
| int main(int argc, char const *argv[]) | |
| { | |
| map<string, int> mymap; | |
| mymap.insert({"hello", 1}); | |
| mymap.insert({"world", 1}); |
OlderNewer