Skip to content

Instantly share code, notes, and snippets.

View paddyhoran's full-sized avatar

Paddy Horan paddyhoran

View GitHub Profile
@paddyhoran
paddyhoran / client.py
Created February 2, 2022 13:14 — forked from ferstar/client.py
simple JSON TCP server and client
#!/usr/bin/env python3
import socket
import json
HOST, PORT = "localhost", 9527
data = {
"name": "hello, I am Tom.",
"age": 10,
"info": "sample is simple."
}
@paddyhoran
paddyhoran / reclaimWindows10.ps1
Created June 1, 2021 15:13 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <[email protected]>
# Modified by: alirobe <[email protected]> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@paddyhoran
paddyhoran / .rs
Created August 28, 2019 01:54
Datafusion Predicate Pushdown Issue
extern crate arrow;
extern crate datafusion;
use std::sync::Arc;
use arrow::datatypes::{Schema, Field, DataType};
use datafusion::execution::context::ExecutionContext;
/// This example demonstrates executing a simple query against an Arrow data source (Parquet) and
/// fetching results
fn main() {
@paddyhoran
paddyhoran / Matrix.md
Created May 27, 2018 18:19 — forked from nadavrot/Matrix.md
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@paddyhoran
paddyhoran / notebook_encoding
Created May 7, 2015 01:41
Fixes encoding issues on ipython notebooks.
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
# Selecting Columns
df[['column1', 'column2']]
# Filtering
df[df.column_name == value]
df[(df.column_name >= value) & (df.column_name < value)]
df[(df.column_name < value) | (df.column_name != value)]
# Sorting
series.order() # by data