Skip to content

Instantly share code, notes, and snippets.

@kirlf
kirlf / huffman.py
Last active May 17, 2024 10:59 — forked from jasonrdsouza/huffman.py
Simple Huffman coding implementation
# Python 3.8
import math
from queue import Queue
from collections import Counter
class HuffmanCodes:
def __init__(self):
pass
def __huffman_tree_to_table(self, root, prefix, lookup_table):
@Lisenish
Lisenish / mpushkin-homework-2.dart
Last active May 17, 2024 10:58 — forked from MaxPush94/mpushkin-homework-2.dart
Dart lesson 2 homework
void printArrayTasks() {
var arr = [1, 3, 2, 5, 4];
// Дан целочисленный массив произвольной длины. Вывести первый элемент массива и последний массива
print('First: ${arr.first}, Last: ${arr.last}');
// Дан целочисленный массив. Вывести true если массив не пустой.
print(arr.isNotEmpty);
// Дан целочисленный массив, вывести количество элементов в массиве.
@IsaacXen
IsaacXen / README.md
Last active May 17, 2024 10:56
(Almost) Every WWDC videos download links for aria2c.
@jbrazio
jbrazio / README.md
Last active May 17, 2024 10:55
Home Assistant and Freqtrade

Home Assistant and Freqtrade

This gist contains all the configuration files you will need to have something like this on your HASS dashboard.

Preview

This is an example configuration to get you started. It assumes you use a split configuration in Home Assistant. I like to have a entities folder on root and then inside I have a folder for each entity type (binary, cover, light, switch, sensor, etc) but you may adapt to your own configuration style.

In the configuration.yaml file make sure that you have something like this:

@alopresto
alopresto / routehl7.xml
Created April 6, 2017 18:47
An Apache NiFi template which generates HL7 data and routes it based on a simple comparison.
<?xml version="1.0" ?>
<template encoding-version="1.1">
<description></description>
<groupId>3b737254-015b-1000-aee2-fe3d19b02179</groupId>
<name>RouteHL7</name>
<snippet>
<connections>
<id>015b1002-e563-1455-0000-000000000000</id>
<parentGroupId>3b737254-015b-1000-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
@JustTalDevelops
JustTalDevelops / client_blob_cache_exploit.md
Last active May 17, 2024 10:52
Exploiting the Blob Cache in Bedrock Edition

Exploiting the Blob Cache in Minecraft: Bedrock Edition

...and why it matters.

Preface

You might have seen my HiveCorruptor plugin on Poggit. To be clear, I don't have a vendetta against The Hive or anything like that, the plugin was more so a comedic demonstration of how the blob cache can be exploited to crash clients. The next thing you're probably thinking is "how the hell does this work?" - and this is what this article will go over.

Introduction

@adamu
adamu / line_bot_elixir_howto_ja.md
Last active May 17, 2024 10:50
Elixirを使ってLineのチャットボットを作ろう

これはfukuoka.ex Elixir/Phoenix Advent Calendar 2019の13日の記事です。 ElixirでLineのチャットボットを作る方法を紹介します。 🧪🤖🧪

昨日はsanpo_shihoさんの「Rails経験者に贈るPhoenix入門」でした。

English version.

  1. 先ずはLine Developers ConsoleMessaging API Channelを作成する必要があります。 そして作成されたチャネルIDとチャネルシークレットを後で使用するためメモしておき、ボットと友達になります。
  2. Supervision treeありのElixirのアプリを作ります。
@PurpleVibe32
PurpleVibe32 / VMware vSphere 6.x Licence Keys
Created February 11, 2023 17:20 — forked from CHSuworatrai/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@PurpleVibe32
PurpleVibe32 / vmwk17key-5000keys-unchecked.txt
Created February 21, 2023 19:28
5000k+ vmware workstation pro 17 (untested)
4U612-DN31H-MJEJ0-0V0Z4-978HD
5G44H-ACH50-0J4C9-1VC5P-CY0QD
JC000-8G047-MJDF1-0H3E6-8QR5F
JV2NU-0XL5N-0J4Q8-0T0E6-8GH56
JZ6E0-4R1E0-HJ1Q0-1R8NH-3AK28
0Z48K-4X29Q-MJE80-113GK-C7K3A
HF4H0-46K80-MJ8D9-1KAZP-CKK12
NY69H-2N05P-HJ170-1V1ZM-CG222
4C45A-D8J0H-HJ5T0-1T25H-92A76
0Z4H2-0WK9K-4JE10-0T9G6-9C8M4
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active May 17, 2024 10:46
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus