Skip to content

Instantly share code, notes, and snippets.

View Penworks's full-sized avatar

Penworks Penworks

View GitHub Profile
@BANKBRimo
BANKBRimo / index.html
Created October 8, 2022 10:31
PIN Pad Login Screen in JavaScript - HTML, CSS & JavaScript Tutorial (Project)
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<div class="pin-login" id="mainPinLogin">
<input type="password" readonly class="pin-login__text">
<div class="pin-login__numpad">
</div>
</div>
@ssddanbrown
ssddanbrown / export-body-start.blade.php
Last active May 17, 2024 08:49
BookStack PDF Export header & footer
@if ($format === 'pdf')
<style media="print">
.print-header-footer {
position: fixed;
width: 100%;
}
.print-footer {
position: fixed;
bottom: -40px;
@Aerijo
Aerijo / latex_in_atom.md
Last active October 2, 2024 07:10
Setting up Atom for LaTeX

Disclaimer: I wrote the packages language-latex2e, autocomplete-latex, latex-wordcount, and hyperclick-latex. I still try to provide a list of all useful packages though, so let me know if I have missed one.

This is a general guide for how to get started with LaTeX in Atom.

NOTE: This guide assumes you already have LaTeX installed on your computer. If you do not, I recommend TeX Live.

@dmarcelino
dmarcelino / True Trello Printer
Created September 22, 2016 08:29 — forked from mathiasrw/True Trello Printer
Ever wanted to print your Trello board? Export as JSON and paste it into the code.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>True Trello Printer</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<style>
body{margin:15%;}
.panel-body{
@OleVik
OleVik / .gitignore
Created May 15, 2016 17:42
.gitignore for Grav deployments
# Grav Root and Unused
/*.*
!.gitignore
/assets
/backup
/bin
/cache
/images
/logs
/system
@deepak-rajpal
deepak-rajpal / simplexml-curl-feed-fetch.php
Created September 3, 2015 13:48
Fetch XML Feeds using cURL and SimpleXML - Best and Tested
<?php
/* Fetch XML feeds using PHP SimpleXML and cURL */
/* Step 1) Parse xml url in curl and assign all data into a variable
Step 2) Pass Xml data into SimpleXML and access elements using returned object */
/* =================The SimpleXML =========================
The SimpleXML extension provides a very simple and easily usable toolset to convert XML to an object that can be processed with normal property selectors and array iterators.
This extension requires the libxml PHP extension. This means that passing in --enable-libxml is also required, although this is implicitly accomplished because libxml is enabled by default. The SimpleXML extension requires PHP 5.
@sim642
sim642 / DI.m3u
Created July 5, 2015 12:52
Digitally Imported premium streams
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi
@benmarwick
benmarwick / rsync.md
Last active May 9, 2020 05:14
rsync Windows to Linux, or Windows to a USB external hard drive
  • from Windows to a remote linux server (view as raw to see diagram), I am using Mysys (ie. same as Git bash)
$ cd to_my_dir

                                     source is everything in my_dir
  show progress for large files           |
                |        dir to exclude   |                dir on remote computer to sync up
                |                   |     |                            |
$ rsync -avz   -P ssh --exclude Downloads . [email protected]:/media/two/LaCie/My\\ Documents
 | | |
@colemanm
colemanm / google-sheets-geocode.js
Last active May 24, 2018 13:36
Google Sheets geocoder
function geocodeSelectedCells() {
var sheet = SpreadsheetApp.getActiveSheet();
var cells = sheet.getActiveRange();
// Must have selected 3 columns (Location, Lat, Lng).
// Must have selected at least 1 row.
if (cells.getNumColumns() != 3) {
Logger.log("Must select the Location, Lat, Lng columns.");
return;
@nixta
nixta / .htaccess
Last active May 15, 2025 10:40
.htaccess to add CORS to your website
# Add these three lines to CORSify your server for everyone.
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET,PUT,POST,DELETE"
Header set Access-Control-Allow-Headers "Content-Type, Authorization"