- Because you can
- Because you have time to spare
- Maybe you think they look cool or want to save them for wallpapers or something
- Maybe it reminds you of that one time... You know which time I'm talking about
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ["es2015"], | |
"sourceMaps": true, | |
"only": "*.js", | |
"compact": true, | |
"comments": false | |
} |
This is a custom element / web component built using vanilla JavaScript to embed GistHub Gists into a webpage
without having to worry about the inline scripts which call document.write()
. It can be configured to lazy-load
using loading="lazy"
and styled with CSS through the github-gist
& github-gist::part(embed)
selectors.
Under-the-hood it creates an <iframe>
using:
<iframe srcdoc="..." sandbox="allow-scripts allow-popups" width="..." height="..." referrerpolicy="no-referrer"></iframe>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const protectedData = new WeakMap(); | |
function render(target) { | |
const { user, gist, file, height, width } = target; | |
const { shadow } = protectedData.get(target); | |
const iframe = document.createElement('iframe'); | |
const script = document.createElement('script'); | |
const link = document.createElement('link'); | |
const src = new URL(`/${user}/${gist}.js`, 'https://gist.github.com'); | |
const controller = new AbortController(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//namespace shgysk8zer0\PHPCrypt; | |
const PUBLIC_KEY = './pub.pem'; | |
const PRIVATE_KEY = './priv.pem'; | |
const PUB2 = './pub2.pem'; | |
const PRIV2 = './priv2.pem'; | |
const PASSWORD = 'dgbdkfjg'; | |
const PASSWORD2 = 'dfgnduyho'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Save this script to anywhere in `$PATH`, but ideally as `/usr/local/bin/clipcrypt` | |
# Grant read/execute permissions `chmod 755 /usr/local/bin/clipcrypt` | |
# Optionally, make root the owner `sudo chown root:root /usr/local/bin/clipcrypt` | |
xclip -selection clipboard -o | gpg -d | xclip -selection clipboard |
Daily CSS Images Day 09 Calendar
A Pen by Alex Johnson on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
charset = utf-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Share API Shim Demo</title> | |
<script type="aplication/javascript" src="/path/to/dialog-shim.js"></script> | |
<script type="module" src="index.js" async=""></script> | |
<script type="application/javascript" async="" nomodule=""></script> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple PHP mail class using mail() | |
* | |
* Strips, converts, etc. Automatically sets required headers. Takes most | |
* of the work out of the coding side of writing emails. | |
* | |
* You should verify that you have an email service installed. | |
* On Ubuntu, I use ssmtp (see link for manpage) | |
* |
NewerOlder