XXX
|- .git
|- (project files)
YYY
|- .git
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
| # a function to listen for the current jackbox room id being received | |
| # requirements: pyshark python module, tshark library or wireshark | |
| # sometimes the code gets cut off between packets. need to restart the current game if no code is found; this happens 10% of the time | |
| def get_jackbox_room_code(packet_count=None): | |
| """ blocks until room code is found or packet_count is reached | |
| >>> get_jackbox_room_code() | |
| 'CTLE' """ | |
| def get_outgoing_ip(): | |
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
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
| /* Filters items on Steam Store search page to display only fine discounted. | |
| Steam Sale fine discounts | |
| 1. Open [Steam Search page](http://store.steampowered.com/search/?sort_by=Price_ASC&specials=1) | |
| 2. Check to be logged in, script will hide owned games | |
| 3. Open Browser console with Ctrl+Shift+I for Chrome(Console tab), Ctrl+Shift+K for Firefox, F12 for IE. | |
| 4. Paste code from [search-userscript.js](https://raw.githubusercontent.com/burdiuz/js-steam-fine-discounts/master/search-userscript.js) into console and press Enter | |
| 5. Wait for fine discounts to be found and displayed | |
| */ | |
| (function() { | |
| var categories = '998,994,21,996,997'; // 998 - games |
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
| using System; | |
| using Windows.ApplicationModel.Core; | |
| using Urho; | |
| using Urho.Holographics; | |
| using Urho.HoloLens; | |
| internal class Program | |
| { | |
| [MTAThread] | |
| private static void Main() |
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 | |
| # izulu - Change the wallpaper according to the weather | |
| # | |
| # Copyright (C) 2009 Malte Paskuda | |
| # | |
| # This program is free software; you can redistribute it and/or modify it | |
| # under the terms of the GNU General Public License as published by the | |
| # Free Software Foundation; either version 3 of the License, or (at your | |
| # option) any later version. |
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
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
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 static IEnumerable<string> GetPermutations(string s) | |
| { | |
| if (s.Count() > 1) | |
| return from ch in s | |
| from permutation in GetPermutations(s.Remove(s.IndexOf(ch), 1)) | |
| select string.Format("{0}{1}", ch, permutation); | |
| else | |
| return new string[] { s }; | |
| } |
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 static List<string> Permutations(string s) | |
| { | |
| if (s.Length == 1) | |
| { | |
| return new List<string> { s }; | |
| } | |
| List<string> permutations = new List<string>(); | |
| foreach (char c in s) |
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
| ; AMI | |
| [GUID_FILE] | |
| ; ACPI tables | |
| 16D0A23E-C09C-407d-A14A-AD058FDD0CA1=ACPI | |
| 11D8AC35-FB8A-44d1-8D09-0B5606D321B9=DSDT | |
| 95DFCAE5-BB28-4d6b-B1E2-3AF3A6BF434F=PTID | |
| FB045DB2-598E-485A-BA30-5D7B1B1BD54D=AOAC | |
| 60AC3A8F-4D66-4CD4-895A-C3F06E6665EE=iFfsAcpiTables | |
| 5B232086-350A-42c7-A70E-3497B5765D85=OEMSSDT | |
| 299141BB-211A-48a5-92C0-6F9A0A3A006E=PPMACPI |
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
| using System; | |
| public class ShortGUID | |
| { | |
| private static Guid tmpGuid; | |
| public static string NewGuid() | |
| { | |
| tmpGuid = Guid.NewGuid (); | |
| return Convert.ToBase64String(tmpGuid.ToByteArray()); |