Skip to content

Instantly share code, notes, and snippets.

Ilya Berelson egfx

  • toFacebook & gif.com.ai
  • Santa Monica
Block or report user

Report or block egfx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fbcanvas.js
const getRandom = (min, max) => {
return Math.random() * (max - min) + min;
};
const illoElem = document.querySelector('.illo');
const w = 160;
const h = 160;
const minWindowSize = Math.min(window.innerWidth, window.innerHeight);
const zoom = Math.min(20, Math.floor(minWindowSize / w));
illoElem.setAttribute('width', w * zoom);
@egfx
egfx / index.html
Last active Jun 2, 2019
Donate $5
View index.html
<<!DOCTYPE html>
<html>
<head>
<title>Donate $5</title>
<!--<script src="https://unpkg.com/@ungap/custom-elements-builtin"></script>
<script type="text/javascript" src="https://rawcdn.githack.com/niutech/x-frame-bypass/855835ec48f92bfc825a88284b17218cb1867f7f/x-frame-bypass.js"></script>-->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<!--<script>window.top.location = 'https://paypal.me/qkast/5/';</script>-->
<style>
body {
View index.html
<script>window.top.location = 'https://paypal.me/qkast/5/';</script>
View rubbable.js
/*
RubbableGif
Example usage:
<img src="./example1_preview.gif" rel:animated_src="./example1.gif" width="360" height="360" rel:auto_play="1" />
<script type="text/javascript">
$$('img').each(function (img_tag) {
if (/.*\.gif/.test(img_tag.src)) {
View anigif.js
/* anigif/jsgif/GIFEncoder_WebWorker.js */
GIFEncoder_WebWorker = function(options) {
var exports = {}
var init = exports.init = function init() {
this.repeat = 0
this.delay = 250
this.frames = []
this.num_threads = 8
@egfx
egfx / color.js
Created Dec 6, 2017
pscho colors
View color.js
/**
* @author mrdoob / http://mrdoob.com/
* @author philogb / http://blog.thejit.org/
* @author egraether / http://egraether.com/
* @author zz85 / http://www.lab4games.net/zz85/blog
*/
function Vector2( x, y ) {
this.x = x || 0;
this.y = y || 0;
@egfx
egfx / meta_facebook.html
Last active Nov 25, 2017 — forked from manudurgoni/meta_facebook.html
Share a gif image on Facebook
View meta_facebook.html
<meta property="og:type" content="video.other"/>
<meta property="og:title" content="Title"/>
<meta property="og:url" content="https://www.gifyoutube.com/watch?v=42dB1QZcEPk"/>
<meta property="og:image" content="https://www.gifyoutube.com/watch?v=42dB1QZcEPk"/>
<meta property="og:image:type" content="image/gif"/>
View gist:23270bbe63659da9930404f21e32cbf8
<meta property="og:site_name" content="YouTube">
<meta property="og:title" content="The Social Network - Classroom Scene">
<meta property="og:url" content="https://www.youtube.com/watch?v=-3Rt2_9d7Jg">
<meta property="og:type" content="video">
<meta property="og:image" content="https://i1.ytimg.com/vi/-3Rt2_9d7Jg/maxresdefault.jpg?feature=og">
<meta property="og:description" content="This is my favorite part of the move The Social Network.">
<meta property="og:video" content="https://www.youtubeinmp4.com/youtube.php?video=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D-3Rt2_9d7Jg">
<meta property="og:video:type" content="application/x-shockwave-flash">
<meta property="og:video:width" content="1440">
<meta property="og:video:height" content="1080">
You can’t perform that action at this time.