Skip to content

Instantly share code, notes, and snippets.

@jondashkyle
jondashkyle / epileptic.css
Created December 27, 2013 08:08
Blink rehash #css
.element:hover {
-moz-animation: blink 150ms steps(1, end) infinite;
-webkit-animation: blink 150ms steps(1, end) infinite;
}
@-moz-keyframes blink {
0% { opacity: 0; }
50% { opacity: 1; }
}
@jondashkyle
jondashkyle / README.md
Last active August 29, 2015 14:17
src img

Attribute That Shit

A drop-in solution for crediting the sources of your un-attributed image blog. Uses a modified version of Jarred Bishop’s handy bookmarklet src img.

To use, copy and paste the code below before the </head> tag of your page. If you're using Tumblr, you can locate this by navigating to your Dashboard → Customize (right column) → Edit HTML (up top).

In use on http://blog.hrstudioplus.com

@jondashkyle
jondashkyle / mod-slideshow.js
Last active November 17, 2020 17:23
Slideshow previous and next mod operator
/**
* For some reason I'm always forgetting this.
* Probably because I'm not a mathematician.
*/
let counter = 0
const prev () => {
counter -= 1
}
/**
* A reset for Kirby’s panel
* Work in progress
*
* Installation
* - Create CSS file inside your site’s assets directory
* - Open config.php and add the following line
* c::set('panel.stylesheet', 'assets/panel.css');
* - Adjust to your liking
*/

Keybase proof

I hereby claim:

  • I am jondashkyle on github.
  • I am jkm (https://keybase.io/jkm) on keybase.
  • I have a public key whose fingerprint is 9697 C5D7 54D7 60B4 308E EB4D 292B E8BE E136 F72C

To claim this, I am signing this object:

@jondashkyle
jondashkyle / tricks.css
Last active April 5, 2017 16:27
css tricks
/**
* hide the cursor in an input field
*/
input {
color: transparent;
text-shadow: 0 0 0 #fff;
}
/**
* blink
@jondashkyle
jondashkyle / entry.json
Created April 18, 2018 16:57
enoki p2p web log blueprint
{
"title": "Entry",
"pages": false,
"fields": {
"title": {
"label": "Title",
"type": "text"
},
"source": {
"label": "Source",
@jondashkyle
jondashkyle / peers.js
Created April 21, 2018 15:47
polling for peers
// https://beakerbrowser.com/docs/apis/dat.html#getinfo
var archive = new DatArchive(window.location.toString())
var peers = 0
setInterval(checkPeers, 2000)
async function checkPeers () {
var info = await archive.getInfo()
peers = info.peers
/**
* mass-unfollow console scripts
*
* 1. navigate to your follower page on the related platform
* 2. open developer tools
* 3. copy and paste
* 4. press ENTER to run
* 5. rinse and repeat if pagination
*/
@jondashkyle
jondashkyle / SketchSystems.spec
Last active August 28, 2018 20:15
PoemPortraits
PoemPortraits
Contribute*
ContributeInputEmpty*
INPUT -> ContributeInputPopulated
ContributeInputPopulated
SUBMIT -> ContributeInputSubmit