Skip to content

Instantly share code, notes, and snippets.

View petrosh's full-sized avatar

Alex Petrosh petrosh

View GitHub Profile
@petrosh
petrosh / index.html
Last active October 19, 2022 20:03 — forked from chrisallick/Base64 JS Demo
Base64 in JavaScript turn a json object to a base64 string. boom!
<!DOCTYPE html>
<html>
<head>
<title>Base64 Demo</title>
<meta charset="utf-8">
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js' type='text/javascript'></script>
<script src='https://javascriptbase64.googlecode.com/files/base64.js' type='text/javascript'></script>
@petrosh
petrosh / css-snippets.css
Last active March 1, 2022 16:03
Snippets
/* http://coding.smashingmagazine.com/2013/08/20/semantic-css-with-intelligent-selectors/ */
[rel="prev"] {
/* styling for "previous links" */
}
[role="button"] {
/* semantic CSS for modified elements that are announced as “button” in assistive technologies */
}
@petrosh
petrosh / gist-feed.md
Last active August 5, 2021 10:35
Gist Feed

Someone should make...

Github gist feed.
So you can see what people you follow are pasting in Github.

You can:

  • create a gist feed for code reference
  • show gists by keyword, language, or follower
  • enable replies and favoriting
@petrosh
petrosh / .block
Last active November 8, 2019 08:18 — forked from TBD/.block
timeline chart with zoom
license: mit
{}
{}
/*******************
* intoTheWoods.js *
*******************
*
* Ah, you're out of the woods now. Or into the woods, as the
* case may be.
*
* So take a deep breath, relax, and remember what you're here
* for in the first place.
*
@petrosh
petrosh / player
Last active May 4, 2018 11:46
Traveller
Nemo Shagal
@petrosh
petrosh / README.md
Last active April 21, 2018 14:36 — forked from elidupuis/README.md
Path from mouse or touch input

Simple Drawing Example

Click and drag your mouse (or finger on touch device) to draw a line. A new path is created for each touch or click.

Paths are stored in a nested array; you can inspect the variable in console: session (assuming the example is in it's own window).

@petrosh
petrosh / prova.ipynb
Last active April 9, 2018 22:23
ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.