Skip to content

Instantly share code, notes, and snippets.

@Richienb
Richienb / stopwatch.py
Created October 10, 2017 02:17
Simple Python Stopwatch
import time
seconds = 0
minutes = 0
hours = 0
mseconds = 0
while True:
print(hours, ":", minutes, ":", seconds, ":", mseconds)
time.sleep(0.01)
if minutes == 59:
hours += 1
@Richienb
Richienb / RemoveBranding.css
Last active April 13, 2024 17:00
Remove 000Webhost Branding For Wordpress CSS Code
img[src*="https://cdn.000webhost.com/000webhost/logo/footer-powered-by-000webhost-white2.png"] {display: none;}
@Richienb
Richienb / page.html
Created October 19, 2017 05:58
Wordpress Code For Embedding JavaScript
<script type="text/javascript" src="/javascript/testcode.js"></script>
@Richienb
Richienb / DownloadFile.vbs
Last active August 9, 2023 08:03
Download A File In Visual Basic Script (vbs)
Sub HTTPDownload( myURL, myPath )
Dim i, objFile, objFSO, objHTTP, strFile, strMsg
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set objFSO = CreateObject( "Scripting.FileSystemObject" )
If objFSO.FolderExists( myPath ) Then
strFile = objFSO.BuildPath( myPath, Mid( myURL, InStrRev( myURL, "/" ) + 1 ) )
ElseIf objFSO.FolderExists( Left( myPath, InStrRev( myPath, "\" ) - 1 ) ) Then
strFile = myPath
Else
WScript.Echo "ERROR: Target folder not found."
@Richienb
Richienb / Miner Code In Ascii.txt
Created November 4, 2017 03:02
Miner Code In Ascii
....` `....` `..`
NNNNh. sNNNN: :NN:
MMNNMo .NMmMM/ `::`
MMhyMN` `yMN+MM/ .//. -// -oyyyo:` ./oyyyo:` ./-.oyyo.
MMy.NMs /NM+/MM/ /MM/ yMMymhhhmMNs` `smNdhyhmNm/` /Mmdmhhm-
MMy oMN: `dMh`/MM/ /MM/ yMMy- `hMN: `sMm-` `+NN+ /MMm. `
MMy .dMh +MM: /MM/ /MM/ yMM. /MM/ -NMdyyyyyyyNMm /MM+
MMy +MM: .mMh /MM/ /MM/ yMM /MM/ :MMmhhhhhhhhhh /MM/
MMy dMd.sMN: /MM/ /MM/ yMM /MM/ -NMy ..` /MM/
MMy /NMsMMs /MM/ /MM/ yMM /MM/ oMMs-```.sNNo /MM/
@Richienb
Richienb / README.md
Last active September 5, 2018 11:17
Mailto For MDL

What is this?

It's a Mailto generator taking advantage of MDL.

@Richienb
Richienb / index.html
Created May 22, 2018 04:18
Simple Material Design Document
<html lang="en">
<body>
</header>
<div class="demo-ribbon"></div>
<main class="demo-main mdl-layout__content">
<div class="demo-container mdl-grid">
<div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
<div class="demo-content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--8-col">
<div class="demo-crumbs mdl-color-text--grey-500">
@Richienb
Richienb / form.vb
Created May 24, 2018 05:17
Delay in VB.NET
Private Sub delay(ByVal interval As Integer)
Dim sw As New Stopwatch
sw.Start()
Do While sw.ElapsedMilliseconds < interval
Application.DoEvents()
Loop
sw.Stop()
End Sub