Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Pisarczyk ppisarczyk

  • Computech
  • United States
View GitHub Profile
@ppisarczyk
ppisarczyk / process.py
Last active Oct 4, 2020
Process Files with Progress Bar
View process.py
def printProgressBar(iteration, total, prefix='', suffix='',
decimals=1, length=100, fill='█'):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix - Optional : prefix string (Str)
suffix - Optional : suffix string (Str)
decimals - Optional : positive number of decimals in percent complete (Int)
@ppisarczyk
ppisarczyk / Programming_Languages_Extensions.json
Last active Jan 23, 2022 — forked from aymen-mouelhi/languages.json
Programming Languages and their File Extensions
View Programming_Languages_Extensions.json
[
{
"name":"ABAP",
"type":"programming",
"extensions":[
".abap"
]
},
{
"name":"AGS Script",
@ppisarczyk
ppisarczyk / ApplyClassToFileLinks.js
Last active Oct 4, 2020
From https://css-tricks.com/snippets/jquery/automatically-discover-document-links-and-apply-classThis will look through every a element on the page. If the href attribute of it has a .doc, .xls, or .pdf in it, it will apply the appropriate class name to it (e.g. class="doc")
View ApplyClassToFileLinks.js
View Import_Into_Access_Table_in_any_column_order.vbs
' The adjacent data entry requires that you know the position of each column. The SQL provides
' an alternative that allows you to perform data entry using the name of a column
' instead of its position. This allows you to provide the values of fields in any order of your choice.
' To perform data entry at random, you must provide a list of the columns
' of the table in the order of your choice. You can either use all columns or
' provide a list of the same columns but in your own order. Here is an example:
Private Sub btnCreateRecord_Click(ByVal sender As System.Object, _
@ppisarczyk
ppisarczyk / Favorite Simple CSS Styles.css
Last active Apr 25, 2017 — forked from lightyrs/favorites.css
Favorite Simple CSS Styles
View Favorite Simple CSS Styles.css
.subtle-gradient-1 {
background-image: linear-gradient(to right, #f0fcff 0%, #f2f4ff 100%);
}
.pastel-gradient-1 {
background-image: linear-gradient(to left bottom, hsl(253, 100%, 85%) 0%, hsl(132, 100%, 85%) 100%);
}
View trello-css-guide.md

Trello CSS Guide

“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”

You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?

This is where any fun you might have been having ends. Now it’s time to get serious and talk about rules.

Writing CSS is hard. Even if you know all the intricacies of position and float and overflow and z-index, it’s easy to end up with spaghetti code where you need inline styles, !important rules, unused cruft, and general confusion. This guide provides some architecture for writing CSS so it stays clean and ma

@ppisarczyk
ppisarczyk / Chrome_Dev_Tools_Skin.css
Last active Apr 25, 2017 — forked from lightyrs/Custom.css
My Chrome Dev Tools Skin incorporates the sleek visual style of codepen.io with some of my own usability enhancements. Pictured here with Monokai color scheme ( http://imgur.com/mbrqt ).
View Chrome_Dev_Tools_Skin.css
/*
Chrome Developer Tools - Monokai Color Theme
Author: Béres Máté Csaba / bjmatt.com / @bjmatt / beres.mate@bjmatt.com
-----------------------------------------------------------------------------------------------------------
Installation:
1. Find your Chrome's user stylesheets directory:
View Techbench dump.md

TechBench dump

Generated on 2017-02-28T18:20:00+0100 using:
- TechBench dump script (tbdump-web)
- FreeBSD 10.3-STABLE amd64 devil-1_0_4
- curl 7.52.1 (amd64-portbld-freebsd10.3) libcurl/7.52.1 OpenSSL/1.0.1s zlib/1.2.8 libssh2/1.8.0 nghttp2/1.18.1

Number of products: 225
@ppisarczyk
ppisarczyk / drop_binary.bat
Created Aug 27, 2016 — forked from mattifestation/drop_binary.bat
Drop binary data from the command line w/o needing PowerShell
View drop_binary.bat
echo -----BEGIN CERTIFICATE----- > encoded.txt
echo Just Base64 encode your binary data
echo TVoAAA== >> encoded.txt
echo -----END CERTIFICATE----- >> encoded.txt
certutil -decode encoded.txt decoded.bin
@ppisarczyk
ppisarczyk / dirtywebserver.ps1
Created Aug 27, 2016 — forked from obscuresec/dirtywebserver.ps1
Dirty PowerShell Webserver
View dirtywebserver.ps1
$Hso = New-Object Net.HttpListener
$Hso.Prefixes.Add("http://+:8000/")
$Hso.Start()
While ($Hso.IsListening) {
$HC = $Hso.GetContext()
$HRes = $HC.Response
$HRes.Headers.Add("Content-Type","text/plain")
$Buf = [Text.Encoding]::UTF8.GetBytes((GC (Join-Path $Pwd ($HC.Request).RawUrl)))
$HRes.ContentLength64 = $Buf.Length
$HRes.OutputStream.Write($Buf,0,$Buf.Length)