Skip to content

Instantly share code, notes, and snippets.

View Geograph-us's full-sized avatar
🇺🇦
no war

Geograph Geograph-us

🇺🇦
no war
View GitHub Profile
// SPDX-License-Identifier: GPL-2.0
/*
* @author Ammar Faizi <ammarfaizi2@gmail.com> https://www.facebook.com/ammarfaizi2
* @license GPL-2.0
* @package tgvisd::Main::Preload
*
* Copyright (C) 2021 Ammar Faizi <ammarfaizi2@gmail.com>
*/
#if defined(__linux__)
#
# SPDX-License-Identifier: GPL-2.0
#
# Telegram Desktop Patch (tested for version 2.8.6 beta Linux x86_64)
# Don't use it on different version, it may crash!
#
# Author: @ammarfaizi2, @Akiekano, @rLapz
# Link: https://t.me/GNUWeeb/407041
#
# Usage:
@rioto9858
rioto9858 / README.md
Last active November 1, 2023 02:42
Top 50 Spotify music dataset (from 2010 to 2019 )

This is a dataset of top 50 Spotify music from 2010 to 2019. Originally published at Kaggle:Top Spotify songs from 2010-2019 - BY YEAR which is scraped from Spotify: Organize your music

After cleaning the data, it contains 14 columns and 603 rows of data.

The type of attributes: 'title' is categorical. 'artist' is categorical. 'genre of the track' is categorical. 'year' is quantitative.

// Manually export Twitter followers/following data from browser as a CSV
// 1. navigate to followers/following page
// 2. change "target_count" variable value below to desired number
// 3. paste script into Javascript terminal and execute
// 4. once collection is complete and you see download dialogue box - confirm
// x. to stop manually at any time just execute "collect = false"
var collect = true;
var dat = {}
@georg-jung
georg-jung / ProcessAsyncHelper.cs
Last active December 30, 2023 02:14 — forked from AlexMAS/ProcessAsyncHelper.cs
Use https://github.com/Tyrrrz/CliWrap instead, the following code has some shortcomings
using System;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
// based on https://gist.github.com/AlexMAS/276eed492bc989e13dcce7c78b9e179d
public static class ProcessAsyncHelper
{
public static async Task<ProcessResult> RunProcessAsync(string command, string arguments, int timeout)
{
@mingodad
mingodad / fts5-compress-column.diff
Created September 24, 2018 13:49
Implementation of "compressed" and "min_word_size" option for columns in fts5 for sqlite3
Index: ext/fts5/fts5Int.h
==================================================================
--- ext/fts5/fts5Int.h
+++ ext/fts5/fts5Int.h
@@ -160,10 +160,11 @@
char *zDb; /* Database holding FTS index (e.g. "main") */
char *zName; /* Name of FTS index */
int nCol; /* Number of columns */
char **azCol; /* Column names */
u8 *abUnindexed; /* True for unindexed columns */
"""
This script removes stray lines from images using image processing techniques with OpenCV library.
All credit where it's due - https://stackoverflow.com/a/45563349/4411757. Simon Mourier created a script in C# which I
have ported to python. Tested with python 3.5 and opencv-python==3.4.2.17. Shoot your suggestions/improvements in the
comments. Cheers!
"""
def clean_image(img):
height, width = img.shape[:2]
@gliubc
gliubc / .txt
Last active December 30, 2018 05:26
In your Genymotion Android emulator…
Settings -> Wifi -> Press and hold your active network
Select “Modify Network”
Select “Show Advanced Options”
Select “Proxy Settings -> Manual”
Set your Proxy to: 10.0.3.2 (Genymotion’s special code for the local workstation)
Set your Port to: 8888
Press Save
@mwrouse
mwrouse / Base64Decode.pas
Last active July 16, 2021 11:42
Inno Setup (Pascal Script) Base64 Decode
// Left shift operator for Base64Decode (Inno Setup does not support << )
function BitwiseLeftShift (input: LongInt; shiftFactor: Integer): LongInt;
var
exp: LongInt; // Total to multiply by
i: Integer;
//Result: LongInt;
begin
Result := 0;
exp := 1;
@apprenticenaomi
apprenticenaomi / ion.py
Created July 13, 2017 07:24
Python DeDRM KFX v0.1
# BinaryIon.pas + DrmIon.pas + IonSymbols.pas
import collections
import enum
import hashlib
import hmac
import os
import os.path
import struct