Skip to content

Instantly share code, notes, and snippets.

@dw-liedji
dw-liedji / 1integrate-django-filter-django-tables2-django-crispy-forms.md How to integrate django-crispy-forms, django-tables2 and django-filter in order to display a paginated table with filter functionality.

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@dw-liedji
dw-liedji / fbmkr.py
Created January 6, 2022 20:07 — forked from Ra1d7/fbmkr.py
Facebook Mass Account Maker
import mechanize
import requests
import re
import logging
import argparse
import sys
reload(sys)
sys.setdefaultencoding('utf8')
@dw-liedji
dw-liedji / Matlab.sublime-build
Created April 8, 2020 22:57 — forked from jlcorra/Matlab.sublime-build
Sublime Text 3 Build System to execute Matlab scripts from the command line
{
"selector": "source.matlab",
"shell": true,
"windows": {
"cmd": ["matlab", "-nodesktop", "-nosplash", "-r", "$file_base_name"]
},
"osx": {
"cmd": ["matlab", "-nodisplay", "-nosplash", "-r", "$file_base_name"]
},
@dw-liedji
dw-liedji / MinGW-w64.sublime-build
Created April 6, 2020 11:22 — forked from sagebind/MinGW-w64.sublime-build
Sublime Text 3 C++ build system for mingw-w64
{
"cmd": ["g++", "-o", "${file_path}/${file_base_name}.exe", "-static-libgcc", "-static-libstdc++", "*.cpp"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.cpp, source.c++",
"path": "c:/Program Files/mingw-w64/mingw64/bin",
"shell": true,
"variants": [
{
"name": "Run",
@dw-liedji
dw-liedji / srt_to_txt.py
Created November 10, 2019 15:20 — forked from Norcim133/srt_to_txt.py
Simple Python Script for Extracting Text from an SRT File
"""
Creates formatted, readable .docx file from directory of udacity SRT files (assuming fixed directory structure).
"""
import re, sys, os
from docx import Document
from docx.shared import Inches
#Hardcoded directory; assumes .srt files are inside SUB-directories of this directory
directory = 'Knowledge-Based AI_ Cognitive Systems Subtitles/'