Skip to content

Instantly share code, notes, and snippets.

Avatar
🎃
Wasteland Baby!

ehza ehzawad

🎃
Wasteland Baby!
View GitHub Profile
@ehzawad
ehzawad / HPFFP.md
Created April 27, 2022 06:45 — forked from DadgadCafe/HPFFP.md
Haskell Programming From First Principles
View HPFFP.md

HASKELL PROGRAMMING FROM FIRST PRINCIPLES

CHAPTER1. ALL YOU NEED IS LAMBDA

1.1 All You Need is Lambda

lambda calculus:

computation model, 1930s, Alonzo Church, formalizing a method, Turing machines

@ehzawad
ehzawad / ctags.setup
Created April 16, 2022 09:47 — forked from nazgob/ctags.setup
ctags setup on mac
View ctags.setup
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
@ehzawad
ehzawad / NLP.ipynb
Created April 10, 2022 08:08 — forked from CateGitau/NLP.ipynb
Sentiment Analysis using Naive Bayes Classifier
View NLP.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ehzawad
ehzawad / README.md
Created November 4, 2021 20:28 — forked from mahemoff/README.md
Vim Terminal Mode - A short introduction
View README.md

Vim has a Terminal Mode!

Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.

Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.

Key Bindings

@ehzawad
ehzawad / README.md
Created July 8, 2021 02:21 — forked from xbeta/README.md
Macbook Pro Bluetooth + WiFi 2.4GHz interference fix for Mavericks
View README.md
@ehzawad
ehzawad / patch-edid.md
Created July 4, 2021 19:19 — forked from ejdyksen/patch-edid.md
A script to fix EDID problems on external monitors in macOS
View patch-edid.md

patch-edid.rb

A script to fix EDID problems on external monitors in macOS.

Instructions

  1. Connect only the problem display.

  2. Create this directory structure (if it doesn't already exist):

View patch-edid.rb
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@ehzawad
ehzawad / Activate Office 2019 for macOS VoL.md
Last active July 4, 2021 21:20 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file
View Activate Office 2019 for macOS VoL.md
@ehzawad
ehzawad / min-char-rnn.py
Created August 23, 2020 23:28 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
View min-char-rnn.py
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@ehzawad
ehzawad / docker-help.md
Created November 15, 2018 16:23 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips
View docker-help.md

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info