Skip to content

Instantly share code, notes, and snippets.

View DaWe35's full-sized avatar

DaWe DaWe35

View GitHub Profile
Code sniffet for facebook post https://www.facebook.com/groups/wpcsoport/?multi_permalinks=3337324666285340
<div class="desktop-view">
<input id="mezoid" value="1">
</div>
<div class="mobile-view">
<input id="mezoid" value="2">
</div>
@DaWe35
DaWe35 / PostgreSQL connect test.py
Created August 16, 2019 11:37
Test PostgreSQL server connection with Python 3
import sys
import logging
import psycopg2
class Database:
def __init__(self):
self.host = ''
self.username = ''
body:after{
content: "beta";
position: fixed;
width: 80px;
height: 25px;
background: #EE8E4A;
top: 7px;
left: -20px;
text-align: center;
font-size: 13px;
A nice design should not break usability! Art & UX need to be friends!
The usual things (footer, menu, etc.) make the website easy to use and cozy. Can you make cozy & unique design at the same time?
https://app.astralapp.com/auth
feedmusic.com
http://rainforest.arkivert.no
https://simplychocolate.dk/
https://crypton.trading/
https://www.franshalsmuseum.nl/en/
https://www.lahautesociete.com/
@DaWe35
DaWe35 / Music file name corrector (for mp3 downloaded from Vubey)
Last active March 8, 2019 18:05
This script repairs the mp3 music file names downloaded from Vubey.yt. Run it on Windows PowerShell
cd C:\Users\USERNAME\Music\Rename
dir -recurse | where {-Not $_.PsIscontainer -AND $_.name -match "_"} | foreach {
$New=$_.name.Replace("_"," ")
Rename-Item -path $_.Fullname -newname $New -passthru
}
dir -recurse | where {-Not $_.PsIscontainer -AND $_.name -match "-Vubey"} | foreach {
$New=$_.name.Replace("-Vubey","")